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 IntegerColumn
getRecVersionField()
Returns a description of recversion field.boolean
hasPrimeKey()
Whether the table has primary key.boolean
isVersioned()
Whether the table is versioned (WITH VERSION CHECK).void
setVersioned(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:TableElement
Whether the table has primary key.- Specified by:
hasPrimeKey
in interfaceTableElement
- Returns:
-
isVersioned
public boolean isVersioned()
Description copied from interface:VersionedElement
Whether the table is versioned (WITH VERSION CHECK).- Specified by:
isVersioned
in 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:VersionedElement
Returns a description of recversion field.- Specified by:
getRecVersionField
in interfaceVersionedElement
- Returns:
-
-