- 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
Constructors Constructor Description DefaultEmbeddableDefinition(SchemaDefinition definingSchema, String definingName, String definingComment, TableDefinition definingTable, List<String> definingColumnNames, String referencingName, String referencingComment, TableDefinition referencingTable, List<ColumnDefinition> referencingColumns, boolean replacesFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)EmbeddableColumnDefinitiongetColumn(int columnIndex)Get a defining column in this type by its index (starting at 0).EmbeddableColumnDefinitiongetColumn(String columnName)Get a defining column in this type by its name.EmbeddableColumnDefinitiongetColumn(String columnName, boolean ignoreCase)Get a defining column in this type by its name.List<EmbeddableColumnDefinition>getColumns()All defining columns in the type, table or view.TableDefinitiongetDefiningTable()The table defining the embeddable (same asTableElementDefinition.getTable()).protected List<EmbeddableColumnDefinition>getElements0()EmbeddableColumnDefinitiongetReferencingColumn(String columnName)Get a referencing column in this type by its referencing name.EmbeddableColumnDefinitiongetReferencingColumn(String columnName, boolean ignoreCase)Get a referencing column in this type by its referencing name.StringgetReferencingComment()The referencing comment of this embeddable, if it differs from the defining name (Definition.getComment()).StringgetReferencingInputName()The referencing input name of this embeddable, if it differs from the defining name (Definition.getInputName()).StringgetReferencingName()The referencing name of this embeddable, if it differs from the defining name (Definition.getName()).StringgetReferencingOutputName()The referencing output name of this embeddable, if it differs from the defining name (Definition.getOutputName()).TableDefinitiongetReferencingTable()The table referencing the embeddable.TableDefinitiongetTable()The table that this object is part of.inthashCode()booleanreplacesFields()Whether this embeddable replaces the fields it represents.StringtoString()-
Methods inherited from class org.jooq.meta.AbstractElementContainerDefinition
getElement, getElement, getElement, getElements, parseNotNull, parsePrecision, parseScale, parseTypeName
-
Methods inherited from class org.jooq.meta.AbstractDefinition
create, create, getCatalog, getComment, getConnection, getDatabase, getDefinitionPath, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
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 Detail
-
getTable
public final TableDefinition getTable()
Description copied from interface:TableElementDefinitionThe table that this object is part of.- Specified by:
getTablein interfaceTableElementDefinition
-
getDefiningTable
public final TableDefinition getDefiningTable()
Description copied from interface:EmbeddableDefinitionThe table defining the embeddable (same asTableElementDefinition.getTable()).- Specified by:
getDefiningTablein interfaceEmbeddableDefinition
-
getReferencingComment
public final String 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
public final String 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
public final String 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
public final String 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
public final TableDefinition getReferencingTable()
Description copied from interface:EmbeddableDefinitionThe table referencing the embeddable.- Specified by:
getReferencingTablein interfaceEmbeddableDefinition
-
getElements0
protected final List<EmbeddableColumnDefinition> getElements0() throws SQLException
- Specified by:
getElements0in classAbstractElementContainerDefinition<EmbeddableColumnDefinition>- Throws:
SQLException
-
getColumns
public final List<EmbeddableColumnDefinition> getColumns()
Description copied from interface:EmbeddableDefinitionAll defining columns in the type, table or view.- Specified by:
getColumnsin interfaceEmbeddableDefinition
-
getColumn
public final EmbeddableColumnDefinition getColumn(String columnName)
Description copied from interface:EmbeddableDefinitionGet a defining column in this type by its name.- Specified by:
getColumnin interfaceEmbeddableDefinition
-
getColumn
public final EmbeddableColumnDefinition getColumn(String columnName, boolean ignoreCase)
Description copied from interface:EmbeddableDefinitionGet a defining column in this type by its name.- Specified by:
getColumnin interfaceEmbeddableDefinition
-
getColumn
public final EmbeddableColumnDefinition getColumn(int columnIndex)
Description copied from interface:EmbeddableDefinitionGet a defining column in this type by its index (starting at 0).- Specified by:
getColumnin interfaceEmbeddableDefinition
-
getReferencingColumn
public final EmbeddableColumnDefinition getReferencingColumn(String columnName)
Description copied from interface:EmbeddableDefinitionGet a referencing column in this type by its referencing name.- Specified by:
getReferencingColumnin interfaceEmbeddableDefinition
-
getReferencingColumn
public final EmbeddableColumnDefinition getReferencingColumn(String columnName, boolean ignoreCase)
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
-
toString
public String toString()
- Overrides:
toStringin classAbstractDefinition
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractDefinition
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDefinition
-
-