类 Db2LuwMaxValueIncrementer
- java.lang.Object
- org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
- org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
- org.springframework.jdbc.support.incrementer.Db2LuwMaxValueIncrementer
- 所有已实现的接口:
InitializingBean
,DataFieldMaxValueIncrementer
public class Db2LuwMaxValueIncrementer extends AbstractSequenceMaxValueIncrementer
DataFieldMaxValueIncrementer
that retrieves the next value of a given sequence on DB2 LUW (for Linux, Unix and Windows).Thanks to Mark MacMahon for the suggestion!
- 从以下版本开始:
- 4.3.15
- 作者:
- Juergen Hoeller
- 另请参阅:
Db2MainframeMaxValueIncrementer
字段概要
从类继承的字段 org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
paddingLength
构造器概要
构造器 构造器 说明 Db2LuwMaxValueIncrementer()
Default constructor for bean property style usage.Db2LuwMaxValueIncrementer(DataSource dataSource, String incrementerName)
Convenience constructor.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String
getSequenceQuery()
Return the database-specific query to use for retrieving a sequence value.从类继承的方法 org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
getNextKey
从类继承的方法 org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
afterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength
构造器详细资料
Db2LuwMaxValueIncrementer
public Db2LuwMaxValueIncrementer()
Default constructor for bean property style usage.
Db2LuwMaxValueIncrementer
public Db2LuwMaxValueIncrementer(DataSource dataSource, String incrementerName)
Convenience constructor.- 参数:
dataSource
- the DataSource to useincrementerName
- the name of the sequence/table to use
方法详细资料
getSequenceQuery
protected String getSequenceQuery()
从类复制的说明:AbstractSequenceMaxValueIncrementer
Return the database-specific query to use for retrieving a sequence value.The provided SQL is supposed to result in a single row with a single column that allows for extracting a
long
value.