| org.apache.cocoon.components.modules.database.AutoIncrementModule
All known Subclasses: org.apache.cocoon.components.modules.database.McKoiSequenceModule, org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule, org.apache.cocoon.components.modules.database.MysqlAutoIncrementModule, org.apache.cocoon.components.modules.database.PgsqlAutoIncrementModule, org.apache.cocoon.components.modules.database.AbstractAutoIncrementModule, org.apache.cocoon.components.modules.database.SQLServerIdentityAutoIncrementModule, org.apache.cocoon.components.modules.database.IfxSerialAutoIncrementModule,
AutoIncrementModule | public interface AutoIncrementModule extends Component(Code) | | Abstraction layer to encapsulate different DBMS behaviour for key
attribute columns.
author: Christian Haul version: CVS $Id: AutoIncrementModule.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
Object | getPostValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Statement stmt, Map objectModel) Return key attribute value of last inserted row. | Object | getPreValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Map objectModel) Provide the value for the key attribute column.
If a value for the key value column is needed (i.e. | String | getSubquery(Configuration tableConf, Configuration columnConf, Configuration modeConf) Provide subquery string for the key attribute column.
If a value for the autoincrement column is needed (i.e. | boolean | includeAsValue() Boolean whether the key attribute needs to be included in the
insert query as an attribute value (no subquery). | boolean | includeInQuery() Boolean whether the key attribute column needs to be included
in the insert query. |
getPostValue | Object getPostValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Statement stmt, Map objectModel) throws SQLException, ConfigurationException(Code) | | Return key attribute value of last inserted row.
Parameters: tableConf - Table's configuration from resource description. Parameters: columnConf - column's configuration from resource description. Parameters: modeConf - this mode's configuration from resource description. Parameters: conn - Connection Parameters: stmt - Statement that was executed to insert the last row. Parameters: objectModel - The objectModel value representing the last key value value. |
getPreValue | Object getPreValue(Configuration tableConf, Configuration columnConf, Configuration modeConf, Connection conn, Map objectModel) throws SQLException, ConfigurationException(Code) | | Provide the value for the key attribute column.
If a value for the key value column is needed (i.e. the column
is not skipped), this value is computed here.
Parameters: tableConf - Table's configuration from resource description. Parameters: columnConf - column's configuration from resource description. Parameters: modeConf - this mode's configuration from resource description. Parameters: conn - Connection Parameters: objectModel - The objectModel exact value for key attribute column |
getSubquery | String getSubquery(Configuration tableConf, Configuration columnConf, Configuration modeConf) throws ConfigurationException(Code) | | Provide subquery string for the key attribute column.
If a value for the autoincrement column is needed (i.e. the
column is not skipped), and the value can be determined through
a nested subquery, this function provides the subquery as a
string.
subquery string for autoincrement column. |
includeAsValue | boolean includeAsValue()(Code) | | Boolean whether the key attribute needs to be included in the
insert query as an attribute value (no subquery).
true if a value is needed, false if a subqueryexpression is used or the column is skipped altogether. |
includeInQuery | boolean includeInQuery()(Code) | | Boolean whether the key attribute column needs to be included
in the insert query.
true if the column is needed, false if the columnshould be skipped. |
|
|