public class UnaryTableSequenceDefinition extends TableSequenceDefinition
Purpose: Creates / drops an unary sequence table: the name of the table is sequence name; its only field is named unarySequenceCounterFieldName
deleteSchema, tableDefinition
sequence
name, qualifier
Constructor and Description |
---|
UnaryTableSequenceDefinition(Sequence sequence)
INTERNAL:
Should be a sequence defining unary table sequence in the db:
either UnaryTableSequence
DefaultSequence (only if case platform.getDefaultSequence() is an UnaryTableSequence).
|
UnaryTableSequenceDefinition(Sequence sequence,
boolean deleteSchema) |
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the SQL required to create the unary sequence table.
|
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Return the SQL to delete the unary sequence table.
|
TableDefinition |
buildTableDefinition()
INTERNAL:
Return a TableDefinition specifying a unary sequence table.
|
boolean |
checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERAL:
Verify whether the sequence exists.
|
java.lang.String |
getSequenceCounterFieldName()
PUBLIC:
Return the name of the only field of this table
|
protected UnaryTableSequence |
getUnaryTableSequence() |
boolean |
isTableSequenceDefinition()
INTERNAL:
|
dropDatabaseSchema, dropDatabaseSchemaOnDatabase, getDatabaseSchema, getSequenceNameFieldName, getSequenceTable, getSequenceTableIndexes, getSequenceTableName, getSequenceTableQualifier, getTableSequence, preDropObject, shouldDropTableDefinition
alter, alterOnDatabase, createOnDatabase, isAlterSupported
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, dropFromDatabase, dropObject, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
public UnaryTableSequenceDefinition(Sequence sequence)
public UnaryTableSequenceDefinition(Sequence sequence, boolean deleteSchema)
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildCreationWriter
in class TableSequenceDefinition
ValidationException
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class TableSequenceDefinition
ValidationException
public boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
checkIfExist
in class TableSequenceDefinition
DatabaseException
public java.lang.String getSequenceCounterFieldName()
getSequenceCounterFieldName
in class TableSequenceDefinition
public TableDefinition buildTableDefinition()
buildTableDefinition
in class TableSequenceDefinition
protected UnaryTableSequence getUnaryTableSequence()
public boolean isTableSequenceDefinition()
isTableSequenceDefinition
in class TableSequenceDefinition