public class NextSequenceValueExpression extends SequenceValueExpression
ColumnExpression
which builds the next value of
a sequence
.Constructor and Description |
---|
NextSequenceValueExpression(SequenceIdGenerator sequence,
long difference)
Creates a new instance of an expression that references an ID by using the next value of a sequence.
|
Modifier and Type | Method and Description |
---|---|
String |
toSql()
Generates the SQL for this expression.
|
getDifference, getSequence, toSql
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendSql
public NextSequenceValueExpression(SequenceIdGenerator sequence, long difference)
sequence
- describes the sequencedifference
- the difference of the referenced ID to the sequence valuepublic String toSql()
ColumnExpression
Copyright © 2022 fastnate.org. All rights reserved.