|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule
public class HsqlIdentityAutoIncrementModule
Abstraction layer to encapsulate different DBMS behaviour for autoincrement columns. Here: HSQLDB 1.6 IDENTITY columns
| Field Summary |
|---|
| Fields inherited from interface org.apache.cocoon.components.modules.database.AutoIncrementModule |
|---|
ROLE |
| Constructor Summary | |
|---|---|
HsqlIdentityAutoIncrementModule()
|
|
| 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. |
String |
getSubquery(Configuration tableConf,
Configuration columnConf,
Configuration modeConf)
Provide subquery string for the key attribute column. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HsqlIdentityAutoIncrementModule()
| Method Detail |
|---|
public Object getPostValue(Configuration tableConf,
Configuration columnConf,
Configuration modeConf,
Connection conn,
Statement stmt,
Map objectModel)
throws SQLException,
ConfigurationException
AutoIncrementModule
getPostValue in interface AutoIncrementModuletableConf - Table's configuration from resource description.columnConf - column's configuration from resource description.modeConf - this mode's configuration from resource description.conn - Connectionstmt - Statement that was executed to insert the last row.objectModel - The objectModel
SQLException
ConfigurationExceptionpublic boolean includeInQuery()
AutoIncrementModule
includeInQuery in interface AutoIncrementModulepublic boolean includeAsValue()
AutoIncrementModule
includeAsValue in interface AutoIncrementModule
public Object getPreValue(Configuration tableConf,
Configuration columnConf,
Configuration modeConf,
Connection conn,
Map objectModel)
throws SQLException,
ConfigurationException
AutoIncrementModule
getPreValue in interface AutoIncrementModuletableConf - Table's configuration from resource description.columnConf - column's configuration from resource description.modeConf - this mode's configuration from resource description.conn - ConnectionobjectModel - The objectModel
SQLException
ConfigurationException
public String getSubquery(Configuration tableConf,
Configuration columnConf,
Configuration modeConf)
throws ConfigurationException
AutoIncrementModule
getSubquery in interface AutoIncrementModuleConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||