to.etc.webapp.annotations
Annotation Type GdbColumn


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface GdbColumn

Author:
Frits Jalvingh Created on Apr 28, 2009

Optional Element Summary
 GdbBool bool
           
 GdbEnum enumerated
           
 java.lang.String fullName
          Sets the full name of this column.
 int length
          The length of a column.
 java.lang.String name
          Sets the base name of this column.
 boolean nullable
          Whether the field can be nullable.
 int scale
          For numerics, the scale field.
 GdbDate temporal
          Whether a Date column contains a timestamp, a single date or what.
 java.lang.String type
           
 boolean unique
           
 

name

public abstract java.lang.String name
Sets the base name of this column. If a table prefix is defined it is used in addition to form the full name.

Default:
""

fullName

public abstract java.lang.String fullName
Sets the full name of this column. If this is set any table prefix is ignored.

Default:
""

type

public abstract java.lang.String type
Default:
""

length

public abstract int length
The length of a column. For strings this is the max size in characters, for numerics this is the precision.

Default:
-1

scale

public abstract int scale
For numerics, the scale field.

Default:
-1

nullable

public abstract boolean nullable
Whether the field can be nullable. Defaults to false.

Default:
false

unique

public abstract boolean unique
Default:
false

temporal

public abstract GdbDate temporal
Whether a Date column contains a timestamp, a single date or what.

Default:
to.etc.webapp.annotations.GdbDate.TIMESTAMP

enumerated

public abstract GdbEnum enumerated
Default:
to.etc.webapp.annotations.GdbEnum.STRING

bool

public abstract GdbBool bool
Default:
to.etc.webapp.annotations.GdbBool.NATIVE