Tabnine Logo
Sequence.getIncrementSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getIncrementSize
method
in
org.hibernate.boot.model.relational.Sequence

Best Java code snippets using org.hibernate.boot.model.relational.Sequence.getIncrementSize (Showing top 3 results out of 315)

origin: hibernate/hibernate-orm

  protected void validateSequence(Sequence sequence, SequenceInformation sequenceInformation) {
    if ( sequenceInformation == null ) {
      throw new SchemaManagementException(
          String.format( "Schema-validation: missing sequence [%s]", sequence.getName() )
      );
    }

    if ( sequenceInformation.getIncrementSize() > 0
        && sequence.getIncrementSize() != sequenceInformation.getIncrementSize() ) {
      throw new SchemaManagementException(
          String.format(
              "Schema-validation: sequence [%s] defined inconsistent increment-size; found [%s] but expecting [%s]",
              sequence.getName(),
              sequenceInformation.getIncrementSize(),
              sequence.getIncrementSize()
          )
      );
    }
  }
}
origin: hibernate/hibernate-orm

@Override
public String[] getSqlCreateStrings(Sequence sequence, Metadata metadata) {
  final JdbcEnvironment jdbcEnvironment = metadata.getDatabase().getJdbcEnvironment();
  return dialect.getCreateSequenceStrings(
      jdbcEnvironment.getQualifiedObjectNameFormatter().format(
          sequence.getName(),
          jdbcEnvironment.getDialect()
      ),
      sequence.getInitialValue(),
      sequence.getIncrementSize()
  );
}
origin: org.hibernate.orm/hibernate-core

@Override
public org.hibernate.metamodel.model.relational.spi.Sequence generateRuntimeSequence(
    PhysicalNamingStrategy namingStrategy,
    JdbcEnvironment jdbcEnvironment) {
  return new org.hibernate.metamodel.model.relational.spi.Sequence(
      getLogicalName().getCatalogName(),
      getLogicalName().getSchemaName(),
      getLogicalName().getSequenceName(),
      getInitialValue(),
      getIncrementSize(),
      namingStrategy,
      jdbcEnvironment
  );
}
org.hibernate.boot.model.relationalSequencegetIncrementSize

Popular methods of Sequence

  • getInitialValue
  • getName
  • getExportIdentifier
  • <init>
  • validate
  • getLogicalName

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now