Interface Column

All Superinterfaces:
ColumnExpr
All Known Implementing Classes:
BeanProperty, DBColumn, DBCommandExpr.DBCmdColumn, DBQueryColumn, DBTableColumn, DBView.DBViewColumn

public interface Column extends ColumnExpr
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 Details

  • 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

      Object validateValue(Object value)
      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