T - the generic type of the entity objectPK - 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 object of a given Id with the given session object.
|
void |
delete(T object,
org.hibernate.Session session)
Deletes the given object from persistent storage in the database with the
given session object.
|
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 object.
|
org.hibernate.Query |
getQuery(String queryString)
Gets a query object from the given String.
|
org.hibernate.Query |
getQuery(String queryString,
org.hibernate.Session session)
Gets a query object from the given String with the given session object.
|
org.hibernate.Session |
getSession()
Gets the hibernate session.
|
T |
load(PK id,
org.hibernate.Session session)
Retrieve a persisted object with a given id from the database with the
given session object.
|
PK |
save(T object,
org.hibernate.Session session)
Save the given object.
|
void |
saveOrUpdate(T object,
org.hibernate.Session session)
Save or update the given transient object.
|
void |
setSession(org.hibernate.Session session)
Sets the hibernate session.
|
void |
update(T object,
org.hibernate.Session session)
Updates the given object with the given session object.
|
void delete(PK id, org.hibernate.Session session)
id - the idsession - the session to use for the operation.void delete(T object, org.hibernate.Session session)
object - the persistent objectsession - 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 object, org.hibernate.Session session)
object - the new instance to save.session - the session to use for the operation.void saveOrUpdate(T object, org.hibernate.Session session)
object - the transient object 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 object, org.hibernate.Session session)
object - the transient object to save or update.session - the session to use for the operation.Copyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.