| org.apache.ojb.broker.accesslayer.JdbcAccess
All known Subclasses: org.apache.ojb.broker.accesslayer.JdbcAccessImpl,
Method Summary | |
public void | executeDelete(ClassDescriptor cld, Object obj) performs a DELETE operation against RDBMS. | public void | executeDelete(Query query, ClassDescriptor cld) performs a DELETE operation based on the given
Query against RDBMS. | public void | executeInsert(ClassDescriptor cld, Object obj) performs an INSERT operation against RDBMS. | public ResultSetAndStatement | executeQuery(Query query, ClassDescriptor cld) performs a SELECT operation against RDBMS. | public ResultSetAndStatement | executeSQL(String sqlStatement, ClassDescriptor cld, boolean scrollable) performs a SQL SELECT statement against RDBMS. | public ResultSetAndStatement | executeSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values, boolean scrollable) performs a SQL SELECT statement against RDBMS. | public void | executeUpdate(ClassDescriptor cld, Object obj) performs an UPDATE operation against RDBMS. | public int | executeUpdateSQL(String sqlStatement, ClassDescriptor cld) performs a SQL UPDTE, INSERT or DELETE statement against RDBMS.
Parameters: sqlStatement - the query string. Parameters: cld - ClassDescriptor providing meta-information. | public int | executeUpdateSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values1, ValueContainer[] values2) performs a SQL UPDTE, INSERT or DELETE statement against RDBMS. | public Object | materializeObject(ClassDescriptor cld, Identity oid) performs a primary key lookup operation against RDBMS and materializes
an object from the resulting row. |
executeInsert | public void executeInsert(ClassDescriptor cld, Object obj) throws PersistenceBrokerException(Code) | | performs an INSERT operation against RDBMS.
Parameters: obj - The Object to be inserted as a row of the underlying table. Parameters: cld - ClassDescriptor providing mapping information. |
executeSQL | public ResultSetAndStatement executeSQL(String sqlStatement, ClassDescriptor cld, boolean scrollable) throws PersistenceBrokerException(Code) | | performs a SQL SELECT statement against RDBMS.
Parameters: sqlStatement - the query string. Parameters: cld - ClassDescriptor providing meta-information. Parameters: scrollable - Does this resultset need cursor control for operations like last, first and size |
executeSQL | public ResultSetAndStatement executeSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values, boolean scrollable) throws PersistenceBrokerException(Code) | | performs a SQL SELECT statement against RDBMS.
Parameters: sqlStatement - the query string. Parameters: cld - ClassDescriptor providing meta-information. Parameters: values - The set of values to bind to the statement (may be null) Parameters: scrollable - Does this resultset need cursor control for operations like last, first and size |
executeUpdate | public void executeUpdate(ClassDescriptor cld, Object obj) throws PersistenceBrokerException(Code) | | performs an UPDATE operation against RDBMS.
Parameters: obj - The Object to be updated in the underlying table. Parameters: cld - ClassDescriptor providing mapping information. |
executeUpdateSQL | public int executeUpdateSQL(String sqlStatement, ClassDescriptor cld) throws PersistenceBrokerException(Code) | | performs a SQL UPDTE, INSERT or DELETE statement against RDBMS.
Parameters: sqlStatement - the query string. Parameters: cld - ClassDescriptor providing meta-information. int returncode |
executeUpdateSQL | public int executeUpdateSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values1, ValueContainer[] values2) throws PersistenceBrokerException(Code) | | performs a SQL UPDTE, INSERT or DELETE statement against RDBMS.
Parameters: sqlStatement - the query string. Parameters: cld - ClassDescriptor providing meta-information. Parameters: values1 - The first set of values to bind to the statement (may be null) Parameters: values2 - The second set of values to bind to the statement (may be null) int returncode |
materializeObject | public Object materializeObject(ClassDescriptor cld, Identity oid) throws PersistenceBrokerException(Code) | | performs a primary key lookup operation against RDBMS and materializes
an object from the resulting row. Only skalar attributes are filled from
the row, references are not resolved.
Parameters: oid - contains the primary key info. Parameters: cld - ClassDescriptor providing mapping information. the materialized object, null if no matching row was found or ifany error occured. |
|
|