Module is.codion.framework.domain
Interface Column<T>
- Type Parameters:
T
- the column value type
- All Superinterfaces:
Attribute<T>
,ColumnCondition.Factory<T>
An
Attribute
representing a table column.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
ProvidesColumnDefinition.Builder
instances for audit columns.static interface
ProvidesColumnDefinition.Builder
instances.static interface
Converts to and from SQL values, such as integers being used to represent booleans in a database.static interface
Fetches a single value from a result set.Nested classes/interfaces inherited from interface is.codion.framework.domain.entity.attribute.Attribute
Attribute.AttributeDefiner<T>, Attribute.Type<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Column<T>
column
(EntityType entityType, String name, TypeReference<T> typeReference) Creates a newColumn
, associated with the given entityType.static <T> Column<T>
column
(EntityType entityType, String name, Class<T> valueClass) Creates a newColumn
, associated with the given entityType.define()
Methods inherited from interface is.codion.framework.domain.entity.attribute.Attribute
entityType, name, type
Methods inherited from interface is.codion.framework.domain.entity.condition.ColumnCondition.Factory
between, betweenExclusive, equalTo, equalToIgnoreCase, equalToIgnoreCase, greaterThan, greaterThanOrEqualTo, in, in, inIgnoreCase, inIgnoreCase, isNotNull, isNull, lessThan, lessThanOrEqualTo, like, likeIgnoreCase, notBetween, notBetweenExclusive, notEqualTo, notEqualToIgnoreCase, notEqualToIgnoreCase, notIn, notIn, notInIgnoreCase, notInIgnoreCase, notLike, notLikeIgnoreCase
-
Method Details
-
define
Column.ColumnDefiner<T> define()- Specified by:
define
in interfaceAttribute<T>
- Returns:
- a
Column.ColumnDefiner
for this column
-
column
Creates a newColumn
, associated with the given entityType.- Type Parameters:
T
- the column type- Parameters:
entityType
- the entityType owning this columnname
- the column nametypeReference
- theTypeReference
representing the column value type- Returns:
- a new
Column
-
column
Creates a newColumn
, associated with the given entityType.- Type Parameters:
T
- the column type- Parameters:
entityType
- the entityType owning this columnname
- the column namevalueClass
- the class representing the column value type- Returns:
- a new
Column
-