org.wicketopia.persistence
Interface PersistenceProvider

All Known Implementing Classes:
HibernatePersistenceProvider, Jpa2PersistenceProvider, JpaPersistenceProvider

public interface PersistenceProvider


Method Summary
<T,C extends Collection<? extends T>>
void
create(C collection)
           
<T> T
create(T object)
           
<T,C extends Collection<? extends T>>
void
delete(C collection)
           
<T> void
delete(T object)
           
<T> List<T>
getAll(Class<T> entityType)
           
<T> T
getByIdentifier(Class<T> entityType, Serializable identifier)
           
 long getCount(Class<?> beanType)
           
 Serializable getIdentifier(Object entity)
           
<T> List<T>
getList(Class<T> entityType, long first, long max, String sortProperty, boolean ascending)
           
<T,C extends Collection<? extends T>>
void
update(C collection)
           
<T> T
update(T object)
           
 

Method Detail

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.