|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.objectwave.persist.AbstractBroker
|
+--com.objectwave.persist.broker.RDBBroker
|
+--com.objectwave.persist.broker.AccessBroker
Used for connecting to MS Access database.
| Nested Class Summary |
| Nested classes inherited from class com.objectwave.persist.broker.RDBBroker |
RDBBroker.Test |
| Field Summary |
| Fields inherited from class com.objectwave.persist.broker.RDBBroker |
broker, brokerPropertySource, connectionPerThread, connectionPool, pool, resultEngine, saveObjectsStrategy, sqlModifyEngine, sqlQueryEngine, statementFactory, threadLocal |
| Fields inherited from class com.objectwave.persist.AbstractBroker |
exceptionConverter, metrics, props, verbose |
| Constructor Summary | |
AccessBroker()
|
|
| Method Summary | |
RDBBroker |
defaultBroker()
Implemented as an instance method to support method overriding. |
protected void |
determinePrimaryKey(RDBPersistence pObj)
Determine the primary key for the provided persistent object. |
protected void |
generateInsertValues(RDBPersistence pObj)
Override the default behavior since we can not determine pkey prior to insert. |
static RDBBroker |
getDefaultBroker()
Most systems will have only one database broker. |
void |
initialize()
Install our custom object formatter |
protected java.lang.Object |
nextPrimaryKey(RDBPersistence pObj)
Access the NEXTVAL function of each table to determine the next primary key for the table named tableName. |
void |
update(RDBPersistence pObj)
Builds and executes an update statement. |
void |
update(SQLInsert sql,
RDBPersistence obj)
Don't include the primary key field as a value in the insert statement. |
| Methods inherited from class com.objectwave.persist.AbstractBroker |
convertException, convertException, getExceptionConverter, println, setBrokerProperty, setExceptionConverter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AccessBroker()
| Method Detail |
public static RDBBroker getDefaultBroker()
public void initialize()
initialize in class RDBBrokercom.objectwave.persist.Broker#getDefaultBroker
public void update(RDBPersistence pObj)
throws QueryException,
java.sql.SQLException
pObj -
QueryException
java.sql.SQLException
public void update(SQLInsert sql,
RDBPersistence obj)
update in class RDBBrokersql - obj - public RDBBroker defaultBroker()
defaultBroker in class RDBBrokerBrokerFactory
protected void determinePrimaryKey(RDBPersistence pObj)
throws java.sql.SQLException,
QueryException
determinePrimaryKey in class RDBBrokerpObj -
java.sql.SQLException
QueryExceptionRDBBroker.generateInsertValues(com.objectwave.persist.RDBPersistence)
protected void generateInsertValues(RDBPersistence pObj)
throws java.sql.SQLException,
QueryException
generateInsertValues in class RDBBrokerpObj -
java.sql.SQLException
QueryExceptionRDBBroker.nextPrimaryKey(com.objectwave.persist.RDBPersistence)
protected java.lang.Object nextPrimaryKey(RDBPersistence pObj)
throws java.sql.SQLException,
QueryException
nextPrimaryKey in class RDBBrokerpObj -
java.sql.SQLException
QueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||