org.wicketopia.persistence
Interface PersistenceProvider
- All Known Implementing Classes:
- HibernatePersistenceProvider, Jpa2PersistenceProvider, JpaPersistenceProvider
public interface PersistenceProvider
getCount
long getCount(Class<?> beanType)
getIdentifier
Serializable getIdentifier(Object entity)
getByIdentifier
<T> T getByIdentifier(Class<T> entityType,
Serializable identifier)
create
<T> T create(T object)
create
<T,C extends Collection<? extends T>> void create(C collection)
delete
<T> void delete(T object)
delete
<T,C extends Collection<? extends T>> void delete(C collection)
getAll
<T> List<T> getAll(Class<T> entityType)
getList
<T> List<T> getList(Class<T> entityType,
long first,
long max,
String sortProperty,
boolean ascending)
update
<T> T update(T object)
update
<T,C extends Collection<? extends T>> void update(C collection)
Copyright © 2010-2013. All Rights Reserved.