Package ru.curs.celesta.score
Class Table
- All Implemented Interfaces:
HasColumns,TableElement,VersionedElement
Table object in metadata.
-
Field Summary
Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTHFields inherited from interface ru.curs.celesta.score.TableElement
YOU_CANNOT_DROP_A_COLUMN_THAT_BELONGS_TOFields inherited from interface ru.curs.celesta.score.VersionedElement
REC_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of recversion field.booleanWhether the table has primary key.booleanWhether the table is versioned (WITH VERSION CHECK).voidsetVersioned(boolean versioned) Sets to the table option "versioned".Methods inherited from class ru.curs.celesta.score.BasicTable
addColumn, finalizePK, getAutoincrementedColumn, getColumn, getColumnIndex, getColumns, getForeignKeys, getImplements, getIndices, getPkConstraintName, getPrimaryKey, hasMaterializedViews, isAutoUpdate, removeColumn, setAutoUpdate, setPK, setPkConstraintName, toStringMethods inherited from class ru.curs.celesta.score.DataGrainElement
deleteMethods inherited from class ru.curs.celesta.score.GrainElement
getGrain, getGrainPartMethods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocMethods inherited from interface ru.curs.celesta.score.TableElement
getGrain, getName, getQuotedName, getQuotedNameIfNeeded
-
Constructor Details
-
Table
- Throws:
ParseException
-
-
Method Details
-
hasPrimeKey
public boolean hasPrimeKey()Description copied from interface:TableElementWhether the table has primary key.- Specified by:
hasPrimeKeyin interfaceTableElement- Returns:
-
isVersioned
public boolean isVersioned()Description copied from interface:VersionedElementWhether the table is versioned (WITH VERSION CHECK).- Specified by:
isVersionedin interfaceVersionedElement- Returns:
-
setVersioned
public void setVersioned(boolean versioned) Sets to the table option "versioned".- Parameters:
versioned- "versioned" option value
-
getRecVersionField
Description copied from interface:VersionedElementReturns a description of recversion field.- Specified by:
getRecVersionFieldin interfaceVersionedElement- Returns:
-