|
EclipseLink 2.4.2, build 'v20130514-5956486' 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 org.eclipse.persistence.tools.schemaframework.UnaryTableSequenceDefinition
public class UnaryTableSequenceDefinition
Purpose: Creates / drops an unary sequence table: the name of the table is sequence name; its only field is named unarySequenceCounterFieldName
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 | |
---|---|
UnaryTableSequenceDefinition(Sequence sequence)
INTERNAL: Should be a sequence defining unary table sequence in the db: either UnaryTableSequence DefaultSequence (only if case platform.getDefaultSequence() is an UnaryTableSequence). |
Method Summary | |
---|---|
java.io.Writer |
buildCreationWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL required to create the unary sequence table. |
java.io.Writer |
buildDeletionWriter(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.io.Writer writer)
INTERNAL: Return the SQL to delete the unary sequence table. |
TableDefinition |
buildTableDefinition()
INTERNAL: Return a TableDefinition specifying a unary sequence table. |
boolean |
checkIfExist(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERAL: Verify whether the sequence exists. |
java.lang.String |
getSequenceCounterFieldName()
PUBLIC: Return the name of the only field of this table |
protected UnaryTableSequence |
getUnaryTableSequence()
|
Methods inherited from class org.eclipse.persistence.tools.schemaframework.SequenceDefinition |
---|
alter, alterOnDatabase, createOnDatabase, isAlterSupported |
Methods inherited from class org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition |
---|
buildVPDCreationFunctionWriter, buildVPDCreationPolicyWriter, buildVPDDeletionWriter, clone, createObject, dropFromDatabase, dropObject, getFullName, 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 UnaryTableSequenceDefinition(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 getSequenceCounterFieldName()
public TableDefinition buildTableDefinition()
buildTableDefinition
in class SequenceDefinition
protected UnaryTableSequence getUnaryTableSequence()
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |