Package ru.curs.celesta.score
Class Table
-
- All Implemented Interfaces:
HasColumns,TableElement,VersionedElement
public final class Table extends BasicTable implements VersionedElement
Table object in metadata.
-
-
Field Summary
-
Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH
-
Fields inherited from interface ru.curs.celesta.score.TableElement
YOU_CANNOT_DROP_A_COLUMN_THAT_BELONGS_TO
-
Fields inherited from interface ru.curs.celesta.score.VersionedElement
REC_VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerColumngetRecVersionField()Returns a description of recversion field.booleanhasPrimeKey()Whether the table has primary key.booleanisVersioned()Whether 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, toString
-
Methods inherited from class ru.curs.celesta.score.DataGrainElement
delete
-
Methods inherited from class ru.curs.celesta.score.GrainElement
getGrain, getGrainPart
-
Methods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
-
Methods inherited from interface ru.curs.celesta.score.TableElement
getGrain, getName, getQuotedName, getQuotedNameIfNeeded
-
-
-
-
Constructor Detail
-
Table
public Table(GrainPart grainPart, String name) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
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
public IntegerColumn getRecVersionField()
Description copied from interface:VersionedElementReturns a description of recversion field.- Specified by:
getRecVersionFieldin interfaceVersionedElement- Returns:
-
-