|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.persist.AbstractBroker
Can assist with the basic implementation of a broker.
| Field Summary | |
protected SQLConvertExceptionIF |
exceptionConverter
|
protected static boolean |
metrics
|
protected BrokerPropertyIF |
props
|
boolean |
verbose
|
| Constructor Summary | |
AbstractBroker()
|
|
| Method Summary | |
void |
close()
Default of close is to do nothing |
protected QueryException |
convertException(QueryException ex)
This will ALWAYS return an exception. |
protected QueryException |
convertException(java.sql.SQLException ex,
java.lang.String additionalInfo)
This will ALWAYS return an exception. |
int |
count(SQLQuery q)
Get the number of objects that match this would be found by this query. |
void |
deleteObjects(java.util.ArrayList deleteList)
This default implementation may not be the most efficient, but it should work. |
SQLConvertExceptionIF |
getExceptionConverter()
A converter is used to generate application specific exceptions |
static void |
println(java.lang.String str)
Utility method to assist with migration to logger interface. |
void |
setBrokerProperty(BrokerPropertyIF b)
A BrokerPropertyIF is the mechanism by which properties are set for the broker. |
void |
setExceptionConverter(SQLConvertExceptionIF aValue)
A converter is used to generate application specific exceptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.objectwave.persist.Broker |
beginTransaction, commit, delete, deleteAll, find, findAttributes, findUnique, rollback, save, saveObjects |
| Field Detail |
protected static boolean metrics
public boolean verbose
protected BrokerPropertyIF props
protected SQLConvertExceptionIF exceptionConverter
| Constructor Detail |
public AbstractBroker()
| Method Detail |
public static void println(java.lang.String str)
str - A String to display. Used for debugging and logging purposes.public void setBrokerProperty(BrokerPropertyIF b)
setBrokerProperty in interface Brokerb - The source of property information.public void setExceptionConverter(SQLConvertExceptionIF aValue)
aValue - The new ExceptionConverter valuepublic SQLConvertExceptionIF getExceptionConverter()
public int count(SQLQuery q)
throws QueryException
count in interface Brokerq - SQLQuery that abstracts the query conditions.
QueryException
public void deleteObjects(java.util.ArrayList deleteList)
throws QueryException
deleteObjects in interface BrokerdeleteList -
QueryExceptionpublic void close()
close in interface Broker
protected QueryException convertException(java.sql.SQLException ex,
java.lang.String additionalInfo)
ex - additionalInfo -
protected QueryException convertException(QueryException ex)
ex -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||