Class NextSequenceValueExpression
java.lang.Object
org.fastnate.generator.statements.SequenceValueExpression
org.fastnate.generator.statements.NextSequenceValueExpression
- All Implemented Interfaces:
ColumnExpression
A
ColumnExpression which builds the next value of
a sequence.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionNextSequenceValueExpression(SequenceIdGenerator sequence, long difference) Creates a new instance of an expression that references an ID by using the next value of a sequence. -
Method Summary
Methods inherited from class org.fastnate.generator.statements.SequenceValueExpression
getDifference, getSequence, toSqlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fastnate.generator.statements.ColumnExpression
appendSql
-
Constructor Details
-
NextSequenceValueExpression
Creates a new instance of an expression that references an ID by using the next value of a sequence.- Parameters:
sequence- describes the sequencedifference- the difference of the referenced ID to the sequence value
-
-
Method Details
-
toSql
Description copied from interface:ColumnExpressionGenerates the SQL for this expression.- Returns:
- the SQL string
-