| java.lang.Object org.apache.cocoon.components.modules.database.PgsqlAutoIncrementModule
PgsqlAutoIncrementModule | public class PgsqlAutoIncrementModule implements AutoIncrementModule,ThreadSafe(Code) | | Abstraction layer to encapsulate different DBMS behaviour for autoincrement columns.
Here: PostgreSQL
sequences. The default sequence name is constructed from the table
name, a "_", the column name, and the suffix "_seq". To use a
different sequence name, set an attribute "sequence" for the
modeConf e.g. <mode name="auto" type="auto" sequence="my_sequence"/>.
author: Philipp Hahn version: CVS $Id: PgsqlAutoIncrementModule.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public Object | getPostValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Statement stmt, Map objectModel) | public Object | getPreValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Map objectModel) | public String | getSubquery(Configuration tableConf, Configuration columnConf, Configuration modeConf) | public boolean | includeAsValue() | public boolean | includeInQuery() |
getPreValue | public Object getPreValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Map objectModel) throws SQLException, ConfigurationException(Code) | | |
getSubquery | public String getSubquery(Configuration tableConf, Configuration columnConf, Configuration modeConf) throws ConfigurationException(Code) | | |
includeAsValue | public boolean includeAsValue()(Code) | | |
includeInQuery | public boolean includeInQuery()(Code) | | |
|
|