Package de.hybris.bootstrap.ddl.model
Class YTable
java.lang.Object
org.apache.ddlutils.model.Table
de.hybris.bootstrap.ddl.model.YTable
- All Implemented Interfaces:
Serializable,Cloneable
public class YTable
extends org.apache.ddlutils.model.Table
Class which extends DDLUtils Table class. We are adding typeCode and relation between table columns and appropriate
Java class type.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(int idx, org.apache.ddlutils.model.Column column) voidaddColumn(org.apache.ddlutils.model.Column column) voidaddTableColumnAttributeDescriptorRelation(String columnName, String javaClassName) Adds relation between table column name and attribute descriptor.intvoidMethods inherited from class org.apache.ddlutils.model.Table
addColumn, addColumns, addForeignKey, addForeignKey, addForeignKeys, addIndex, addIndex, addIndices, clone, equals, findColumn, findColumn, findForeignKey, findForeignKey, findIndex, findIndex, getAutoIncrementColumns, getCatalog, getColumn, getColumnCount, getColumnIndex, getColumns, getDescription, getForeignKey, getForeignKeyCount, getForeignKeys, getIndex, getIndexCount, getIndices, getName, getNonUniqueIndices, getPrimaryKeyColumns, getSchema, getSelfReferencingForeignKey, getType, getUniqueIndices, hashCode, hasPrimaryKey, removeColumn, removeColumn, removeForeignKey, removeForeignKey, removeIndex, removeIndex, setCatalog, setDescription, setSchema, setType, sortForeignKeys, toString, toVerboseString
-
Constructor Details
-
YTable
-
-
Method Details
-
getTypeCode
public int getTypeCode() -
setName
- Overrides:
setNamein classorg.apache.ddlutils.model.Table
-
addTableColumnAttributeDescriptorRelation
Adds relation between table column name and attribute descriptor. This is required because latter on when we check for column naming conflicts we need to extract data from YAttributeDescriptor objects and that info is not present in the DDLUtils implementation- Parameters:
columnName- we are creatingjavaClassName- is javaClassName property in AtomicType which has instance member in AttributeDescriptor object corresponding to current table column we are adding to the table
-
getColumnDescriptor
-
findMappedColumn
-
addColumn
public void addColumn(org.apache.ddlutils.model.Column column) - Overrides:
addColumnin classorg.apache.ddlutils.model.Table
-
addColumn
public void addColumn(int idx, org.apache.ddlutils.model.Column column) - Overrides:
addColumnin classorg.apache.ddlutils.model.Table
-