org.ujorm.orm.annot
Annotation Type Table


@Retention(value=RUNTIME)
@Target(value={FIELD,TYPE})
public @interface Table

Use the annotation to mark a Key static field like XML Attribute.

See Also:
View

Optional Element Summary
 String alias
          Table alias name.
 String name
          A named parameter for the table name.
 Orm2ddlPolicy orm2ddlPolicy
          Parameter to control how the DLL (Data Definition Language) statements will be used to a defining data structure modification.
 boolean readOnly
          Database table can have the the read-only state.
 String schema
          Name of schema.
 String sequence
          Name of DB sequence.
 String value
          A shortcut for the attribute "name" of Table.
 

name

public abstract String name
A named parameter for the table name. Default value is taken from a related key name.

Default:
""

value

public abstract String value
A shortcut for the attribute "name" of Table.

See Also:
name()
Default:
""

alias

public abstract String alias
Table alias name. The default value is taken from a name.

Default:
""

schema

public abstract String schema
Name of schema. If the value is empty than a default database schema is used.

See Also:
Db.schema()
Default:
""

sequence

public abstract String sequence
Name of DB sequence. The value is not used by default, however a special implementation of the UjoSequencer can do it.

Default:
""

readOnly

public abstract boolean readOnly
Database table can have the the read-only state. The value can change the default value of the @Db.readOnly() only. The parameter value is evaluated in the execution SQL commands type of INSERT, UPDATE, and DELETE.

See Also:
Db.readOnly()
Default:
false

orm2ddlPolicy

public abstract Orm2ddlPolicy orm2ddlPolicy
Parameter to control how the DLL (Data Definition Language) statements will be used to a defining data structure modification. The value can be defined a parent, so the hierarchy from the parent to a child is: In case the root Meta Parameters is undefined, then the parameter CREATE_OR_UPDATE_DDL will be used.

See Also:
Orm2ddlPolicy.CREATE_OR_UPDATE_DDL
Default:
org.ujorm.orm.ao.Orm2ddlPolicy.INHERITED


Copyright 2013, Pavel Ponec