|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadOnlyBroker<T extends Dao>
Allows reads to implementing datastores.
Method Summary | |
---|---|
T |
getObject(java.lang.Class<T> c,
java.lang.String statement,
boolean cache,
java.lang.Object... params)
Gets a singular object from the datastore. |
java.util.Collection<T> |
getObjects(java.lang.Class<T> c,
boolean cache,
java.lang.String statement,
java.lang.Object... params)
Gets a collection of objects from the datastore. |
Method Detail |
---|
T getObject(java.lang.Class<T> c, java.lang.String statement, boolean cache, java.lang.Object... params) throws java.sql.SQLException
c
- Class
of the expected object return.statement
- key to get the object from the datastore.cache
- true
a cached object will suffice.params
- objects to look up the desired object by.
Class
c populated.
java.sql.SQLException
java.util.Collection<T> getObjects(java.lang.Class<T> c, boolean cache, java.lang.String statement, java.lang.Object... params) throws java.sql.SQLException
c
- Class
of the expected object return.statement
- key to get the object from the datastore.cache
- true
a cached object will suffice.params
- objects to look up the desired object by.
Class
c populated.
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |