org.ujoframework.orm.annot
Annotation Type Column


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Column

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


Optional Element Summary
 java.lang.String index
          A name of the non-unique database index for the column, where the same index can contain more columns.
 int length
          Database column maximal length
 boolean mandatory
          Not null value
 java.lang.String name
          A named parameter for the database column name.
 boolean pk
          The primary key
 int precision
          Database column presision
 DbType type
          Database column type
 java.lang.String uniqueIndex
          A name of the unique database index for the column, where the same index can contain more columns.
 java.lang.String value
          A shortcut for the attribute "name" of Column.
 

name

public abstract java.lang.String name
A named parameter for the database column name. If an appropriate UjoProperty is a relation to another ORM object with more primary keys, then the several names can be separated by a space or comma character.

Default:
""

value

public abstract java.lang.String value
A shortcut for the attribute "name" of Column.

See Also:
name()
Default:
""

pk

public abstract boolean pk
The primary key

Default:
false

type

public abstract DbType type
Database column type

Default:
org.ujoframework.orm.DbType.Automatic

length

public abstract int length
Database column maximal length

Default:
-1

precision

public abstract int precision
Database column presision

Default:
-1

mandatory

public abstract boolean mandatory
Not null value

Default:
false

index

public abstract java.lang.String index
A name of the non-unique database index for the column, where the same index can contain more columns. If a single column of the index is marked as non-unique, than the entire index will be non-unique.

Default:
""

uniqueIndex

public abstract java.lang.String uniqueIndex
A name of the unique database index for the column, where the same index can contain more columns. If a single column of the index is marked as non-unique, than the entire index will be non-unique.

Default:
""


Copyright © 2010. All Rights Reserved.