org.wicketopia.persistence.jpa
Class JpaPersistenceProvider

java.lang.Object
  extended by org.wicketopia.persistence.jpa.JpaPersistenceProvider
All Implemented Interfaces:
PersistenceProvider

public class JpaPersistenceProvider
extends Object
implements PersistenceProvider

Author:
James Carman

Constructor Summary
JpaPersistenceProvider()
           
 
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<?> entityType)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaPersistenceProvider

public JpaPersistenceProvider()
Method Detail

create

public <T> T create(T object)
Specified by:
create in interface PersistenceProvider

delete

public <T> void delete(T object)
Specified by:
delete in interface PersistenceProvider

update

public <T> T update(T object)
Specified by:
update in interface PersistenceProvider

create

public <T,C extends Collection<? extends T>> void create(C collection)
Specified by:
create in interface PersistenceProvider

delete

public <T,C extends Collection<? extends T>> void delete(C collection)
Specified by:
delete in interface PersistenceProvider

update

public <T,C extends Collection<? extends T>> void update(C collection)
Specified by:
update in interface PersistenceProvider

getCount

public long getCount(Class<?> entityType)
Specified by:
getCount in interface PersistenceProvider

getIdentifier

public Serializable getIdentifier(Object entity)
Specified by:
getIdentifier in interface PersistenceProvider

getByIdentifier

public <T> T getByIdentifier(Class<T> entityType,
                             Serializable identifier)
Specified by:
getByIdentifier in interface PersistenceProvider

getAll

public <T> List<T> getAll(Class<T> entityType)
Specified by:
getAll in interface PersistenceProvider

getList

public <T> List<T> getList(Class<T> entityType,
                           long first,
                           long max,
                           String sortProperty,
                           boolean ascending)
Specified by:
getList in interface PersistenceProvider


Copyright © 2010-2013. All Rights Reserved.