public class HibernatePersistorService extends Object implements IPersistorService
| Constructor and Description |
|---|
HibernatePersistorService() |
public void init()
init in interface IApplicationLifecyclepublic void shutdown()
shutdown in interface IApplicationLifecyclepublic ApplicationLifecyclePriority getLifecyclePriority()
getLifecyclePriority in interface IApplicationLifecyclepublic void beforeRequest()
beforeRequest in interface IRequestLifecyclepublic void afterResponse()
afterResponse in interface IRequestLifecyclepublic void setInitData(List<Class> entities, String prefix)
setInitData in interface IPersistorServicepublic void startTrx()
startTrx in interface IPersistorServicepublic void startTrx(boolean forceNew)
startTrx in interface IPersistorServicepublic void assertActiveTrx()
assertActiveTrx in interface IPersistorServicepublic void commitOrRollback()
commitOrRollback in interface IPersistorServicepublic void rollback()
rollback in interface IPersistorServicepublic void endSession()
endSession in interface IPersistorServicepublic void saveOrUpdate(Object obj)
saveOrUpdate in interface IPersistorServicepublic Serializable save(Object obj)
save in interface IPersistorServicepublic void update(Object obj)
update in interface IPersistorServicepublic Object updateFields(Object obj, String... fields)
updateFields in interface IPersistorServicepublic void persist(Object obj)
persist in interface IPersistorServicepublic <T> T merge(T obj)
merge in interface IPersistorServicepublic void delete(Class entity, Serializable id)
delete in interface IPersistorServicepublic void delete(Object obj)
delete in interface IPersistorServicepublic void executeUpdate(String simpleQuery)
executeUpdate in interface IPersistorServicepublic <T> T get(Class<T> entity, Serializable id)
get in interface IPersistorServicepublic <T> T load(Class<T> entity, Serializable id, ELockMode lockMode)
load in interface IPersistorServicepublic <T> List<T> list(Class<T> entity)
list in interface IPersistorServicepublic <T> List<T> list(String simpleQuery)
list in interface IPersistorServicepublic void refresh(Object entity)
refresh in interface IPersistorServicepublic IQueryBuilder createQueryBuilder()
createQueryBuilder in interface IPersistorServicepublic void generateSchemaDiff()
generateSchemaDiff in interface IPersistorServicepublic void executeScript(String script, String delimiter)
executeScript in interface IPersistorServicepublic Connection createSqlConnection() throws SQLException
createSqlConnection in interface IPersistorServiceSQLExceptionCopyright © 2019. All rights reserved.