Module eclipselink

Class TableSequenceDefinition

    • Field Detail

      • deleteSchema

        protected boolean deleteSchema
    • Constructor Detail

      • TableSequenceDefinition

        @Deprecated(forRemoval=true,
                    since="4.0.9")
        public TableSequenceDefinition​(Sequence sequence,
                                       boolean deleteSchema)
        Deprecated, for removal: This API element is subject to removal in a future version.
        INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence).
      • TableSequenceDefinition

        public TableSequenceDefinition​(String name,
                                       boolean deleteSchema)
        INTERNAL: Should be a sequence defining table sequence in the db: either TableSequence DefaultSequence (only if case platform.getDefaultSequence() is a TableSequence).
    • Method Detail

      • checkIfExist

        @Deprecated(forRemoval=true,
                    since="4.0.9")
        public boolean checkIfExist​(org.eclipse.persistence.internal.sessions.AbstractSession session)
                             throws DatabaseException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Implement DatabasePlatform.checkSequenceExists(...) instead.
        INTERNAL: Execute the SQL required to insert the sequence row into the sequence table. Assume that the sequence table exists.
        Specified by:
        checkIfExist in class SequenceDefinition
        Throws:
        DatabaseException
      • getSequenceCounterFieldName

        public String getSequenceCounterFieldName()
        PUBLIC:
      • getSequenceNameFieldName

        public String getSequenceNameFieldName()
        PUBLIC:
      • getSequenceTable

        @Deprecated(forRemoval=true,
                    since="4.0.9")
        public org.eclipse.persistence.internal.helper.DatabaseTable getSequenceTable()
        Deprecated, for removal: This API element is subject to removal in a future version.
        To be removed with no replacement.
        Return the database table for the sequence.
      • getSequenceTableName

        public String getSequenceTableName()
        PUBLIC:
      • getSequenceTableQualifier

        public String getSequenceTableQualifier()
        PUBLIC:
      • getSequenceTableQualifiedName

        public String getSequenceTableQualifiedName()
        PUBLIC:
      • getTableSequence

        @Deprecated(forRemoval=true,
                    since="4.0.9")
        protected TableSequence getTableSequence()
        Deprecated, for removal: This API element is subject to removal in a future version.
        To be removed with no replacement.
      • preDropObject

        @Deprecated(forRemoval=true,
                    since="4.0.9")
        public void preDropObject​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                  Writer dropSchemaWriter,
                                  boolean createSQLFiles)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Execute any statements required before the deletion of the object
        Overrides:
        preDropObject in class DatabaseObjectDefinition
      • setSequenceCounterFieldName

        public void setSequenceCounterFieldName​(String sequenceCounterFieldName)
      • setSequenceNameFieldName

        public void setSequenceNameFieldName​(String sequenceNameFieldName)
      • setSequenceTableIndexes

        public void setSequenceTableIndexes​(List<IndexDefinition> sequenceTableIndexes)
      • setSequenceTableName

        public void setSequenceTableName​(String sequenceTableName)
      • setSequenceTableQualifier

        public void setSequenceTableQualifier​(String sequenceTableQualifier)
      • shouldDropTableDefinition

        protected boolean shouldDropTableDefinition()
        INTERNAL: Returns true if the table definition should be dropped during buildDeletionWriter.