public abstract class AbstractHibernatePersistenceService
extends org.bonitasoft.engine.persistence.AbstractDBPersistenceService
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Class<? extends org.bonitasoft.engine.persistence.PersistentObject>> |
interfaceToClassMapping |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHibernatePersistenceService(org.hibernate.SessionFactory sessionFactory,
List<Class<? extends org.bonitasoft.engine.persistence.PersistentObject>> classMapping,
Map<String,String> classAliasMappings,
boolean enableWordSearch,
Set<String> wordSearchExclusionMappings,
TechnicalLoggerService logger) |
|
AbstractHibernatePersistenceService(String name,
HibernateConfigurationProvider hbmConfigurationProvider,
Properties extraHibernateProperties,
char likeEscapeCharacter,
TechnicalLoggerService logger,
SequenceManager sequenceManager,
DataSource datasource,
boolean enableWordSearch,
Set<String> wordSearchExclusionMappings) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(List<Long> ids,
Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass) |
void |
delete(long id,
Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass) |
void |
delete(org.bonitasoft.engine.persistence.PersistentObject entity) |
void |
deleteAll(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass) |
void |
destroy() |
Map<String,String> |
getClassAliasMappings() |
protected org.hibernate.Session |
getSession(boolean useTenant) |
void |
insert(org.bonitasoft.engine.persistence.PersistentObject entity) |
void |
insertInBatch(List<org.bonitasoft.engine.persistence.PersistentObject> entities) |
<T extends org.bonitasoft.engine.persistence.PersistentObject> |
selectById(org.bonitasoft.engine.persistence.SelectByIdDescriptor<T> selectDescriptor) |
<T> List<T> |
selectList(org.bonitasoft.engine.persistence.SelectListDescriptor<T> selectDescriptor) |
<T> T |
selectOne(org.bonitasoft.engine.persistence.SelectOneDescriptor<T> selectDescriptor) |
protected void |
setId(org.bonitasoft.engine.persistence.PersistentObject entity) |
int |
update(String updateQueryName) |
int |
update(String updateQueryName,
Map<String,Object> inputParameters) |
void |
update(org.bonitasoft.engine.services.UpdateDescriptor updateDescriptor) |
getLikeEscapeCharacter, getName, getNumberOfEntities, getNumberOfEntities, getSequenceManager, getTenantId, isWordSearchEnabled, searchEntity, searchEntityprotected AbstractHibernatePersistenceService(org.hibernate.SessionFactory sessionFactory,
List<Class<? extends org.bonitasoft.engine.persistence.PersistentObject>> classMapping,
Map<String,String> classAliasMappings,
boolean enableWordSearch,
Set<String> wordSearchExclusionMappings,
TechnicalLoggerService logger)
throws ClassNotFoundException
ClassNotFoundExceptionpublic AbstractHibernatePersistenceService(String name, HibernateConfigurationProvider hbmConfigurationProvider, Properties extraHibernateProperties, char likeEscapeCharacter, TechnicalLoggerService logger, SequenceManager sequenceManager, DataSource datasource, boolean enableWordSearch, Set<String> wordSearchExclusionMappings) throws org.bonitasoft.engine.services.SPersistenceException, ClassNotFoundException
org.bonitasoft.engine.services.SPersistenceExceptionClassNotFoundExceptionprotected org.hibernate.Session getSession(boolean useTenant)
throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void delete(org.bonitasoft.engine.persistence.PersistentObject entity)
throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic int update(String updateQueryName) throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic int update(String updateQueryName, Map<String,Object> inputParameters) throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void deleteAll(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass) throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void insert(org.bonitasoft.engine.persistence.PersistentObject entity)
throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void insertInBatch(List<org.bonitasoft.engine.persistence.PersistentObject> entities) throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void update(org.bonitasoft.engine.services.UpdateDescriptor updateDescriptor)
throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic <T> T selectOne(org.bonitasoft.engine.persistence.SelectOneDescriptor<T> selectDescriptor)
throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic <T extends org.bonitasoft.engine.persistence.PersistentObject> T selectById(org.bonitasoft.engine.persistence.SelectByIdDescriptor<T> selectDescriptor)
throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionprotected void setId(org.bonitasoft.engine.persistence.PersistentObject entity)
throws org.bonitasoft.engine.services.SPersistenceException
setId in class org.bonitasoft.engine.persistence.AbstractDBPersistenceServiceorg.bonitasoft.engine.services.SPersistenceExceptionpublic <T> List<T> selectList(org.bonitasoft.engine.persistence.SelectListDescriptor<T> selectDescriptor) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void delete(long id,
Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass)
throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void delete(List<Long> ids, Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass) throws org.bonitasoft.engine.services.SPersistenceException
org.bonitasoft.engine.services.SPersistenceExceptionpublic void destroy()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.