JavaScript is disabled on your browser.
Nested Class Summary
Nested Classes
Field Summary
Fields inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition
DATE_FORMAT , DATE_TIME_FORMAT , DECIMAL_ROUNDING_MODE , DECIMAL_SEPARATOR , DEFAULT_MAXIMUM_FRACTION_DIGITS , GROUPING_SEPARATOR , MAXIMUM_FRACTION_DIGITS , MNEMONIC_RESOURCE_SUFFIX , NUMBER_FORMAT_GROUPING , TIME_FORMAT , USE_LEXICAL_STRING_COMPARATOR
Method Summary
All Methods Instance Methods Abstract Methods
boolean
The
Attribute
this definition is based on, should be unique within an Entity.
boolean
Note: returns null when used in a remote connection context.
Note: returns null when used in a remote connection context.
Fetches a value for this column from a ResultSet
boolean
boolean
Specifies whether this column is insertable
boolean
Note: returns null when used in a remote connection context.
boolean
int
boolean
boolean
boolean
int
boolean
Indicates whether this column is updatable
Methods inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition
caption , comparator , dateTimeFormatter , dateTimePattern , decimalRoundingMode , defaultValue , derived , description , entityType , format , hasDefaultValue , hidden , items , maximumFractionDigits , maximumLength , maximumValue , minimumValue , mnemonic , nullable , string , validItem
Method Details
attribute
The
Attribute
this definition is based on, should be unique within an Entity.
By default, the
Attribute.name()
serves as column name for database columns.
Specified by:
attribute
in interface AttributeDefinition <T >
Returns:
the attribute this definition is based on
name
Note: returns null when used in a remote connection context.
Returns:
the column name
expression
Note: returns null when used in a remote connection context.
Returns:
the column expression to use when selecting or the column name if no expression has been set
type
int type ()
Returns:
the sql data type of the underlying column (Types
.
converter
Note: returns null when used in a remote connection context.
Type Parameters:
C
- the colum value type
Returns:
the Column.Converter
for this column.
primaryKeyIndex
int primaryKeyIndex ()
Returns:
this columns zero based index in the primary key, -1 if this column is not part of a primary key
primaryKey
boolean primaryKey ()
Returns:
true if this column is part of a primary key
groupBy
boolean groupBy ()
Returns:
true if this column should be grouped by
aggregate
boolean aggregate ()
Returns:
true if this column is based on an aggregate function
selectable
boolean selectable ()
Returns:
true if this column should be included in select queries
lazy
boolean lazy ()
Returns:
true if this column should not be selected by default
insertable
boolean insertable ()
Specifies whether this column is insertable
Returns:
true if this column is insertable
updatable
boolean updatable ()
Indicates whether this column is updatable
Returns:
true if this column is updatable
readOnly
boolean readOnly ()
Returns:
true if this column is neither insertable nor updatable.
columnHasDefaultValue
boolean columnHasDefaultValue ()
Returns:
true if the underlying column has a default value
searchable
boolean searchable ()
Returns:
true if this column should be included when searching by string
get
Fetches a value for this column from a ResultSet
Parameters:
resultSet
- the ResultSet
index
- this columns index in the result
Returns:
a single value fetched from the given ResultSet
Throws:
SQLException
- in case of an exception