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
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
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description UnaryTableSequenceDefinition(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WriterbuildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer)Deprecated, for removal: This API element is subject to removal in a future version.WriterbuildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer)Deprecated, for removal: This API element is subject to removal in a future version.TableDefinitionbuildTableDefinition()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 UnaryTableSequencegetUnaryTableSequence()Deprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.booleanisTableSequenceDefinition()INTERNAL:-
Methods inherited from class org.eclipse.persistence.tools.schemaframework.TableSequenceDefinition
dropDatabaseSchema, dropDatabaseSchemaOnDatabase, getDatabaseSchema, getSequenceCounterFieldName, getSequenceNameFieldName, getSequenceTable, getSequenceTableIndexes, getSequenceTableName, getSequenceTableQualifiedName, getSequenceTableQualifier, getTableSequence, preDropObject, setSequenceCounterFieldName, setSequenceNameFieldName, setSequenceTableIndexes, setSequenceTableName, setSequenceTableQualifier, shouldDropTableDefinition
-
Methods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition
alter, alterOnDatabase, createOnDatabase, getInitialValue, getPreallocationSize, isAlterSupported, setInitialValue, setPreallocationSize
-
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 Detail
-
UnaryTableSequenceDefinition
@Deprecated(forRemoval=true, since="4.0.9") public UnaryTableSequenceDefinition(Sequence sequence)
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
public UnaryTableSequenceDefinition(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).
-
-
Method Detail
-
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
public TableDefinition buildTableDefinition()
INTERNAL: Return a TableDefinition specifying a unary sequence table.- Overrides:
buildTableDefinitionin classTableSequenceDefinition
-
getUnaryTableSequence
@Deprecated(forRemoval=true, since="4.0.9") protected UnaryTableSequence getUnaryTableSequence()
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 classTableSequenceDefinition
-
-