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, tableDefinitionFields inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
sequenceFields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier -
Constructor Summary
ConstructorsConstructorDescriptionUnaryTableSequenceDefinition(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.booleancheckIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERAL: Verify whether the sequence exists.PUBLIC: Return the name of the only field of this tableprotected UnaryTableSequencebooleanINTERNAL:Methods inherited from class org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
dropDatabaseSchema, dropDatabaseSchemaOnDatabase, getDatabaseSchema, getSequenceNameFieldName, getSequenceTable, getSequenceTableIndexes, getSequenceTableName, getSequenceTableQualifiedName, getSequenceTableQualifier, getTableSequence, preDropObject, shouldDropTableDefinitionMethods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
alter, alterOnDatabase, createOnDatabase, isAlterSupportedMethods 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:
buildCreationWriterin 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:
buildDeletionWriterin 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:
checkIfExistin classTableSequenceDefinition- Throws:
DatabaseException
-
getSequenceCounterFieldName
PUBLIC: Return the name of the only field of this table- Overrides:
getSequenceCounterFieldNamein classTableSequenceDefinition
-
buildTableDefinition
INTERNAL: Return a TableDefinition specifying a unary sequence table.- Overrides:
buildTableDefinitionin classTableSequenceDefinition
-
getUnaryTableSequence
-
isTableSequenceDefinition
public boolean isTableSequenceDefinition()INTERNAL:- Overrides:
isTableSequenceDefinitionin classTableSequenceDefinition
-