org.onebusaway.gtfs.impl
Class HibernateOperationsImpl
java.lang.Object
org.onebusaway.gtfs.impl.HibernateOperationsImpl
- All Implemented Interfaces:
- HibernateOperations
public class HibernateOperationsImpl
- extends Object
- implements HibernateOperations
|
Method Summary |
protected void |
applyNamedParameterToQuery(org.hibernate.Query queryObject,
String paramName,
Object value)
|
|
clearAllEntitiesForType(Class<T> type)
|
void |
close()
|
Object |
execute(HibernateOperation callback)
|
|
find(String queryString)
|
|
findByNamedQuery(String namedQuery)
|
|
findByNamedQueryAndNamedParam(String namedQuery,
String paramName,
Object paramValue)
|
|
findByNamedQueryAndNamedParams(String namedQuery,
String[] paramNames,
Object[] values)
|
|
findWithNamedParam(String queryString,
String paramName,
Object value)
|
|
findWithNamedParams(String queryString,
String[] paramNames,
Object[] values)
|
void |
flush()
|
|
get(Class<T> entityType,
Serializable id)
|
org.hibernate.SessionFactory |
getSessionFactory()
|
void |
open()
|
|
removeEntity(T entity)
|
void |
save(Object entity)
|
void |
saveOrUpdate(Object entity)
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
void |
update(Object entity)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateOperationsImpl
public HibernateOperationsImpl()
HibernateOperationsImpl
public HibernateOperationsImpl(org.hibernate.SessionFactory sessionFactory)
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Specified by:
getSessionFactory in interface HibernateOperations
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
open
public void open()
- Specified by:
open in interface HibernateOperations
close
public void close()
- Specified by:
close in interface HibernateOperations
execute
public Object execute(HibernateOperation callback)
- Specified by:
execute in interface HibernateOperations
find
public <T> List<T> find(String queryString)
- Specified by:
find in interface HibernateOperations
findWithNamedParam
public <T> List<T> findWithNamedParam(String queryString,
String paramName,
Object value)
- Specified by:
findWithNamedParam in interface HibernateOperations
findWithNamedParams
public <T> List<T> findWithNamedParams(String queryString,
String[] paramNames,
Object[] values)
- Specified by:
findWithNamedParams in interface HibernateOperations
findByNamedQuery
public <T> List<T> findByNamedQuery(String namedQuery)
- Specified by:
findByNamedQuery in interface HibernateOperations
findByNamedQueryAndNamedParam
public <T> List<T> findByNamedQueryAndNamedParam(String namedQuery,
String paramName,
Object paramValue)
- Specified by:
findByNamedQueryAndNamedParam in interface HibernateOperations
findByNamedQueryAndNamedParams
public <T> List<T> findByNamedQueryAndNamedParams(String namedQuery,
String[] paramNames,
Object[] values)
- Specified by:
findByNamedQueryAndNamedParams in interface HibernateOperations
get
public <T> T get(Class<T> entityType,
Serializable id)
- Specified by:
get in interface HibernateOperations
update
public void update(Object entity)
- Specified by:
update in interface HibernateOperations
save
public void save(Object entity)
- Specified by:
save in interface HibernateOperations
saveOrUpdate
public void saveOrUpdate(Object entity)
- Specified by:
saveOrUpdate in interface HibernateOperations
clearAllEntitiesForType
public <T> void clearAllEntitiesForType(Class<T> type)
- Specified by:
clearAllEntitiesForType in interface HibernateOperations
removeEntity
public <T> void removeEntity(T entity)
- Specified by:
removeEntity in interface HibernateOperations
flush
public void flush()
- Specified by:
flush in interface HibernateOperations
applyNamedParameterToQuery
protected void applyNamedParameterToQuery(org.hibernate.Query queryObject,
String paramName,
Object value)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
Copyright © 2011 OneBusAway. All Rights Reserved.