public abstract class SequenceDefinition extends DatabaseObjectDefinition
Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.
Modifier and Type | Field and Description |
---|---|
protected Sequence |
sequence |
name, qualifier
Constructor and Description |
---|
SequenceDefinition(Sequence sequence) |
SequenceDefinition(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
alter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL:
Execute the SQL required to alter sequence.
|
void |
alterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
By default does nothing.
|
TableDefinition |
buildTableDefinition()
INTERNAL:
Return a TableDefinition
|
abstract boolean |
checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERAL:
Verify whether the sequence exists.
|
void |
createOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Creates this sequence definition on the database.
|
boolean |
isAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Indicates whether alter is supported
|
boolean |
isTableSequenceDefinition()
INTERNAL:
|
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
protected Sequence sequence
public SequenceDefinition(java.lang.String name)
public SequenceDefinition(Sequence sequence)
public abstract boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
public boolean isAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session)
public boolean isTableSequenceDefinition()
public void alterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException
EclipseLinkException
public void alter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
ValidationException
public void createOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException
createOnDatabase
in class DatabaseObjectDefinition
EclipseLinkException
public TableDefinition buildTableDefinition()