public class HibernateGenericDAO extends HibernatePersistentObjectDAO<Generic> implements GenericDAO
GenericDAO
entityClass, 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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
public boolean delete(long genericId)
PersistentObjectDAO
delete
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)
GenericDAO
findByAlternateKey
in interface GenericDAO
type
- The exact typesubtype
- The exact subtypepublic List<Generic> findByTypeAndSubtype(String type, String subtype, Long qualifier)
GenericDAO
findByTypeAndSubtype
in interface GenericDAO
type
- 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)
HibernatePersistentObjectDAO
initialize
in interface PersistentObjectDAO<Generic>
initialize
in class HibernatePersistentObjectDAO<Generic>
generic
- The entity to be initialisedCopyright © 2008-2014 Logical Objects. All Rights Reserved.