|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.service.spring.HibernateManagerSupport
com.acsinet_solutions.cetia4.service.impl.CatalogManagerImpl
public class CatalogManagerImpl
A generic Hibernate based implementation of a simple key based catalog manager. Methods that require the class of the object being persisted will receive so.
| Constructor Summary | |
|---|---|
CatalogManagerImpl()
|
|
| 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. |
| Methods inherited from class com.acsinet_solutions.cetia4.service.spring.HibernateManagerSupport |
|---|
check, delete, getCatalog, getSession, load, setSessionFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogManagerImpl()
| Method Detail |
|---|
public IntKeyDTO getObject(java.lang.Class c,
java.lang.Integer id)
throws NonExistentObjectException,
SystemException
CatalogManager
getObject in interface CatalogManagerNonExistentObjectException
SystemException
public java.lang.Integer insertObject(IntKeyDTO object)
throws ValidationException,
SystemException
CatalogManager
insertObject in interface CatalogManagerValidationException
SystemException
public void updateObject(IntKeyDTO object)
throws ValidationException,
NonExistentObjectException,
SystemException
CatalogManager
updateObject in interface CatalogManagerValidationException
NonExistentObjectException
SystemException
public void deleteObject(java.lang.Class c,
java.lang.Integer id)
throws NonExistentObjectException,
SystemException
CatalogManager
deleteObject in interface CatalogManagerNonExistentObjectException
SystemException
public java.util.List<IntKeyDTO> getObjects(java.lang.Class c)
throws SystemException
CatalogManager
getObjects in interface CatalogManagerSystemException
public java.util.Map<java.lang.Integer,IntKeyDTO> getObjectMap(java.lang.Class c)
throws SystemException
CatalogManager
getObjectMap in interface CatalogManagerSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||