Class SequenceDefinition
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
FieldsFields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
name, qualifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidINTERNAL: Execute the SQL required to alter sequence.voidalterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERNAL: By default does nothing.INTERNAL: Return a TableDefinitionabstract booleancheckIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERAL: Verify whether the sequence exists.voidcreateOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERNAL: Creates this sequence definition on the database.booleanisAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERNAL: Indicates whether alter is supportedbooleanINTERNAL:Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
buildCreationWriter, buildDeletionWriter, buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createDatabaseSchema, createDatabaseSchemaOnDatabase, createObject, dropDatabaseSchema, dropDatabaseSchemaOnDatabase, dropFromDatabase, dropObject, getDatabaseSchema, getFieldTypeDefinition, getFieldTypeDefinition, getFullName, getName, getQualifier, hasDatabaseSchema, postCreateObject, preDropObject, setName, setQualifier, shouldCreateDatabaseSchema, shouldCreateVPDCalls, toString
-
Field Details
-
sequence
-
-
Constructor Details
-
SequenceDefinition
-
SequenceDefinition
-
-
Method Details
-
checkIfExist
public abstract boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException INTERAL: Verify whether the sequence exists.- Throws:
DatabaseException
-
isAlterSupported
public boolean isAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERNAL: Indicates whether alter is supported -
isTableSequenceDefinition
public boolean isTableSequenceDefinition()INTERNAL: -
alterOnDatabase
public void alterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException INTERNAL: By default does nothing.- Throws:
EclipseLinkException
-
alter
public void alter(org.eclipse.persistence.internal.sessions.AbstractSession session, Writer writer) throws ValidationException INTERNAL: Execute the SQL required to alter sequence. By default does nothing.- Throws:
ValidationException
-
createOnDatabase
public void createOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException 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
-