|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition org.eclipse.persistence.tools.schemaframework.SequenceDefinition
public abstract class SequenceDefinition
Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.
Field Summary | |
---|---|
protected Sequence |
sequence
|
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
name, qualifier |
Constructor Summary | |
---|---|
SequenceDefinition(Sequence sequence)
|
|
SequenceDefinition(java.lang.String name)
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
buildCreationWriter, buildDeletionWriter, clone, createObject, dropFromDatabase, dropObject, getFullName, getName, getQualifier, postCreateObject, setName, setQualifier, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Sequence sequence
Constructor Detail |
---|
public SequenceDefinition(java.lang.String name)
public SequenceDefinition(Sequence sequence)
Method Detail |
---|
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 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()
|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |