public abstract class SequenceValueExpression extends Object implements ColumnExpression
ColumnExpressions which reference an ID by using the value of a sequence.| Modifier and Type | Field and Description |
|---|---|
private long |
difference
The difference of the referenced ID to the sequence value.
|
private SequenceIdGenerator |
sequence
The written sequence.
|
| Constructor and Description |
|---|
SequenceValueExpression(SequenceIdGenerator sequence,
long difference) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDifference()
The difference of the referenced ID to the sequence value.
|
SequenceIdGenerator |
getSequence()
The written sequence.
|
protected String |
toSql(String sql)
Builds the SQL expression by using the given SQL and the current
difference. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendSql, toSqlprivate final SequenceIdGenerator sequence
private final long difference
@ConstructorProperties(value={"sequence","difference"}) @Generated(value="lombok") public SequenceValueExpression(SequenceIdGenerator sequence, long difference)
protected String toSql(String sql)
difference.sql - the SQL expression that references the sequence@Generated(value="lombok") public SequenceIdGenerator getSequence()
@Generated(value="lombok") public long getDifference()
Copyright © 2022 fastnate.org. All rights reserved.