public class HibernateGenericDAO extends HibernatePersistentObjectDAO<Generic> implements GenericDAO
GenericDAOentityClass, log, sessionFactory| Constructor and Description |
|---|
HibernateGenericDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(long genericId)
This method deletes an entity.
|
Generic |
findByAlternateKey(String type,
String subtype,
Long qualifier)
Finds a Generic by it's alternate key
|
List<Generic> |
findByTypeAndSubtype(String type,
String subtype,
Long qualifier)
Finds a Generic by it's alternate key.
|
void |
initialize(Generic generic)
Doesn't do anything by default
|
bulkUpdate, deleteAll, evict, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, isHsql, isMySQL, isOracle, isSqlServer, jdbcUpdate, jdbcUpdate, merge, prepareQuery, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, refresh, saveOrUpdate, setSessionFactory, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkUpdate, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, storepublic boolean delete(long genericId)
PersistentObjectDAOdelete in interface PersistentObjectDAO<Generic>delete in class HibernatePersistentObjectDAO<Generic>genericId - ID of the entity which should be deleted.public Generic findByAlternateKey(String type, String subtype, Long qualifier)
GenericDAOfindByAlternateKey in interface GenericDAOtype - The exact typesubtype - The exact subtypepublic List<Generic> findByTypeAndSubtype(String type, String subtype, Long qualifier)
GenericDAOfindByTypeAndSubtype in interface GenericDAOtype - The type(you can use like jollies and can be null)subtype - The sub-type(you can use like jollies and can be null)public void initialize(Generic generic)
HibernatePersistentObjectDAOinitialize in interface PersistentObjectDAO<Generic>initialize in class HibernatePersistentObjectDAO<Generic>generic - The entity to be initialisedCopyright © 2008-2014 Logical Objects. All Rights Reserved.