public interface IGenericIdDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(String typeName,
String id)
Delete an instance from the given class.
|
<T> T |
findById(String typeName,
String id,
Class<T> clazz)
Find an instance from the given class.
|
<T> List<T> |
findByIds(String typeName,
Class<T> clazz,
String... ids)
Find instances by id
|
<T> T findById(String typeName, String id, Class<T> clazz)
clazz
- The class of the object to find.id
- The id of the object.<T> List<T> findByIds(String typeName, Class<T> clazz, String... ids)
clazz
- The class for which to find an instance.ids
- array of id of the data to find.Copyright © 2017. All rights reserved.