java.lang.Object
org.jooq.meta.AbstractDefinition
org.jooq.meta.AbstractElementContainerDefinition<EmbeddableColumnDefinition>
org.jooq.meta.DefaultEmbeddableDefinition
- All Implemented Interfaces:
Definition,EmbeddableDefinition,TableElementDefinition
public class DefaultEmbeddableDefinition
extends AbstractElementContainerDefinition<EmbeddableColumnDefinition>
implements EmbeddableDefinition
- Author:
- Lukas Eder
-
Field Summary
Fields inherited from class org.jooq.meta.AbstractElementContainerDefinition
PRECISION_SCALE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEmbeddableDefinition(SchemaDefinition definingSchema, String definingName, String definingComment, TableDefinition definingTable, List<String> definingColumnNames, String referencingName, String referencingComment, TableDefinition referencingTable, List<ColumnDefinition> referencingColumns, boolean replacesFields) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColumn(int columnIndex) Get a defining column in this type by its index (starting at 0).Get a defining column in this type by its name.Get a defining column in this type by its name.final List<EmbeddableColumnDefinition> All defining columns in the type, table or view.final TableDefinitionThe table defining the embeddable (same asTableElementDefinition.getTable()).protected final List<EmbeddableColumnDefinition> getReferencingColumn(String columnName) Get a referencing column in this type by its referencing name.getReferencingColumn(String columnName, boolean ignoreCase) Get a referencing column in this type by its referencing name.final StringThe referencing comment of this embeddable, if it differs from the defining name (Definition.getComment()).final StringThe referencing input name of this embeddable, if it differs from the defining name (Definition.getInputName()).final StringThe referencing name of this embeddable, if it differs from the defining name (Definition.getName()).final StringThe referencing output name of this embeddable, if it differs from the defining name (Definition.getOutputName()).final TableDefinitionThe table referencing the embeddable.final TableDefinitiongetTable()The table that this object is part of.inthashCode()voidmerge(EmbeddableDefinition other) Merge type information of anotherEmbeddableDefinitioninto thisEmbeddableDefinition.final booleanWhether this embeddable replaces the fields it represents.toString()Methods inherited from class org.jooq.meta.AbstractElementContainerDefinition
getElement, getElement, getElement, getElements, getElementsIncludingHidden, parseNotNull, parsePrecision, parseScale, parseTypeNameMethods inherited from class org.jooq.meta.AbstractDefinition
create, create, getCatalog, getComment, getConnection, getDatabase, getDefinitionPath, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getPartiallyQualifiedNames, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSourceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getPartiallyQualifiedNames, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, isSynthetic
-
Constructor Details
-
DefaultEmbeddableDefinition
public DefaultEmbeddableDefinition(SchemaDefinition definingSchema, String definingName, String definingComment, TableDefinition definingTable, List<String> definingColumnNames, String referencingName, String referencingComment, TableDefinition referencingTable, List<ColumnDefinition> referencingColumns, boolean replacesFields)
-
-
Method Details
-
getTable
Description copied from interface:TableElementDefinitionThe table that this object is part of.- Specified by:
getTablein interfaceTableElementDefinition
-
getDefiningTable
Description copied from interface:EmbeddableDefinitionThe table defining the embeddable (same asTableElementDefinition.getTable()).- Specified by:
getDefiningTablein interfaceEmbeddableDefinition
-
getReferencingComment
Description copied from interface:EmbeddableDefinitionThe referencing comment of this embeddable, if it differs from the defining name (Definition.getComment()).- Specified by:
getReferencingCommentin interfaceEmbeddableDefinition
-
getReferencingName
Description copied from interface:EmbeddableDefinitionThe referencing name of this embeddable, if it differs from the defining name (Definition.getName()).- Specified by:
getReferencingNamein interfaceEmbeddableDefinition
-
getReferencingInputName
Description copied from interface:EmbeddableDefinitionThe referencing input name of this embeddable, if it differs from the defining name (Definition.getInputName()).- Specified by:
getReferencingInputNamein interfaceEmbeddableDefinition
-
getReferencingOutputName
Description copied from interface:EmbeddableDefinitionThe referencing output name of this embeddable, if it differs from the defining name (Definition.getOutputName()).- Specified by:
getReferencingOutputNamein interfaceEmbeddableDefinition
-
getReferencingTable
Description copied from interface:EmbeddableDefinitionThe table referencing the embeddable.- Specified by:
getReferencingTablein interfaceEmbeddableDefinition
-
getElements0
- Specified by:
getElements0in classAbstractElementContainerDefinition<EmbeddableColumnDefinition>- Throws:
SQLException
-
getColumns
Description copied from interface:EmbeddableDefinitionAll defining columns in the type, table or view.- Specified by:
getColumnsin interfaceEmbeddableDefinition
-
getColumn
Description copied from interface:EmbeddableDefinitionGet a defining column in this type by its name.- Specified by:
getColumnin interfaceEmbeddableDefinition
-
getColumn
Description copied from interface:EmbeddableDefinitionGet a defining column in this type by its name.- Specified by:
getColumnin interfaceEmbeddableDefinition
-
getColumn
Description copied from interface:EmbeddableDefinitionGet a defining column in this type by its index (starting at 0).- Specified by:
getColumnin interfaceEmbeddableDefinition
-
getReferencingColumn
Description copied from interface:EmbeddableDefinitionGet a referencing column in this type by its referencing name.- Specified by:
getReferencingColumnin interfaceEmbeddableDefinition
-
getReferencingColumn
Description copied from interface:EmbeddableDefinitionGet a referencing column in this type by its referencing name.- Specified by:
getReferencingColumnin interfaceEmbeddableDefinition
-
replacesFields
public final boolean replacesFields()Description copied from interface:EmbeddableDefinitionWhether this embeddable replaces the fields it represents.- Specified by:
replacesFieldsin interfaceEmbeddableDefinition
-
merge
Description copied from interface:EmbeddableDefinitionMerge type information of anotherEmbeddableDefinitioninto thisEmbeddableDefinition.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.
- Specified by:
mergein interfaceEmbeddableDefinition
-
toString
- Overrides:
toStringin classAbstractDefinition
-
equals
- Overrides:
equalsin classAbstractDefinition
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractDefinition
-