Class CreateSequenceBuilder

All Implemented Interfaces:
ISqlBuilder, ISqlKeywords
Direct Known Subclasses:
AlterSequenceBuilder

public class CreateSequenceBuilder extends AbstractCreateSqlBuilder
The Create Sequence Builder.
  • Constructor Details

    • CreateSequenceBuilder

      public CreateSequenceBuilder(ISqlDialect dialect, String sequence)
      Instantiates a new creates the sequence builder.
      Parameters:
      dialect - the dialect
      sequence - the sequence
  • Method Details

    • getSequence

      public String getSequence()
      Gets the sequence.
      Returns:
      the sequence
    • getStart

      public Integer getStart()
      Gets the start.
      Returns:
      the start
    • getIncrement

      public Integer getIncrement()
      Gets the increment.
      Returns:
      the increment
    • start

      public CreateSequenceBuilder start(Integer start)
      Start.
      Parameters:
      start - the start
      Returns:
      the creates the sequence builder
    • increment

      public CreateSequenceBuilder increment(int increment)
      Increment.
      Parameters:
      increment - the increment
      Returns:
      the creates the sequence builder
    • maxvalue

      public CreateSequenceBuilder maxvalue(Integer maxvalue)
      Maxvalue.
      Parameters:
      maxvalue - the maxvalue
      Returns:
      the creates the sequence builder
    • nomaxvalue

      public CreateSequenceBuilder nomaxvalue(Boolean nomaxvalue)
      Nomaxvalue.
      Parameters:
      nomaxvalue - the nomaxvalue
      Returns:
      the creates the sequence builder
    • minvalue

      public CreateSequenceBuilder minvalue(Integer minvalue)
      Minvalue.
      Parameters:
      minvalue - the minvalue
      Returns:
      the creates the sequence builder
    • nominvalue

      public CreateSequenceBuilder nominvalue(Boolean nominvalue)
      Nominvalue.
      Parameters:
      nominvalue - the nominvalue
      Returns:
      the creates the sequence builder
    • cycles

      public CreateSequenceBuilder cycles(Boolean cycles)
      Cycles.
      Parameters:
      cycles - the cycles
      Returns:
      the creates the sequence builder
    • resetBy

      public CreateSequenceBuilder resetBy(String resetBy)
      Reset by.
      Parameters:
      resetBy - the reset by
      Returns:
      the creates the sequence builder
    • publicc

      public CreateSequenceBuilder publicc(Boolean publicc)
      Publicc.
      Parameters:
      publicc - the publicc
      Returns:
      the creates the sequence builder
    • generate

      public String generate()
      Generate.
      Returns:
      the string
    • generateSequence

      protected void generateSequence(StringBuilder sql)
      Generate sequence.
      Parameters:
      sql - the sql
    • generateStart

      protected void generateStart(StringBuilder sql)
      Generate start.
      Parameters:
      sql - the sql
    • generateIncrement

      protected void generateIncrement(StringBuilder sql)
      Generate increment.
      Parameters:
      sql - the sql
    • generateMaxvalue

      protected void generateMaxvalue(StringBuilder sql)
      Generate maxvalue.
      Parameters:
      sql - the sql
    • generateNomaxvalue

      protected void generateNomaxvalue(StringBuilder sql)
      Generate nomaxvalue.
      Parameters:
      sql - the sql
    • generateMinvalue

      protected void generateMinvalue(StringBuilder sql)
      Generate minvalue.
      Parameters:
      sql - the sql
    • generateNominvalue

      protected void generateNominvalue(StringBuilder sql)
      Generate nominvalue.
      Parameters:
      sql - the sql
    • generateCycle

      protected void generateCycle(StringBuilder sql)
      Generate cycle.
      Parameters:
      sql - the sql
    • generateResetBy

      protected void generateResetBy(StringBuilder sql)
      Generate reset by.
      Parameters:
      sql - the sql
    • generateSequenceParameter

      protected void generateSequenceParameter(StringBuilder sql, String parameterName, String parameterValue)
      Generate sequence parameter.
      Parameters:
      sql - the sql
      parameterName - the parameter name
      parameterValue - the parameter value