T - the generic type of the entity entityPK - the generic type of the primary keypublic interface SessionFactoryDao<T extends BaseEntity<PK>,PK extends Serializable> extends GenericDao<T,PK>
SessionFactoryDao.| Modifier and Type | Method and Description |
|---|---|
void |
delete(PK id,
org.hibernate.Session session)
Deletes an entity of a given Id with the given session entity.
|
void |
delete(T entity,
org.hibernate.Session session)
Deletes the given entity from persistent storage in the database with the given session
entity.
|
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.
|
T |
get(PK id,
org.hibernate.Session session)
Loads the given Object with the given session entity.
|
org.hibernate.Query |
getQuery(String queryString)
Gets a query entity from the given String.
|
org.hibernate.Query |
getQuery(String queryString,
org.hibernate.Session session)
Gets a query entity from the given String with the given session entity.
|
org.hibernate.Session |
getSession()
Gets the hibernate session.
|
T |
load(PK id,
org.hibernate.Session session)
Retrieve a persisted entity with a given id from the database with the given session entity.
|
PK |
save(T entity,
org.hibernate.Session session)
Save the given entity.
|
void |
saveOrUpdate(T entity,
org.hibernate.Session session)
Save or update the given transient entity.
|
void |
setSession(org.hibernate.Session session)
Sets the hibernate session.
|
void |
update(T entity,
org.hibernate.Session session)
Updates the given entity with the given session entity.
|
void delete(PK id, org.hibernate.Session session)
id - the idsession - the session to use for the operation.void delete(T entity, org.hibernate.Session session)
entity - the persistent entitysession - the session to use for the operation.List<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 propertyT get(PK id, org.hibernate.Session session)
id - Id to loadsession - the session to use for the operation.org.hibernate.Query getQuery(String queryString)
queryString - the hql query as Stringorg.hibernate.Query getQuery(String queryString, org.hibernate.Session session)
queryString - the hql query as Stringsession - the session to use for the operation.org.hibernate.Session getSession()
T load(PK id, org.hibernate.Session session)
id - the idsession - the session to use for the operation.PK save(T entity, org.hibernate.Session session)
entity - the new instance to save.session - the session to use for the operation.void saveOrUpdate(T entity, org.hibernate.Session session)
entity - the transient entity to save or update.session - the session to use for the operation.void setSession(org.hibernate.Session session)
session - The hibernate session to set.void update(T entity, org.hibernate.Session session)
entity - the transient entity to save or update.session - the session to use for the operation.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.