|
EclipseLink 1.2.0, build 'v20091016-r5565' 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.TableSequenceDefinition
public class TableSequenceDefinition
Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.
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 | |
---|---|
TableSequenceDefinition(Sequence sequence)
INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence). |
Method Summary | |
---|---|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL required to insert the sequence row into the sequence table. |
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL to delete the row from the sequence table. |
TableDefinition |
buildTableDefinition()
INTERNAL: Return a TableDefinition specifying sequence table. |
boolean |
checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERAL: Execute the SQL required to insert the sequence row into the sequence table. |
java.lang.String |
getSequenceCounterFieldName()
PUBLIC: |
java.lang.String |
getSequenceNameFieldName()
PUBLIC: |
java.lang.String |
getSequenceTableName()
PUBLIC: |
protected TableSequence |
getTableSequence()
|
Methods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition |
---|
alter, alterOnDatabase, createOnDatabase, isAlterSupported |
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
clone, createObject, dropFromDatabase, dropObject, getFullName, getName, getQualifier, setName, setQualifier, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableSequenceDefinition(Sequence sequence)
Method Detail |
---|
public java.io.Writer buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildCreationWriter
in class DatabaseObjectDefinition
ValidationException
public java.io.Writer buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session, java.io.Writer writer) throws ValidationException
buildDeletionWriter
in class DatabaseObjectDefinition
ValidationException
public boolean checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
checkIfExist
in class SequenceDefinition
DatabaseException
public java.lang.String getSequenceTableName()
public java.lang.String getSequenceCounterFieldName()
public java.lang.String getSequenceNameFieldName()
public TableDefinition buildTableDefinition()
buildTableDefinition
in class SequenceDefinition
protected TableSequence getTableSequence()
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |