public abstract class AbstractSequenceDialect extends AbstractDialect
functionProcessor, paddingLength| Constructor and Description |
|---|
AbstractSequenceDialect() |
| Modifier and Type | Method and Description |
|---|---|
int |
getNextKey()
Executes the SQL as specified by
getSequenceQuery(). |
protected abstract String |
getSequenceQuery()
Return the database-specific query to use for retrieving a sequence value.
|
getDataSource, getFunctionProcessor, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setFunctionProcessor, setIncrementerName, setPaddingLength, supportsLimitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildSqlFuction, buildSqlFunction, getCurrentDate, getLimitStringpublic int getNextKey()
throws org.springframework.dao.DataAccessException
getSequenceQuery().org.springframework.dao.DataAccessExceptionprotected abstract String getSequenceQuery()
The provided SQL is supposed to result in a single row with a single
column that allows for extracting a long value.
Copyright © 2006–2018 TinyGroup. All rights reserved.