org.appfuse.service
Interface UniversalManager

All Known Subinterfaces:
LookupManager, RoleManager, UserManager
All Known Implementing Classes:
LookupManagerImpl, RoleManagerImpl, UniversalManagerImpl, UserManagerImpl

public interface UniversalManager


Method Summary
 java.lang.Object get(java.lang.Class clazz, java.io.Serializable id)
          Generic method to get an object based on class and identifier.
 java.util.List getAll(java.lang.Class clazz)
          Generic method used to get a all objects of a particular type.
 void remove(java.lang.Class clazz, java.io.Serializable id)
          Generic method to delete an object based on class and id
 java.lang.Object save(java.lang.Object o)
          Generic method to save an object.
 

Method Detail

getAll

java.util.List getAll(java.lang.Class clazz)
Generic method used to get a all objects of a particular type.

Parameters:
clazz - the type of objects
Returns:
List of populated objects

get

java.lang.Object get(java.lang.Class clazz,
                     java.io.Serializable id)
Generic method to get an object based on class and identifier.

Parameters:
clazz - model class to lookup
id - the identifier (primary key) of the class
Returns:
a populated object
See Also:
org.springframework.orm.ObjectRetrievalFailureException

save

java.lang.Object save(java.lang.Object o)
Generic method to save an object.

Parameters:
o - the object to save

remove

void remove(java.lang.Class clazz,
            java.io.Serializable id)
Generic method to delete an object based on class and id

Parameters:
clazz - model class to lookup
id - the identifier of the class


Copyright © 2003-2007. All Rights Reserved.