|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition
org.eclipse.persistence.tools.schemaframework.SequenceDefinition
org.eclipse.persistence.tools.schemaframework.SequenceObjectDefinition
public class SequenceObjectDefinition
Purpose: Sequence definition Native Sequence object.
Field Summary |
---|
Fields inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition |
---|
sequence |
Fields inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
name, qualifier |
Constructor Summary | |
---|---|
SequenceObjectDefinition(Sequence sequence)
INTERNAL: Should be a sequence defining sequence object in the db: either NativeSequence with shouldAcquireValueAfterInsert() returning false; or DefaultSequence (only if case platform.getDefaultSequence() is a NativeSequence with shouldAcquireValueAfterInsert() returning false). |
Method Summary | |
---|---|
void |
alterIncrement(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer schemaWriter)
INTERNAL: Execute the SQL required to alter sequence increment. |
void |
alterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Execute the SQL required to alter sequence increment. |
java.io.Writer |
buildAlterIncrementWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL required to alter INCREMENT BY |
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL required to create the Oracle sequence object. |
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL required to drop the Oracle sequence object. |
boolean |
checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Check if the sequence object already exists, in which case dont create it. |
java.lang.String |
getFullName()
INTERNAL: Most major databases support a creator name scope. |
boolean |
isAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Indicates whether alterIncrement is supported |
Methods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition |
---|
alter, buildTableDefinition, createOnDatabase |
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createObject, dropFromDatabase, dropObject, getName, getQualifier, postCreateObject, preDropObject, setName, setQualifier, shouldCreateVPDCalls, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequenceObjectDefinition(Sequence sequence)
Method Detail |
---|
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)
buildCreationWriter
in class DatabaseObjectDefinition
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)
buildDeletionWriter
in class DatabaseObjectDefinition
public java.io.Writer buildAlterIncrementWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer)
public boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
checkIfExist
in class SequenceDefinition
DatabaseException
public boolean isAlterSupported(org.eclipse.persistence.internal.sessions.AbstractSession session)
isAlterSupported
in class SequenceDefinition
public void alterOnDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session) throws EclipseLinkException
alterOnDatabase
in class SequenceDefinition
EclipseLinkException
public void alterIncrement(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer schemaWriter) throws ValidationException
ValidationException
public java.lang.String getFullName()
getFullName
in class DatabaseObjectDefinition
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |