Class OrderedSequenceStructure

  • All Implemented Interfaces:
    org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.id.enhanced.DatabaseStructure

    public class OrderedSequenceStructure
    extends org.hibernate.id.enhanced.SequenceStructure
    Describes a sequence that supports ordered sequences.
    • Field Summary

      • Fields inherited from class org.hibernate.id.enhanced.SequenceStructure

        sequenceName
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedSequenceStructure​(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment, org.hibernate.boot.model.relational.QualifiedName qualifiedSequenceName, int initialValue, int incrementSize, java.lang.Class numberType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void buildSequence​(org.hibernate.boot.model.relational.Database database)  
      java.lang.String[] sqlCreateStrings​(org.hibernate.dialect.Dialect dialect)  
      java.lang.String[] sqlDropStrings​(org.hibernate.dialect.Dialect dialect)  
      • Methods inherited from class org.hibernate.id.enhanced.SequenceStructure

        buildCallback, getIncrementSize, getInitialValue, getName, getQualifiedName, getSourceIncrementSize, getTimesAccessed, isPhysicalSequence, prepare, registerExportables
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrderedSequenceStructure

        public OrderedSequenceStructure​(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment,
                                        org.hibernate.boot.model.relational.QualifiedName qualifiedSequenceName,
                                        int initialValue,
                                        int incrementSize,
                                        java.lang.Class numberType)
    • Method Detail

      • sqlCreateStrings

        public java.lang.String[] sqlCreateStrings​(org.hibernate.dialect.Dialect dialect)
                                            throws org.hibernate.HibernateException
        Specified by:
        sqlCreateStrings in interface org.hibernate.id.enhanced.DatabaseStructure
        Overrides:
        sqlCreateStrings in class org.hibernate.id.enhanced.SequenceStructure
        Throws:
        org.hibernate.HibernateException
      • sqlDropStrings

        public java.lang.String[] sqlDropStrings​(org.hibernate.dialect.Dialect dialect)
                                          throws org.hibernate.HibernateException
        Specified by:
        sqlDropStrings in interface org.hibernate.id.enhanced.DatabaseStructure
        Overrides:
        sqlDropStrings in class org.hibernate.id.enhanced.SequenceStructure
        Throws:
        org.hibernate.HibernateException
      • buildSequence

        protected void buildSequence​(org.hibernate.boot.model.relational.Database database)
        Overrides:
        buildSequence in class org.hibernate.id.enhanced.SequenceStructure