Class NextSequenceValueExpression

java.lang.Object
org.fastnate.generator.statements.SequenceValueExpression
org.fastnate.generator.statements.NextSequenceValueExpression
All Implemented Interfaces:
ColumnExpression

public class NextSequenceValueExpression extends SequenceValueExpression
Author:
Tobias Liefke
  • Constructor Details

    • NextSequenceValueExpression

      public NextSequenceValueExpression(SequenceIdGenerator sequence, long difference)
      Creates a new instance of an expression that references an ID by using the next value of a sequence.
      Parameters:
      sequence - describes the sequence
      difference - the difference of the referenced ID to the sequence value
  • Method Details

    • toSql

      public String toSql()
      Description copied from interface: ColumnExpression
      Generates the SQL for this expression.
      Returns:
      the SQL string