Package adalid.util.sql
Class SqlTable
- java.lang.Object
-
- adalid.util.sql.SqlArtifact
-
- adalid.util.sql.SqlTable
-
public class SqlTable extends SqlArtifact
- Author:
- Jorge Campins
-
-
Method Summary
-
Methods inherited from class adalid.util.sql.SqlArtifact
getCapitalizedJavaName, getDecapitalizedJavaName, getJavaName, getName, toString
-
-
-
-
Constructor Detail
-
SqlTable
public SqlTable(SqlReader reader)
-
-
Method Detail
-
getReader
public SqlReader getReader()
- Returns:
- the table reader
-
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
-
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
-
getColumns
public Collection<SqlColumn> getColumns()
- Returns:
- the columns list
-
getOrdinaryColumns
public Collection<SqlColumn> getOrdinaryColumns()
- Returns:
- the ordinary columns list
-
getIndexes
public Collection<SqlIndex> getIndexes()
- Returns:
- the indexes list
-
getRows
public Collection<SqlRow> getRows()
- Returns:
- the rows list
-
getRowsByPrimaryKeyMap
public Map<String,SqlRow> getRowsByPrimaryKeyMap()
- Returns:
- the rows by primary key 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
-
isRoot
public boolean isRoot()
-
getDiscriminatorValue
public int getDiscriminatorValue()
- Returns:
- the discriminator value
-
getRootTable
public SqlTable getRootTable()
-
getSuperTable
public SqlTable getSuperTable()
-
getQualifiedName
public String getQualifiedName()
-
-