Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected TableDefinition |
| Access | Constructor and Description |
|---|---|
| public | TableSequenceDefinition(Sequence sequence, boolean deleteSchema)
INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence). |
| Modifier and Type | Method and Description |
|---|---|
| public Writer | buildCreationWriter(AbstractSession session, Writer writer)
Implements abstract org. |
| public Writer | buildDeletionWriter(AbstractSession session, Writer writer)
Implements abstract org. |
| public TableDefinition | buildTableDefinition()
Overrides org. |
| public boolean | checkIfExist(AbstractSession session)
Implements abstract org. |
| public void | dropDatabaseSchema(AbstractSession session, Writer writer)
Overrides org. |
| public void | dropDatabaseSchemaOnDatabase(AbstractSession session)
Overrides org. |
| public String | getDatabaseSchema()
Overrides org. |
| public String | |
| public String | |
| public DatabaseTable | |
| public List | |
| public String | |
| public String | |
| public String | |
| protected TableSequence | |
| public boolean | |
| public void | preDropObject(AbstractSession session, Writer dropSchemaWriter, boolean createSQLFiles)
Overrides org. |
| protected boolean | shouldDropTableDefinition()
INTERNAL: Returns true if the table definition should be dropped during buildDeletionWriter. |
| deleteSchema | back to summary |
|---|---|
| protected boolean deleteSchema | |
| tableDefinition | back to summary |
|---|---|
| protected TableDefinition tableDefinition | |
| TableSequenceDefinition | back to summary |
|---|---|
| public TableSequenceDefinition(Sequence sequence, boolean deleteSchema) INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence). | |
| buildCreationWriter | back to summary |
|---|---|
| public Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException Implements abstract org. INTERNAL: Return the SQL required to insert the sequence row into the sequence table. Assume that the sequence table exists.
| |
| buildDeletionWriter | back to summary |
|---|---|
| public Writer buildDeletionWriter(AbstractSession session, Writer writer) throws ValidationException Implements abstract org. INTERNAL: Return the SQL to delete the row from the sequence table. If we're dealing with create creation, then delegate to the table so that is dropped outright since we will delete the schema.
| |
| buildTableDefinition | back to summary |
|---|---|
| public TableDefinition buildTableDefinition() Overrides org. INTERNAL: Return a TableDefinition specifying sequence table. Cache the table definition for re-use (during CREATE and DROP)
| |
| checkIfExist | back to summary |
|---|---|
| public boolean checkIfExist(AbstractSession session) throws DatabaseException Implements abstract org. INTERAL: Execute the SQL required to insert the sequence row into the sequence table. Assume that the sequence table exists.
| |
| dropDatabaseSchema | back to summary |
|---|---|
| public void dropDatabaseSchema(AbstractSession session, Writer writer) throws EclipseLinkException Overrides org. INTERNAL: Execute the DDL to drop the database schema for this object. Does nothing at this level, subclasses that support this must override this method.
| |
| dropDatabaseSchemaOnDatabase | back to summary |
|---|---|
| public void dropDatabaseSchemaOnDatabase(AbstractSession session) throws EclipseLinkException Overrides org. INTERNAL: Execute the DDL to drop the database schema for this object. Does nothing at this level, subclasses that support this must override this method.
| |
| getDatabaseSchema | back to summary |
|---|---|
| public String getDatabaseSchema() Overrides org. PUBLIC: Return the schema associated with this table sequence.
| |
| getSequenceCounterFieldName | back to summary |
|---|---|
| public String getSequenceCounterFieldName() PUBLIC: | |
| getSequenceNameFieldName | back to summary |
|---|---|
| public String getSequenceNameFieldName() PUBLIC: | |
| getSequenceTable | back to summary |
|---|---|
| public DatabaseTable getSequenceTable() Return the database table for the sequence. | |
| getSequenceTableIndexes | back to summary |
|---|---|
| public List PUBLIC: | |
| getSequenceTableName | back to summary |
|---|---|
| public String getSequenceTableName() PUBLIC: | |
| getSequenceTableQualifiedName | back to summary |
|---|---|
| public String getSequenceTableQualifiedName() PUBLIC: | |
| getSequenceTableQualifier | back to summary |
|---|---|
| public String getSequenceTableQualifier() PUBLIC: | |
| getTableSequence | back to summary |
|---|---|
| protected TableSequence getTableSequence() | |
| isTableSequenceDefinition | back to summary |
|---|---|
| public boolean isTableSequenceDefinition() Overrides org. INTERNAL:
| |
| preDropObject | back to summary |
|---|---|
| public void preDropObject(AbstractSession session, Writer dropSchemaWriter, boolean createSQLFiles) Overrides org. Execute any statements required before the deletion of the object
| |
| shouldDropTableDefinition | back to summary |
|---|---|
| protected boolean shouldDropTableDefinition() INTERNAL: Returns true if the table definition should be dropped during buildDeletionWriter. | |