| org.araneaframework.example.main.business.data.IGeneralDAO
All known Subclasses: org.araneaframework.example.main.business.data.GeneralDAO,
IGeneralDAO | public interface IGeneralDAO (Code) | | |
Method Summary | |
abstract public Long | add(GeneralMO object) Stores a new object and returns its Id.
Parameters: object - object. | abstract public void | edit(GeneralMO object) Stores an existing object. | abstract public List | getAll(Class clazz) Reads all objects with specified class. | abstract public GeneralMO | getById(Class clazz, Long id) Reads an object with specified class and Id. | abstract public void | remove(Class clazz, Long id) Removes an object with specified class and Id. |
add | abstract public Long add(GeneralMO object)(Code) | | Stores a new object and returns its Id.
Parameters: object - object. object's Id. |
edit | abstract public void edit(GeneralMO object)(Code) | | Stores an existing object.
Parameters: object - object. |
getAll | abstract public List getAll(Class clazz)(Code) | | Reads all objects with specified class. Returned objects can be casted into
specified class afterwards.
Parameters: clazz - objects' class. all objects with the specified class. |
getById | abstract public GeneralMO getById(Class clazz, Long id)(Code) | | Reads an object with specified class and Id. Returned object can be casted
into specified class afterwards.
Parameters: clazz - object's class. Parameters: id - object's Id. object with the specified Id and class. |
remove | abstract public void remove(Class clazz, Long id)(Code) | | Removes an object with specified class and Id.
Parameters: clazz - object's class. Parameters: id - object's Id. |
|
|