当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
PostgreSQLSequenceMaxValueIncrementer (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
org.springframework.jdbc.support.incrementer
Class PostgreSQLSequenceMaxValueIncrementer
java.lang.Object
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer
- All Implemented Interfaces:
- InitializingBean, DataFieldMaxValueIncrementer
public class PostgreSQLSequenceMaxValueIncrementer
- extends AbstractSequenceMaxValueIncrementer
Class to retrieve the next value of a given PostgreSQL Sequence.
- Author:
- Tomislav Urban, Juergen Hoeller
Method Summary |
protected String |
getSequenceQuery()
Return the database-specific query to use for retrieving a sequence value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgreSQLSequenceMaxValueIncrementer
public PostgreSQLSequenceMaxValueIncrementer()
- Default constructor.
PostgreSQLSequenceMaxValueIncrementer
public PostgreSQLSequenceMaxValueIncrementer(DataSource ds,
String incrementerName)
- Convenience constructor.
- Parameters:
ds
- the DataSource to useincrementerName
- the name of the sequence/table to use
getSequenceQuery
protected String getSequenceQuery()
- Description copied from class:
AbstractSequenceMaxValueIncrementer
- Return the database-specific query to use for retrieving a sequence value.
- Specified by:
getSequenceQuery
in class AbstractSequenceMaxValueIncrementer
Copyright © 2002-2007 The Spring Framework.