public abstract class SequenceValueExpression extends Object implements ColumnExpression
ColumnExpressions which reference an ID by using the value of a sequence.| Constructor and Description |
|---|
SequenceValueExpression(GeneratorDialect dialect,
String sequenceName,
int incrementSize,
long difference) |
| Modifier and Type | Method and Description |
|---|---|
GeneratorDialect |
getDialect()
The dialect of the current database.
|
long |
getDifference()
The difference of the referenced ID to the sequence value.
|
int |
getIncrementSize()
The expected incrementSize, as given in the schema - used by some dialects to ensure that exactly that inrement
is used.
|
String |
getSequenceName()
The name of the 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, toSql@ConstructorProperties(value={"dialect","sequenceName","incrementSize","difference"}) @Generated(value="lombok") public SequenceValueExpression(GeneratorDialect dialect, String sequenceName, int incrementSize, long difference)
protected String toSql(String sql)
difference.sql - the SQL expression that references the sequence@Generated(value="lombok") public GeneratorDialect getDialect()
@Generated(value="lombok") public String getSequenceName()
@Generated(value="lombok") public int getIncrementSize()
@Generated(value="lombok") public long getDifference()
Copyright © 2020 fastnate.org. All rights reserved.