|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JdbcAccess
JdbcAccess is responsible for establishing performing
SQL Queries against remote Databases.
It hides all knowledge about JDBC from the
PersistenceBroker
| Method Summary | |
|---|---|
void |
executeDelete(ClassDescriptor cld,
Object obj)
performs a DELETE operation against RDBMS. |
void |
executeDelete(Query query,
ClassDescriptor cld)
performs a DELETE operation based on the given Query against RDBMS. |
void |
executeInsert(ClassDescriptor cld,
Object obj)
performs an INSERT operation against RDBMS. |
ResultSetAndStatement |
executeQuery(Query query,
ClassDescriptor cld)
performs a SELECT operation against RDBMS. |
ResultSetAndStatement |
executeSQL(String sqlStatement,
ClassDescriptor cld,
boolean scrollable)
performs a SQL SELECT statement against RDBMS. |
ResultSetAndStatement |
executeSQL(String sqlStatement,
ClassDescriptor cld,
ValueContainer[] values,
boolean scrollable)
performs a SQL SELECT statement against RDBMS. |
void |
executeUpdate(ClassDescriptor cld,
Object obj)
performs an UPDATE operation against RDBMS. |
int |
executeUpdateSQL(String sqlStatement,
ClassDescriptor cld)
performs a SQL UPDTE, INSERT or DELETE statement against RDBMS. |
int |
executeUpdateSQL(String sqlStatement,
ClassDescriptor cld,
ValueContainer[] values1,
ValueContainer[] values2)
performs a SQL UPDTE, INSERT or DELETE statement against RDBMS. |
Object |
materializeObject(ClassDescriptor cld,
Identity oid)
performs a primary key lookup operation against RDBMS and materializes an object from the resulting row. |
| Method Detail |
|---|
void executeDelete(ClassDescriptor cld,
Object obj)
throws PersistenceBrokerException
cld - ClassDescriptor providing mapping information.obj - The object to be deleted.
PersistenceBrokerException
void executeDelete(Query query,
ClassDescriptor cld)
throws PersistenceBrokerException
Query against RDBMS.
query - the query string.cld - ClassDescriptor providing JDBC information.
PersistenceBrokerException
void executeInsert(ClassDescriptor cld,
Object obj)
throws PersistenceBrokerException
obj - The Object to be inserted as a row of the underlying table.cld - ClassDescriptor providing mapping information.
PersistenceBrokerException
ResultSetAndStatement executeSQL(String sqlStatement,
ClassDescriptor cld,
boolean scrollable)
throws PersistenceBrokerException
sqlStatement - the query string.cld - ClassDescriptor providing meta-information.scrollable - Does this resultset need cursor control for operations like last, first and size
PersistenceBrokerException
ResultSetAndStatement executeSQL(String sqlStatement,
ClassDescriptor cld,
ValueContainer[] values,
boolean scrollable)
throws PersistenceBrokerException
sqlStatement - the query string.cld - ClassDescriptor providing meta-information.values - The set of values to bind to the statement (may be null)scrollable - Does this resultset need cursor control for operations like last, first and size
PersistenceBrokerException
int executeUpdateSQL(String sqlStatement,
ClassDescriptor cld)
throws PersistenceBrokerException
sqlStatement - the query string.cld - ClassDescriptor providing meta-information.
PersistenceBrokerException
int executeUpdateSQL(String sqlStatement,
ClassDescriptor cld,
ValueContainer[] values1,
ValueContainer[] values2)
throws PersistenceBrokerException
sqlStatement - the query string.cld - ClassDescriptor providing meta-information.values1 - The first set of values to bind to the statement (may be null)values2 - The second set of values to bind to the statement (may be null)
PersistenceBrokerException
void executeUpdate(ClassDescriptor cld,
Object obj)
throws PersistenceBrokerException
obj - The Object to be updated in the underlying table.cld - ClassDescriptor providing mapping information.
PersistenceBrokerException
Object materializeObject(ClassDescriptor cld,
Identity oid)
throws PersistenceBrokerException
oid - contains the primary key info.cld - ClassDescriptor providing mapping information.
PersistenceBrokerException
ResultSetAndStatement executeQuery(Query query,
ClassDescriptor cld)
throws PersistenceBrokerException
query - the query string.cld - ClassDescriptor providing JDBC information.
PersistenceBrokerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||