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
    Constructor
    Description
    YTable(String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addColumn(int idx, org.apache.ddlutils.model.Column column)
     
    void
    addColumn(org.apache.ddlutils.model.Column column)
     
    void
    Adds relation between table column name and attribute descriptor.
     
     
    int
     
    void
     

    Methods 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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • YTable

      public YTable(String name)
  • Method Details

    • getTypeCode

      public int getTypeCode()
    • setName

      public void setName(String name)
      Overrides:
      setName in class org.apache.ddlutils.model.Table
    • addTableColumnAttributeDescriptorRelation

      public void addTableColumnAttributeDescriptorRelation(String columnName, String javaClassName)
      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 creating
      javaClassName - is javaClassName property in AtomicType which has instance member in AttributeDescriptor object corresponding to current table column we are adding to the table
    • getColumnDescriptor

      public Map<String,String> getColumnDescriptor()
    • findMappedColumn

      public YColumn findMappedColumn(YAttributeDescriptor attr)
    • addColumn

      public void addColumn(org.apache.ddlutils.model.Column column)
      Overrides:
      addColumn in class org.apache.ddlutils.model.Table
    • addColumn

      public void addColumn(int idx, org.apache.ddlutils.model.Column column)
      Overrides:
      addColumn in class org.apache.ddlutils.model.Table