Class YDbModel

java.lang.Object
de.hybris.bootstrap.ddl.model.YDbModel
All Implemented Interfaces:
YDbTableProvider

public class YDbModel extends Object implements YDbTableProvider
Container which contains all tables in the database. "Regular" and localized tables are separated into a different collections. All localized tables have LP suffix at the end the table name. Table column name is limited to 30 characters.
  • Constructor Details

  • Method Details

    • createDatabase

      public org.apache.ddlutils.model.Database createDatabase()
    • createDatabase

      public org.apache.ddlutils.model.Database createDatabase(String tablePrefix)
    • getCreationParameters

      public org.apache.ddlutils.platform.CreationParameters getCreationParameters()
    • getMappedTable

      public YTable getMappedTable(YComposedType yComposedType)
    • findMappedColumn

      public YColumn findMappedColumn(YComposedType type, YAttributeDescriptor attribute)
    • getTable

      public YTable getTable(String tableName)
    • getLocalizedTable

      public YTable getLocalizedTable(String tableName)
    • removeLocalizedTable

      public void removeLocalizedTable(String tableName)
    • createTable

      public void createTable(String tableName, int itemTypeCode)
    • createTable

      public void createTable(String tableName, int itemTypeCode, Map<String,String> customProperties)
    • getLocalizedTables

      public List<YTable> getLocalizedTables()
    • getTables

      public Map<String,YTable> getTables()
      Specified by:
      getTables in interface YDbTableProvider
    • getColumnName

      public String getColumnName(YAttributeDeployment attributeDeployment)
    • computeColumnNameForAttributeInType

      public String computeColumnNameForAttributeInType(YAttributeDescriptor attributeDescriptor, YComposedType enclosingType)