T - the type of the domain objectPK - the type of the primary key from the domain objectpublic interface SessionFactoryBusinessService<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable> extends BusinessService<T,PK>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAndFlush(List<T> objects)
Delete all persistent objects in the given list and flush.
|
void |
deleteAndFlush(PK id)
Deletes an object of a given Id and flush after.
|
void |
deleteAndFlush(T object)
Delete and flush.
|
List<T> |
find(String hqlQuery,
String[] params,
Object[] paramValues,
org.hibernate.type.Type[] paramTypes,
Integer start,
Integer count)
Returns a list from the result from the given hqlquery.
|
List<T> |
findByCriteria(org.hibernate.criterion.Criterion... criterion)
Hibernate wrapper.
|
List<T> |
findByExample(T exampleInstance,
String... excludeProperty)
Find by example.
|
void |
flush()
Flush.
|
org.hibernate.Session |
getSession()
Gets the hibernate session.
|
T |
mergeAndFlush(T object)
Merge and flush.
|
List<PK> |
saveAndFlush(List<T> objects)
Save all given objects into database and flush.
|
PK |
saveAndFlush(T object)
Save the given object into database and flush.
|
void |
saveOrUpdateAndFlush(List<T> objects)
Save or update all given objects into database and flush.
|
void |
saveOrUpdateAndFlush(T object)
Save or update the given object into database and flush.
|
void |
setSession(org.hibernate.Session session)
Sets the hibernate session.
|
void deleteAndFlush(List<T> objects)
objects - the objects to deletevoid deleteAndFlush(PK id)
id - the id to deletevoid deleteAndFlush(T object)
object - the objectList<T> find(String hqlQuery, String[] params, Object[] paramValues, org.hibernate.type.Type[] paramTypes, Integer start, Integer count)
hqlQuery - the hql query.params - Array from the parameter for the query.paramValues - Array from the values from the parameters for the query.paramTypes - Array which defines what kind of type the the parameter is.start - Defines from where to start the result.count - Defines how much rows to get from the query.List<T> findByCriteria(org.hibernate.criterion.Criterion... criterion)
criterion - the criterionList<T> findByExample(T exampleInstance, String... excludeProperty)
exampleInstance - the example instanceexcludeProperty - the exclude propertyvoid flush()
org.hibernate.Session getSession()
void setSession(org.hibernate.Session session)
session - The hibernate session to set.T mergeAndFlush(T object)
object - the objectList<PK> saveAndFlush(List<T> objects)
objects - the objects to save.PK saveAndFlush(T object)
object - the object to save.void saveOrUpdateAndFlush(List<T> objects)
objects - the objects to save or update.void saveOrUpdateAndFlush(T object)
object - the object to save or update.Copyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.