Class YDbModel

  • All Implemented Interfaces:
    YDbTableProvider

    public class YDbModel
    extends java.lang.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.
    • Method Detail

      • createDatabase

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

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

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

        public YTable getTable​(java.lang.String tableName)
      • getLocalizedTable

        public YTable getLocalizedTable​(java.lang.String tableName)
      • removeLocalizedTable

        public void removeLocalizedTable​(java.lang.String tableName)
      • createTable

        public void createTable​(java.lang.String tableName,
                                int itemTypeCode)
      • createTable

        public void createTable​(java.lang.String tableName,
                                int itemTypeCode,
                                java.util.Map<java.lang.String,​java.lang.String> customProperties)
      • getLocalizedTables

        public java.util.List<YTable> getLocalizedTables()
      • getColumnName

        public java.lang.String getColumnName​(YAttributeDeployment attributeDeployment)
      • computeColumnNameForAttributeInType

        public java.lang.String computeColumnNameForAttributeInType​(YAttributeDescriptor attributeDescriptor,
                                                                    YComposedType enclosingType)