au.edu.archer.dao.api
Interface BaseDao

All Known Subinterfaces:
DatasetHandleDao
All Known Implementing Classes:
BaseDaoImpl, DatasetHandleDaoImpl

public interface BaseDao

Base DAO - Every DAO interface shall extend this.


Method Summary
 void delete(java.lang.Class classObj, java.lang.Object key)
          Delete the entity.
 java.lang.Object findById(java.lang.Class classObj, java.lang.Object key)
          Find by key id.
 java.util.List<java.lang.Object> findByQuery(java.lang.String queryString, java.lang.Object... values)
          Find by query.
 void save(java.lang.Object obj)
          Save the entity.
 void update(java.lang.Object obj)
          Update the entity.
 

Method Detail

save

void save(java.lang.Object obj)
Save the entity.

Parameters:
obj - to persist.

update

void update(java.lang.Object obj)
Update the entity.

Parameters:
obj - to persist.

delete

void delete(java.lang.Class classObj,
            java.lang.Object key)
Delete the entity.

Parameters:
classObj - entity class.
key - entity key id.

findById

java.lang.Object findById(java.lang.Class classObj,
                          java.lang.Object key)
Find by key id.

Parameters:
classObj - entity class.
key - id.
Returns:
Object

findByQuery

java.util.List<java.lang.Object> findByQuery(java.lang.String queryString,
                                             java.lang.Object... values)
Find by query.

Parameters:
queryString - Query string.
values - Query parameters.
Returns:
List of Object.


Copyright © 2008-09 Monash University. All Rights Reserved.