Package org.apache.empire.data
Interface Column
- All Superinterfaces:
ColumnExpr
- All Known Implementing Classes:
BeanProperty,DBColumn,DBCommandExpr.DBCmdColumn,DBQueryColumn,DBTableColumn,DBView.DBViewColumn
The column interface provides methods for accessing metadata that is only relevant for updating records.
This interface inherits from ColumnExpr which provides further metadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringPredefined column expression attributes (optional) for method Object getAttribute(String name)static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionReturns all metadata attributes.Returns the EntityType that this Column belongs todoublegetSize()Returns the maximum size a value for this column is allowed to have.booleanReturns whether or not the value for this column is auto-generatedbooleanReturns true if the values for this column are generally read only (like i.e. for sequence generated values).booleanReturns whether or not the value for this column must be supplied (i.e. it is mandatory) or not.validateValue(Object value) Checks if the given value is a valid value for this column If not, an exception is thrownMethods inherited from interface org.apache.empire.data.ColumnExpr
getAttribute, getBeanPropertyName, getControlType, getDataType, getEnumType, getName, getOptions, getSourceColumn, getTitle, getUpdateColumn, setAttribute
-
Field Details
-
COLATTR_TITLE
Predefined column expression attributes (optional) for method Object getAttribute(String name)- See Also:
-
COLATTR_TOOLTIP
- See Also:
-
COLATTR_TYPE
- See Also:
-
COLATTR_ENUMTYPE
- See Also:
-
COLATTR_NULLTEXT
- See Also:
-
COLATTR_NORMCOLUMN
- See Also:
-
COLATTR_REFCOLUMNS
- See Also:
-
COLATTR_CASESENSITIVE
- See Also:
-
COLATTR_SORTDESCENDING
- See Also:
-
COLATTR_SORTEXPRESSION
- See Also:
-
COLATTR_MINLENGTH
- See Also:
-
COLATTR_MINVALUE
- See Also:
-
COLATTR_MAXVALUE
- See Also:
-
COLATTR_REGEXP
- See Also:
-
COLATTR_NUMBER_TYPE
- See Also:
-
COLATTR_NUMBER_GROUPSEP
- See Also:
-
COLATTR_FRACTION_DIGITS
- See Also:
-
COLATTR_INTEGER_DIGITS
- See Also:
-
COLATTR_CURRENCY_CODE
- See Also:
-
NUMTYPE_INTEGER
-
NUMTYPE_DECIMAL
-
NUMTYPE_CURRENCY
- See Also:
-
NUMTYPE_PERCENT
- See Also:
-
-
Method Details
-
getEntity
Entity getEntity()Returns the EntityType that this Column belongs to- Returns:
- the EntityType if any
-
getSize
double getSize()Returns the maximum size a value for this column is allowed to have.For the data type DECIMAL the size defines the scale and precision of the value.
- Returns:
- Returns the maximum size a value for this column is allowed to have.
-
isRequired
boolean isRequired()Returns whether or not the value for this column must be supplied (i.e. it is mandatory) or not.- Returns:
- Returns true if the value for this column must be supplied
-
isAutoGenerated
boolean isAutoGenerated()Returns whether or not the value for this column is auto-generated- Returns:
- Returns true if the value for this column is auto-generated
-
isReadOnly
boolean isReadOnly()Returns true if the values for this column are generally read only (like i.e. for sequence generated values).- Returns:
- Returns true if the values for this column are generally read-only
-
getAttributes
Set<Attributes.Attribute> getAttributes()Returns all metadata attributes.- Returns:
- set of metadata attributes
-
validateValue
Checks if the given value is a valid value for this column If not, an exception is thrown- Parameters:
value- the value to validate- Returns:
- the value the validated and possibly converted value
-