Module eclipselink
Class TableSequenceDefinition
java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.SequenceDefinition
org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
UnaryTableSequenceDefinition
Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
sequence -
Constructor Summary
ConstructorsConstructorDescriptionTableSequenceDefinition(String name, boolean deleteSchema) INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence).TableSequenceDefinition(Sequence sequence, boolean deleteSchema) Deprecated, for removal: This API element is subject to removal in a future version.Use TableSequenceDefinition(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 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.voiddropDatabaseSchema(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) Deprecated, for removal: This API element is subject to removal in a future version.voiddropDatabaseSchemaOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.Return the schema associated with this table sequence.org.eclipse.persistence.internal.helper.DatabaseTableDeprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.protected TableSequenceDeprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.booleanINTERNAL:voidpreDropObject(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer dropSchemaWriter, boolean createSQLFiles) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSequenceCounterFieldName(String sequenceCounterFieldName) voidsetSequenceNameFieldName(String sequenceNameFieldName) voidsetSequenceTableIndexes(List<IndexDefinition> sequenceTableIndexes) voidsetSequenceTableName(String sequenceTableName) voidsetSequenceTableQualifier(String sequenceTableQualifier) protected booleanINTERNAL: Returns true if the table definition should be dropped during buildDeletionWriter.Methods 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
-
Field Details
-
tableDefinition
-
deleteSchema
protected boolean deleteSchema
-
-
Constructor Details
-
TableSequenceDefinition
@Deprecated(forRemoval=true, since="4.0.9") public TableSequenceDefinition(Sequence sequence, boolean deleteSchema) Deprecated, for removal: This API element is subject to removal in a future version.Use TableSequenceDefinition(String, boolean) instead.INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence). -
TableSequenceDefinition
INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence).
-
-
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 insert the sequence row into the sequence table. Assume that the sequence table exists.- Specified by:
buildCreationWriterin classDatabaseObjectDefinition- 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 row from the sequence table. If we're dealing with create creation, then delegate to the table so that is dropped outright since we will delete the schema.- Specified by:
buildDeletionWriterin classDatabaseObjectDefinition- 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: Execute the SQL required to insert the sequence row into the sequence table. Assume that the sequence table exists.- Specified by:
checkIfExistin classSequenceDefinition- Throws:
DatabaseException
-
dropDatabaseSchema
@Deprecated(forRemoval=true, since="4.0.9") public void dropDatabaseSchema(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws EclipseLinkException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Execute the DDL to drop the database schema for this object. Does nothing at this level, subclasses that support this must override this method.- Overrides:
dropDatabaseSchemain classDatabaseObjectDefinition- Throws:
EclipseLinkException- See Also:
-
dropDatabaseSchemaOnDatabase
@Deprecated(forRemoval=true, since="4.0.9") public void dropDatabaseSchemaOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Execute the DDL to drop the database schema for this object. Does nothing at this level, subclasses that support this must override this method.- Overrides:
dropDatabaseSchemaOnDatabasein classDatabaseObjectDefinition- Throws:
EclipseLinkException- See Also:
-
getDatabaseSchema
Return the schema associated with this table sequence.- Overrides:
getDatabaseSchemain classDatabaseObjectDefinition- See Also:
-
getSequenceCounterFieldName
-
getSequenceNameFieldName
-
getSequenceTable
@Deprecated(forRemoval=true, since="4.0.9") public org.eclipse.persistence.internal.helper.DatabaseTable getSequenceTable()Deprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.Return the database table for the sequence. -
getSequenceTableIndexes
-
getSequenceTableName
-
getSequenceTableQualifier
-
getSequenceTableQualifiedName
-
buildTableDefinition
INTERNAL: Return a TableDefinition specifying sequence table. Cache the table definition for re-use (during CREATE and DROP)- Overrides:
buildTableDefinitionin classSequenceDefinition
-
getTableSequence
Deprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement. -
isTableSequenceDefinition
public boolean isTableSequenceDefinition()INTERNAL:- Overrides:
isTableSequenceDefinitionin classSequenceDefinition
-
preDropObject
@Deprecated(forRemoval=true, since="4.0.9") public void preDropObject(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer dropSchemaWriter, boolean createSQLFiles) Deprecated, for removal: This API element is subject to removal in a future version.Execute any statements required before the deletion of the object- Overrides:
preDropObjectin classDatabaseObjectDefinition
-
setSequenceCounterFieldName
-
setSequenceNameFieldName
-
setSequenceTableIndexes
-
setSequenceTableName
-
setSequenceTableQualifier
-
shouldDropTableDefinition
protected boolean shouldDropTableDefinition()INTERNAL: Returns true if the table definition should be dropped during buildDeletionWriter.
-