java.lang.Object
org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.SequenceDefinition
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
SequenceObjectDefinition,TableSequenceDefinition
Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSequenceDefinition(String name) protectedSequenceDefinition(Sequence sequence) Deprecated, for removal: This API element is subject to removal in a future version.Use SequenceDefinition(String) instead. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.voidalterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Return a TableDefinitionabstract 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.voidcreateOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.intintbooleanisAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.booleanINTERNAL:voidsetInitialValue(int initialValue) voidsetPreallocationSize(int preallocationSize) Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
buildCreationWriter, buildDeletionWriter, buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
-
Field Details
-
sequence
Deprecated, for removal: This API element is subject to removal in a future version.To be removed with no replacement.
-
-
Constructor Details
-
SequenceDefinition
-
SequenceDefinition
Deprecated, for removal: This API element is subject to removal in a future version.Use SequenceDefinition(String) instead.
-
-
Method Details
-
checkIfExist
@Deprecated(forRemoval=true, since="4.0.9") public abstract 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.- Throws:
DatabaseException
-
getInitialValue
public int getInitialValue() -
getPreallocationSize
public int getPreallocationSize() -
isAlterSupported
@Deprecated(forRemoval=true, since="4.0.9") public boolean isAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session) Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Indicates whether alter is supported -
isTableSequenceDefinition
public boolean isTableSequenceDefinition()INTERNAL: -
alterOnDatabase
@Deprecated(forRemoval=true, since="4.0.9") public void alterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: By default, does nothing.- Throws:
EclipseLinkException
-
alter
@Deprecated(forRemoval=true, since="4.0.9") public void alter(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: Execute the SQL required to alter sequence. By default, does nothing.- Throws:
ValidationException
-
createOnDatabase
@Deprecated(forRemoval=true, since="4.0.9") public void createOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException Deprecated, for removal: This API element is subject to removal in a future version.INTERNAL: Creates this sequence definition on the database. If it already exists, the method will attempt to alter it based on what the platform supports.- Overrides:
createOnDatabasein classDatabaseObjectDefinition- Throws:
EclipseLinkException
-
buildTableDefinition
INTERNAL: Return a TableDefinition -
setInitialValue
public void setInitialValue(int initialValue) -
setPreallocationSize
public void setPreallocationSize(int preallocationSize)
-