public class CurrentSequenceValueExpression extends SequenceValueExpression
ColumnExpression
which references an ID using the
current value of a sequence
.Modifier and Type | Field and Description |
---|---|
private boolean |
firstCall |
Constructor and Description |
---|
CurrentSequenceValueExpression(SequenceIdGenerator sequence,
long difference,
boolean firstCall)
Creates a new instance of an expression that references an ID by using the current 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 CurrentSequenceValueExpression(SequenceIdGenerator sequence, long difference, boolean firstCall)
sequence
- describes the sequencedifference
- the difference of the referenced ID to the sequence valuefirstCall
- indicates, that this is the first call to the sequence in this sessionpublic String toSql()
ColumnExpression
Copyright © 2022 fastnate.org. All rights reserved.