public class CurrentSequenceValueExpression extends SequenceValueExpression
ColumnExpression which references an ID using the
current value of a sequence.| Constructor and Description |
|---|
CurrentSequenceValueExpression(GeneratorDialect dialect,
String sequenceName,
int incrementSize,
long difference)
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.
|
getDialect, getDifference, getIncrementSize, getSequenceName, toSqlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendSqlpublic CurrentSequenceValueExpression(GeneratorDialect dialect, String sequenceName, int incrementSize, long difference)
dialect - the dialect of the current databasesequenceName - the name of the sequenceincrementSize - the expected incrementSize, as given in the schema - used by some dialects to ensure that exactly that
inrement is used.difference - the difference of the referenced ID to the sequence valuepublic String toSql()
ColumnExpressionCopyright © 2020 fastnate.org. All rights reserved.