Package adalid.util.sql
Class SqlTable
java.lang.Object
adalid.util.sql.SqlArtifact
adalid.util.sql.SqlTable
- Author:
- Jorge Campins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidadd(SqlRoutine routine) protected voidintgetRows()getSqlColumn(String name) getTabs()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisLoaded()booleanbooleanbooleanisRoot()booleanbooleanbooleanprotected voidsetBaseTable(SqlTable baseTable) voidsetOtherTable(SqlTable table) Methods inherited from class adalid.util.sql.SqlArtifact
getCapitalizedJavaName, getDecapitalizedJavaName, getJavaName, getName, toString
-
Constructor Details
-
SqlTable
-
-
Method Details
-
getReader
- Returns:
- the table reader
-
getOtherTable
- Returns:
- the matching table in the other schema
-
setOtherTable
- Parameters:
table- the the matching table in the other schema to set
-
getDefaultLabel
- Returns:
- the default label
-
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
- Returns:
- the resource type
-
isConfigurationTable
public boolean isConfigurationTable() -
isOperationTable
public boolean isOperationTable() -
isCatalogTable
public boolean isCatalogTable() -
isLoadable
public boolean isLoadable() -
getFeatures
-
getBaseTable
- Returns:
- the base table
-
setBaseTable
- Parameters:
baseTable- the base table to set
-
getPrimaryKey
- Returns:
- the primary key column
-
getBusinessKey
- Returns:
- the business key column
-
getVersion
- Returns:
- the version column
-
getVersionProperty
- Returns:
- the version property column
-
getDiscriminatorProperty
- Returns:
- the discriminator property column
-
getNameProperty
- Returns:
- the name property column
-
getDescriptionProperty
- Returns:
- the description property column
-
getColumnsMap
- Returns:
- the columns map
-
getColumns
- Returns:
- the columns list
-
getColumn
- Parameters:
name- of the column- Returns:
- the column
-
getOrdinaryColumns
- Returns:
- the ordinary columns list
-
isPrimaryKeyCollision
public boolean isPrimaryKeyCollision() -
isBusinessKeyCollision
public boolean isBusinessKeyCollision() -
isVersionPropertyCollision
public boolean isVersionPropertyCollision() -
getSqlColumn
-
getIndexesMap
- Returns:
- the indexes map
-
getIndexes
- Returns:
- the indexes list
-
getRowsMap
- Returns:
- the rows map
-
getRows
- Returns:
- the rows list
-
getRowsByPrimaryKeyMap
- Returns:
- the rows by primary key map
-
getPrimaryKeys
- Returns:
- the rows by primary key list
-
getTabsMap
- Returns:
- the tabs map
-
getTabs
- Returns:
- the tabs list
-
getRoutinesMap
- Returns:
- the routines map
-
getRoutines
- Returns:
- the routines list
-
getReferences
- Returns:
- the references map
-
getExtensions
- Returns:
- the extensions map
-
getCKConstraintsMap
- Returns:
- the CK constraints map
-
getCKConstraints
- Returns:
- the CK constraints collection
-
getPKConstraintsMap
- Returns:
- the PK constraints map
-
getPKConstraints
- Returns:
- the PK constraints collection
-
getUKConstraintsMap
- Returns:
- the UK constraints map
-
getUKConstraints
- Returns:
- the UK constraints collection
-
getFKConstraintsMap
- Returns:
- the FK constraints map
-
getFKConstraints
- Returns:
- the FK constraints collection
-
getIXConstraintsMap
- Returns:
- the IX constraints map
-
getIXConstraints
- Returns:
- the IX constraints collection
-
isRoot
public boolean isRoot() -
getDiscriminatorValue
public int getDiscriminatorValue()- Returns:
- the discriminator value
-
getRootTable
-
getSuperTable
-
getQualifiedName
-
add
-
add
-
add
-