- All Superinterfaces:
Definition,PositionedDefinition,TypedElementDefinition<EmbeddableDefinition>
- All Known Implementing Classes:
DefaultEmbeddableColumnDefinition
public interface EmbeddableColumnDefinition
extends TypedElementDefinition<EmbeddableDefinition>, PositionedDefinition
An interface defining a column of an embeddable type.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionThe referencing column definition.intThePositionedDefinition.getPosition()ofgetReferencingColumn()within its defining table.getType()The data type definition of the embeddable.voidmerge(EmbeddableColumnDefinition other) Merge type information of another referencingEmbeddableColumnDefinitioninto thisEmbeddableColumnDefinition.Methods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, isSyntheticMethods inherited from interface org.jooq.meta.PositionedDefinition
getPositionMethods inherited from interface org.jooq.meta.TypedElementDefinition
getContainer, getDefinedType, getDomain, getType
-
Method Details
-
getReferencingColumn
ColumnDefinition getReferencingColumn()The referencing column definition. -
getType
DataTypeDefinition getType()The data type definition of the embeddable.This may be different from the data type definition of the
getReferencingColumn(), depending on whatmerge(EmbeddableColumnDefinition)produced as a result e.g. of merging multiple distinct nullabilities.- Specified by:
getTypein interfaceTypedElementDefinition<EmbeddableDefinition>
-
getReferencingColumnPosition
int getReferencingColumnPosition()ThePositionedDefinition.getPosition()ofgetReferencingColumn()within its defining table. -
merge
Merge type information of another referencingEmbeddableColumnDefinitioninto thisEmbeddableColumnDefinition.Multiple referencing column definitions can be used to define an embeddable column definition. The types and constraints on these alternative references may differ. For example, one column may be nullable, others may not be nullable.
-