org.wicketopia.persistence.hibernate
Class HibernatePersistenceProvider
java.lang.Object
org.wicketopia.persistence.hibernate.HibernatePersistenceProvider
- All Implemented Interfaces:
- PersistenceProvider
public class HibernatePersistenceProvider
- extends Object
- implements PersistenceProvider
- Author:
- James Carman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernatePersistenceProvider
public HibernatePersistenceProvider()
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.