|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.appfuse.service.impl.BaseManager
public class BaseManager
Base class for Business Services - use this class for utility methods and generic CRUD methods.
| Field Summary | |
|---|---|
protected Dao |
dao
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
BaseManager()
|
|
| Method Summary | |
|---|---|
Object |
getObject(Class clazz,
Serializable id)
Generic method to get an object based on class and identifier. |
List |
getObjects(Class clazz)
Generic method used to get a all objects of a particular type. |
void |
removeObject(Class clazz,
Serializable id)
Generic method to delete an object based on class and id |
void |
saveObject(Object o)
Generic method to save an object. |
void |
setDao(Dao dao)
Expose the setDao method for testing purposes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
protected Dao dao
| Constructor Detail |
|---|
public BaseManager()
| Method Detail |
|---|
public void setDao(Dao dao)
Manager
setDao in interface ManagerManager.setDao(org.appfuse.dao.Dao)
public Object getObject(Class clazz,
Serializable id)
Manager
getObject in interface Managerclazz - model class to lookupid - the identifier (primary key) of the class
Manager.getObject(java.lang.Class, java.io.Serializable)public List getObjects(Class clazz)
Manager
getObjects in interface Managerclazz - the type of objects
Manager.getObjects(java.lang.Class)
public void removeObject(Class clazz,
Serializable id)
Manager
removeObject in interface Managerclazz - model class to lookupid - the identifier of the classManager.removeObject(java.lang.Class, java.io.Serializable)public void saveObject(Object o)
Manager
saveObject in interface Managero - the object to saveManager.saveObject(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||