|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional(rollbackFor=java.lang.Exception.class) public interface CatalogManager
Interface for managers that implement a generic manager ( or DAO ) over a IntKeyDTO instance. This interface is meant for simple catalogs that require a very typical persistence lifecycle.
| Method Summary | |
|---|---|
void |
deleteObject(java.lang.Class c,
java.lang.Integer id)
Delete an object. |
IntKeyDTO |
getObject(java.lang.Class c,
java.lang.Integer id)
Read an object by key. |
java.util.Map<java.lang.Integer,IntKeyDTO> |
getObjectMap(java.lang.Class c)
Get a linked Map of the objects in the given catalog, the keys of the map are int values; the values are instances of the DTO class. |
java.util.List<IntKeyDTO> |
getObjects(java.lang.Class c)
Get a list of the objects in the given catalog. |
java.lang.Integer |
insertObject(IntKeyDTO object)
Insert a new object. |
void |
updateObject(IntKeyDTO object)
Update an object. |
| Method Detail |
|---|
@Transactional(propagation=SUPPORTS,
readOnly=true)
IntKeyDTO getObject(java.lang.Class c,
java.lang.Integer id)
throws NonExistentObjectException,
SystemException
NonExistentObjectException
SystemException
java.lang.Integer insertObject(IntKeyDTO object)
throws ValidationException,
SystemException
ValidationException
SystemException
void updateObject(IntKeyDTO object)
throws ValidationException,
NonExistentObjectException,
SystemException
ValidationException
NonExistentObjectException
SystemException
void deleteObject(java.lang.Class c,
java.lang.Integer id)
throws NonExistentObjectException,
SystemException
NonExistentObjectException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<IntKeyDTO> getObjects(java.lang.Class c)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.Map<java.lang.Integer,IntKeyDTO> getObjectMap(java.lang.Class c)
throws SystemException
SystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||