|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg9.persistence.access.DataAccessObject
public abstract class DataAccessObject
this super-class has convenience methods that hibernate DAOs typically would need. some of the functionality includes:
| Constructor Summary | |
|---|---|
DataAccessObject()
|
|
| Method Summary | |
|---|---|
protected static void |
addEq(java.lang.String aColumn,
java.lang.Object aValue,
Criteria aCriteria)
adds |
protected static void |
addLike(java.lang.String aColumn,
java.lang.String aValue,
Criteria aCriteria)
adds |
protected static void |
delete(DataTransferObject aQbeDto,
Session aSession)
handles deletes, handles the transaction commital, etc... |
protected static java.util.List |
find(DataTransferObject aQbeDto,
Criteria aCriteria,
Session aSession)
generic find method |
protected static Session |
getSession(java.lang.Class aClass)
get a hibernate session for the given class type |
protected static java.util.List |
handleFindAllResults(java.util.List aList)
this ensures that we have a consistent policy regarding findAll methods. |
protected static java.util.List |
handleFindAllResults(java.util.List aList,
int aMaxRows)
this ensures that we have a consistent policy regarding findAll methods. |
protected static DataTransferObject |
handleFindOneResults(java.util.List aList)
this ensures that we have a consistent policy regarding findOne methods. |
static DataTransferObject |
store(DataTransferObject aDto,
java.lang.Class aClass)
a generic store method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataAccessObject()
| Method Detail |
|---|
public static DataTransferObject store(DataTransferObject aDto,
java.lang.Class aClass)
throws DataAccessException
DataAccessException
protected static java.util.List find(DataTransferObject aQbeDto,
Criteria aCriteria,
Session aSession)
throws DataAccessException
DataAccessException
protected static void delete(DataTransferObject aQbeDto,
Session aSession)
throws DataAccessException
DataAccessException
protected static void addLike(java.lang.String aColumn,
java.lang.String aValue,
Criteria aCriteria)
and column like 'value%'to the criteria. this is case sensitive.
protected static void addEq(java.lang.String aColumn,
java.lang.Object aValue,
Criteria aCriteria)
and column = 'value'to the criteria. this is case sensitive.
protected static DataTransferObject handleFindOneResults(java.util.List aList)
throws DataAccessException
DataAccessException
protected static java.util.List handleFindAllResults(java.util.List aList)
throws TooManyResultsException
TooManyResultsException
protected static java.util.List handleFindAllResults(java.util.List aList,
int aMaxRows)
throws TooManyResultsException
TooManyResultsException
protected static Session getSession(java.lang.Class aClass)
throws DataAccessException
DataAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||