org.wicketopia.persistence.hibernate
Class HibernatePersistenceProvider

java.lang.Object
  extended by org.wicketopia.persistence.hibernate.HibernatePersistenceProvider
All Implemented Interfaces:
PersistenceProvider

public class HibernatePersistenceProvider
extends Object
implements PersistenceProvider

Author:
James Carman

Constructor Summary
HibernatePersistenceProvider()
           
 
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> beanType, 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)
           
protected  org.hibernate.Session getSession()
           
 org.hibernate.SessionFactory getSessionFactory()
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
           
<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

HibernatePersistenceProvider

public HibernatePersistenceProvider()
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

getAll

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

getByIdentifier

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

getCount

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

getIdentifier

public Serializable getIdentifier(Object entity)
Specified by:
getIdentifier 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

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

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)

getSession

protected org.hibernate.Session getSession()


Copyright © 2010-2013. All Rights Reserved.