|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.derquinsej.hib3.AbstractDAOImpl
net.sf.derquinsej.hib3.GeneralDAOImpl
net.sf.derquinsej.hib3.RepositoryImpl
public class RepositoryImpl
Implementation of the General DAO.
| Constructor Summary | |
|---|---|
RepositoryImpl()
Constructs the DAO |
|
RepositoryImpl(org.hibernate.SessionFactory sessionFactory)
Constructs the DAO |
|
| Method Summary | ||
|---|---|---|
void |
evict(Object object)
Remove the provided instance from the session cache. |
|
|
first(Class<T> type,
org.hibernate.Query query)
Returns the first result of a query returning instances of a specified class. |
|
org.hibernate.Query |
getNamedQuery(String queryName)
Returns a externally defined named query. |
|
|
list(Class<T> type,
org.hibernate.Query query)
Returns the results of a query as a list of a specified class. |
|
|
list(Class<T> type,
String queryName,
Object value)
Returns the results of a named query with a single parameter as a list of a specified class. |
|
|
unique(Class<T> type,
org.hibernate.Query query)
Returns the unique result of a query returning instances of a specified class. |
|
|
unique(Class<T> type,
String queryName,
Object value)
Returns the unique result of a named query with a single parameter returning instances of a specified class. |
|
| Methods inherited from class net.sf.derquinsej.hib3.GeneralDAOImpl |
|---|
delete, deleteById, findAll, findByCriteria, findById, newCriteria, save, saveOrUpdate, update |
| Methods inherited from class net.sf.derquinsej.hib3.AbstractDAOImpl |
|---|
clear, flush, getSession, setSessionFactory, sync |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.derquinsej.hib3.Repository |
|---|
delete, deleteById, findAll, findById, save, saveOrUpdate, update |
| Methods inherited from interface net.sf.derquinsej.hib3.DAO |
|---|
clear, flush, sync |
| Constructor Detail |
|---|
public RepositoryImpl(org.hibernate.SessionFactory sessionFactory)
sessionFactory - Hibernate Session factory.public RepositoryImpl()
| Method Detail |
|---|
public void evict(Object object)
AbstractDAOImpl
evict in interface Repositoryevict in class AbstractDAOImplobject - The persistent instance to remove.
public <T> T first(Class<T> type,
org.hibernate.Query query)
AbstractDAOImpl
first in interface Repositoryfirst in class AbstractDAOImpltype - Entity type.query - Query to execute.
null if there are no results.public org.hibernate.Query getNamedQuery(String queryName)
AbstractDAOImpl
getNamedQuery in interface RepositorygetNamedQuery in class AbstractDAOImplqueryName - Query name.
public <T> List<T> list(Class<T> type,
org.hibernate.Query query)
AbstractDAOImpl
list in interface Repositorylist in class AbstractDAOImpltype - Entity type.query - Query to execute.
public <T> List<T> list(Class<T> type,
String queryName,
Object value)
AbstractDAOImpl
list in interface Repositorylist in class AbstractDAOImpltype - Entity type.queryName - Query name.value - Non-null parameter value.
public <T> T unique(Class<T> type,
org.hibernate.Query query)
AbstractDAOImpl
unique in interface Repositoryunique in class AbstractDAOImpltype - Entity type.query - Query to execute.
null if there are no results.
public <T> T unique(Class<T> type,
String queryName,
Object value)
AbstractDAOImpl
unique in interface Repositoryunique in class AbstractDAOImpltype - Entity type.queryName - Query name.value - Non-null parameter value.
null if there are no results.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||