Module eclipselink
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
sequence -
Constructor Summary
ConstructorsConstructorDescriptionUnaryTableSequenceDefinition(String name, boolean deleteSchema) 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) Deprecated, for removal: This API element is subject to removal in a future version.Use UnaryTableSequenceDefinition(String, boolean) instead.UnaryTableSequenceDefinition(Sequence sequence, boolean deleteSchema) Deprecated, for removal: This API element is subject to removal in a future version.Use UnaryTableSequenceDefinition(String, boolean) instead. -
Method Summary
Modifier and TypeMethodDescriptionbuildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) Deprecated, for removal: This API element is subject to removal in a future version.buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Return a TableDefinition specifying a unary sequence table.booleancheckIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.ImplementDatabasePlatform.checkSequenceExists(...)instead.protected UnaryTableSequenceDeprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.Methods inherited from class org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
dropDatabaseSchema, dropDatabaseSchemaOnDatabase, getDatabaseSchema, getSequenceCounterFieldName, getSequenceNameFieldName, getSequenceTable, getSequenceTableIndexes, getSequenceTableName, getSequenceTableQualifiedName, getSequenceTableQualifier, getTableSequence, isTableSequenceDefinition, preDropObject, setSequenceCounterFieldName, setSequenceNameFieldName, setSequenceTableIndexes, setSequenceTableName, setSequenceTableQualifier, shouldDropTableDefinitionMethods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
alter, alterOnDatabase, createOnDatabase, getInitialValue, getPreallocationSize, isAlterSupported, setInitialValue, setPreallocationSizeMethods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, dropFromDatabase, dropObject, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
-
Constructor Details
-
UnaryTableSequenceDefinition
Deprecated, for removal: This API element is subject to removal in a future version.Use UnaryTableSequenceDefinition(String, boolean) instead.INTERNAL: Should be a sequence defining unary table sequence in the db: either UnaryTableSequence DefaultSequence (only if case platform.getDefaultSequence() is an UnaryTableSequence). -
UnaryTableSequenceDefinition
@Deprecated(forRemoval=true, since="4.0.9") public UnaryTableSequenceDefinition(Sequence sequence, boolean deleteSchema) Deprecated, for removal: This API element is subject to removal in a future version.Use UnaryTableSequenceDefinition(String, boolean) instead. -
UnaryTableSequenceDefinition
INTERNAL: Should be a sequence defining unary table sequence in the db: either UnaryTableSequence DefaultSequence (only if case platform.getDefaultSequence() is an UnaryTableSequence).
-
-
Method Details
-
buildCreationWriter
@Deprecated(forRemoval=true, since="4.0.9") public Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Return the SQL required to create the unary sequence table.- Overrides:
buildCreationWriterin classTableSequenceDefinition- Throws:
ValidationException
-
buildDeletionWriter
@Deprecated(forRemoval=true, since="4.0.9") public Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Return the SQL to delete the unary sequence table.- Overrides:
buildDeletionWriterin classTableSequenceDefinition- Throws:
ValidationException
-
checkIfExist
@Deprecated(forRemoval=true, since="4.0.9") public boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException Deprecated, for removal: This API element is subject to removal in a future version.ImplementDatabasePlatform.checkSequenceExists(...)instead.INTERNAL: Verify whether the sequence exists. Assume that the unary sequence table exists.- Overrides:
checkIfExistin classTableSequenceDefinition- Throws:
DatabaseException
-
buildTableDefinition
INTERNAL: Return a TableDefinition specifying a unary sequence table.- Overrides:
buildTableDefinitionin classTableSequenceDefinition
-
getUnaryTableSequence
Deprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.
-