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.
name, qualifier
Constructor and Description |
---|
SequenceDefinition(String name) |
Modifier and Type | Method and Description |
---|---|
void |
alter(AbstractSession session,
Writer writer)
INTERNAL:
Execute the SQL required to alter sequence.
|
void |
alterOnDatabase(AbstractSession session)
INTERNAL:
By default does nothing.
|
TableDefinition |
buildTableDefinition()
INTERNAL:
Return a TableDefinition
|
abstract boolean |
checkIfExist(AbstractSession session)
INTERAL:
Verify whether the sequence exists.
|
void |
createOnDatabase(AbstractSession session)
INTERNAL:
|
boolean |
isAlterSupported()
INTERNAL:
Indicates whether alter is supported
|
buildCreationWriter, buildDeletionWriter, clone, createObject, dropFromDatabase, dropObject, getFullName, getName, getQualifier, setName, setQualifier, toString
public SequenceDefinition(String name)
public abstract boolean checkIfExist(AbstractSession session) throws DatabaseException
DatabaseException
public boolean isAlterSupported()
public void alterOnDatabase(AbstractSession session) throws TopLinkException
TopLinkException
public void alter(AbstractSession session, Writer writer) throws ValidationException
ValidationException
public void createOnDatabase(AbstractSession session) throws TopLinkException
createOnDatabase
in class DatabaseObjectDefinition
TopLinkException
public TableDefinition buildTableDefinition()
Copyright © 2023. All rights reserved.