Class SqlTable


public class SqlTable extends SqlArtifact
Author:
Jorge Campins
  • Constructor Details

    • SqlTable

      public SqlTable(SqlReader reader)
  • Method Details

    • getReader

      public SqlReader getReader()
      Returns:
      the table reader
    • getOtherTable

      public SqlTable getOtherTable()
      Returns:
      the matching table in the other schema
    • setOtherTable

      public void setOtherTable(SqlTable table)
      Parameters:
      table - the the matching table in the other schema to set
    • getDefaultLabel

      public String getDefaultLabel()
      Returns:
      the default label
    • getDefaultCollectionLabel

      public String getDefaultCollectionLabel()
      Returns:
      the default collection label
    • isEnumerable

      public boolean isEnumerable()
      Returns:
      the enumerable indicator
    • isEnumeration

      public boolean isEnumeration()
      Returns:
      the enumerable indicator
    • isUpdatableEnumeration

      public boolean isUpdatableEnumeration()
      Returns:
      the enumerable indicator
    • isInsertable

      public boolean isInsertable()
      Returns:
      the insertable indicator
    • isUpdatable

      public boolean isUpdatable()
      Returns:
      the updatable indicator
    • isDeletable

      public boolean isDeletable()
      Returns:
      the deletable indicator
    • isIndependent

      public boolean isIndependent()
      Returns:
      the independent indicator
    • isLoaded

      public boolean isLoaded()
      Returns:
      the loaded indicator
    • getResourceType

      public String getResourceType()
      Returns:
      the resource type
    • isConfigurationTable

      public boolean isConfigurationTable()
    • isOperationTable

      public boolean isOperationTable()
    • isCatalogTable

      public boolean isCatalogTable()
    • isLoadable

      public boolean isLoadable()
    • getFeatures

      public String getFeatures()
    • getBaseTable

      public SqlTable getBaseTable()
      Returns:
      the base table
    • setBaseTable

      protected void setBaseTable(SqlTable baseTable)
      Parameters:
      baseTable - the base table to set
    • getPrimaryKey

      public SqlColumn getPrimaryKey()
      Returns:
      the primary key column
    • getBusinessKey

      public SqlColumn getBusinessKey()
      Returns:
      the business key column
    • getVersion

      public SqlColumn getVersion()
      Returns:
      the version column
    • getVersionProperty

      public SqlColumn getVersionProperty()
      Returns:
      the version property column
    • getDiscriminatorProperty

      public SqlColumn getDiscriminatorProperty()
      Returns:
      the discriminator property column
    • getNameProperty

      public SqlColumn getNameProperty()
      Returns:
      the name property column
    • getDescriptionProperty

      public SqlColumn getDescriptionProperty()
      Returns:
      the description property column
    • getColumnsMap

      public Map<String,SqlColumn> getColumnsMap()
      Returns:
      the columns map
    • getColumns

      public Collection<SqlColumn> getColumns()
      Returns:
      the columns list
    • getColumn

      public SqlColumn getColumn(String name)
      Parameters:
      name - of the column
      Returns:
      the column
    • getOrdinaryColumns

      public Collection<SqlColumn> getOrdinaryColumns()
      Returns:
      the ordinary columns list
    • isPrimaryKeyCollision

      public boolean isPrimaryKeyCollision()
    • isBusinessKeyCollision

      public boolean isBusinessKeyCollision()
    • isVersionPropertyCollision

      public boolean isVersionPropertyCollision()
    • getSqlColumn

      public SqlColumn getSqlColumn(String name)
    • getIndexesMap

      public Map<String,SqlIndex> getIndexesMap()
      Returns:
      the indexes map
    • getIndexes

      public Collection<SqlIndex> getIndexes()
      Returns:
      the indexes list
    • getRowsMap

      public Map<String,SqlRow> getRowsMap()
      Returns:
      the rows map
    • getRows

      public Collection<SqlRow> getRows()
      Returns:
      the rows list
    • getRowsByPrimaryKeyMap

      public Map<String,SqlRow> getRowsByPrimaryKeyMap()
      Returns:
      the rows by primary key map
    • getPrimaryKeys

      public Set<String> getPrimaryKeys()
      Returns:
      the rows by primary key list
    • getTabsMap

      public Map<String,SqlTab> getTabsMap()
      Returns:
      the tabs map
    • getTabs

      public Collection<SqlTab> getTabs()
      Returns:
      the tabs list
    • getRoutinesMap

      public Map<String,SqlRoutine> getRoutinesMap()
      Returns:
      the routines map
    • getRoutines

      public Collection<SqlRoutine> getRoutines()
      Returns:
      the routines list
    • getReferences

      public Map<SqlColumn,SqlTable> getReferences()
      Returns:
      the references map
    • getExtensions

      public Map<String,SqlTable> getExtensions()
      Returns:
      the extensions map
    • getCKConstraintsMap

      public Map<String,SqlCheckConstraint> getCKConstraintsMap()
      Returns:
      the CK constraints map
    • getCKConstraints

      public Collection<SqlCheckConstraint> getCKConstraints()
      Returns:
      the CK constraints collection
    • getPKConstraintsMap

      public Map<String,SqlConstraintIndex> getPKConstraintsMap()
      Returns:
      the PK constraints map
    • getPKConstraints

      public Collection<SqlConstraintIndex> getPKConstraints()
      Returns:
      the PK constraints collection
    • getUKConstraintsMap

      public Map<String,SqlConstraintIndex> getUKConstraintsMap()
      Returns:
      the UK constraints map
    • getUKConstraints

      public Collection<SqlConstraintIndex> getUKConstraints()
      Returns:
      the UK constraints collection
    • getFKConstraintsMap

      public Map<String,SqlConstraintIndex> getFKConstraintsMap()
      Returns:
      the FK constraints map
    • getFKConstraints

      public Collection<SqlConstraintIndex> getFKConstraints()
      Returns:
      the FK constraints collection
    • getIXConstraintsMap

      public Map<String,SqlConstraintIndex> getIXConstraintsMap()
      Returns:
      the IX constraints map
    • getIXConstraints

      public Collection<SqlConstraintIndex> getIXConstraints()
      Returns:
      the IX constraints collection
    • isRoot

      public boolean isRoot()
    • getDiscriminatorValue

      public int getDiscriminatorValue()
      Returns:
      the discriminator value
    • getRootTable

      public SqlTable getRootTable()
    • getSuperTable

      public SqlTable getSuperTable()
    • getQualifiedName

      public String getQualifiedName()
    • add

      protected void add(SqlIndex index)
    • add

      protected void add(SqlTab tab)
    • add

      protected void add(SqlRoutine routine)