Package org.opennms.netmgt.dao.api
Interface GenericPersistenceAccessor
-
- All Known Implementing Classes:
GenericHibernateAccessor
public interface GenericPersistenceAccessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> void
delete(T entity)
<T> void
deleteAll(Class<T> clazz)
<T> void
deleteAll(Collection<T> entities)
<T> List<T>
executeNativeQuery(String sql, Map<String,Object> parameterMap)
Executes a native SQL query.<T> List<T>
find(String query)
<T> List<T>
find(String query, Object... values)
<T> List<T>
findAll(Class<T> entityClass)
List
findMatching(Criteria criteria)
<T> List<T>
findUsingNamedParameters(String query, String[] paramNames, Object[] values)
<T> List<T>
findUsingNamedParameters(String query, String[] paramNames, Object[] values, Integer offset, Integer limit)
<T> T
get(Class<T> entityType, Serializable entityId)
<T> T
save(T entity)
<T> void
saveAll(Collection<T> entities)
<T> void
update(T entity)
-
-
-
Method Detail
-
findUsingNamedParameters
<T> List<T> findUsingNamedParameters(String query, String[] paramNames, Object[] values)
-
findUsingNamedParameters
<T> List<T> findUsingNamedParameters(String query, String[] paramNames, Object[] values, Integer offset, Integer limit)
-
get
<T> T get(Class<T> entityType, Serializable entityId)
-
save
<T> T save(T entity)
-
update
<T> void update(T entity)
-
saveAll
<T> void saveAll(Collection<T> entities)
-
deleteAll
<T> void deleteAll(Class<T> clazz)
-
deleteAll
<T> void deleteAll(Collection<T> entities)
-
delete
<T> void delete(T entity)
-
-