Class UnaryTableSequenceDefinition
java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.SequenceDefinition
org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
org.eclipse.persistence.tools.schemaframework.UnaryTableSequenceDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose: Creates / drops an unary sequence table: the name of the table is sequence name; its only field is named unarySequenceCounterFieldName
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
deleteSchema, tableDefinition
Fields inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
sequence
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier
-
Constructor Summary
ConstructorDescriptionUnaryTableSequenceDefinition
(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) -
Method Summary
Modifier and TypeMethodDescriptionbuildCreationWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the SQL required to create the unary sequence table.buildDeletionWriter
(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) INTERNAL: Return the SQL to delete the unary sequence table.INTERNAL: Return a TableDefinition specifying a unary sequence table.boolean
checkIfExist
(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERAL: Verify whether the sequence exists.PUBLIC: Return the name of the only field of this tableprotected UnaryTableSequence
boolean
INTERNAL:Methods inherited from class org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
dropDatabaseSchema, dropDatabaseSchemaOnDatabase, getDatabaseSchema, getSequenceNameFieldName, getSequenceTable, getSequenceTableIndexes, getSequenceTableName, getSequenceTableQualifiedName, getSequenceTableQualifier, getTableSequence, preDropObject, shouldDropTableDefinition
Methods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
alter, alterOnDatabase, createOnDatabase, isAlterSupported
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, dropFromDatabase, dropObject, getFieldTypeDefinition, getFieldTypeDefinition, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
-
Constructor Details
-
UnaryTableSequenceDefinition
INTERNAL: Should be a sequence defining unary table sequence in the db: either UnaryTableSequence DefaultSequence (only if case platform.getDefaultSequence() is an UnaryTableSequence). -
UnaryTableSequenceDefinition
-
-
Method Details
-
buildCreationWriter
public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the SQL required to create the unary sequence table.- Overrides:
buildCreationWriter
in classTableSequenceDefinition
- Throws:
ValidationException
-
buildDeletionWriter
public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Return the SQL to delete the unary sequence table.- Overrides:
buildDeletionWriter
in classTableSequenceDefinition
- Throws:
ValidationException
-
checkIfExist
public boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException INTERAL: Verify whether the sequence exists. Assume that the unary sequence table exists.- Overrides:
checkIfExist
in classTableSequenceDefinition
- Throws:
DatabaseException
-
getSequenceCounterFieldName
PUBLIC: Return the name of the only field of this table- Overrides:
getSequenceCounterFieldName
in classTableSequenceDefinition
-
buildTableDefinition
INTERNAL: Return a TableDefinition specifying a unary sequence table.- Overrides:
buildTableDefinition
in classTableSequenceDefinition
-
getUnaryTableSequence
-
isTableSequenceDefinition
public boolean isTableSequenceDefinition()INTERNAL:- Overrides:
isTableSequenceDefinition
in classTableSequenceDefinition
-