Class YTable

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addColumn​(int idx, org.apache.ddlutils.model.Column column)  
      void addColumn​(org.apache.ddlutils.model.Column column)  
      void addTableColumnAttributeDescriptorRelation​(java.lang.String columnName, java.lang.String javaClassName)
      Adds relation between table column name and attribute descriptor.
      YColumn findMappedColumn​(YAttributeDescriptor attr)  
      java.util.Map<java.lang.String,​java.lang.String> getColumnDescriptor()  
      int getTypeCode()  
      void setName​(java.lang.String name)  
      • 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
    • Method Detail

      • getTypeCode

        public int getTypeCode()
      • setName

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

        public void addTableColumnAttributeDescriptorRelation​(java.lang.String columnName,
                                                              java.lang.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 java.util.Map<java.lang.String,​java.lang.String> getColumnDescriptor()
      • 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