| java.lang.Object org.apache.ojb.broker.accesslayer.JdbcAccessImpl
JdbcAccessImpl | public class JdbcAccessImpl implements JdbcAccess(Code) | | JdbcAccess is responsible for establishing performing
SQL Queries against remote Databases.
It hides all knowledge about JDBC from the BrokerImpl
author: Thomas Mahler version: $Id: JdbcAccessImpl.java,v 1.22.2.11 2005/12/13 18:21:23 arminw Exp $ |
Method Summary | |
protected void | assignAutoincrementIdentityColumns(ClassDescriptor cld, Object target) | protected void | assignAutoincrementSequences(ClassDescriptor cld, Object target) | 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) | public ResultSetAndStatement | executeSQL(String sql, 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) | public int | executeUpdateSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values1, ValueContainer[] values2) performs a SQL UPDTE, INSERT or DELETE statement against RDBMS.
Parameters: sqlStatement - the query string. Parameters: cld - ClassDescriptor providing meta-information. | protected boolean | isStoredProcedure(String sql) Check if the specified sql-string is a stored procedure
or not. | public Object | materializeObject(ClassDescriptor cld, Identity oid) performs a primary key lookup operation against RDBMS and materializes
an object from the resulting row. |
JdbcAccessImpl | public JdbcAccessImpl(PersistenceBroker broker)(Code) | | constructor is private, use getInstance to get
the singleton instance of this class
|
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. |
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. |
isStoredProcedure | protected boolean isStoredProcedure(String sql)(Code) | | Check if the specified sql-string is a stored procedure
or not.
Parameters: sql - The sql query to check True if the query is a stored procedure, else false is returned. |
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. |
|
|