Package net.anotheria.asg.service
Interface CRUDService<T>
-
- Type Parameters:
T-
public interface CRUDService<T>The interface for a basic crud service.- Version:
- $Id: $Id
- Author:
- lrosenberg
-
-
Method Detail
-
get
T get(java.lang.String id) throws ASGRuntimeException
Returns an instance of T with the given id.- Parameters:
id- the id of the object.- Returns:
- T
- Throws:
ASGRuntimeException- if any.
-
delete
void delete(T t) throws ASGRuntimeException
Deletes the object.- Parameters:
t- the object to delete.- Throws:
ASGRuntimeException- if any.
-
update
T update(T t) throws ASGRuntimeException
Updates an object.- Parameters:
t- the object to update.- Returns:
- T
- Throws:
ASGRuntimeException- if any.
-
create
T create(T t) throws ASGRuntimeException
Creates a new T.- Parameters:
t- a T object.- Returns:
- T
- Throws:
ASGRuntimeException- if any.
-
-