Package com.logicaldoc.stamp
Class HibernateStampDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Stamp>
com.logicaldoc.stamp.HibernateStampDAO
public class HibernateStampDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<Stamp>
implements StampDAO
Hibernate implementation of
StampDAO
- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(long stampId, int code) findByName
(String name, long tenantId) Finds the stamp with the given namefindByNameAndUser
(String name, long userId) Finds the stamp with the given name and userfindByUser
(long userId, boolean enabledOnly) Finds the stamps for the given uservoid
initialize
(Stamp stamp) Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, setSessionFactory, store
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
-
Method Details
-
delete
public void delete(long stampId, int code) throws com.logicaldoc.core.PersistenceException -
findByName
Description copied from interface:StampDAO
Finds the stamp with the given name- Specified by:
findByName
in interfaceStampDAO
- Parameters:
name
- name of the stamptenantId
- identifier of the tenant- Returns:
- the found stamp
-
findByUser
Description copied from interface:StampDAO
Finds the stamps for the given user- Specified by:
findByUser
in interfaceStampDAO
- Parameters:
userId
- identifier of the userenabledOnly
- if just the enabled stamps must be searched- Returns:
- list of stamps
-
initialize
-
findByNameAndUser
public Stamp findByNameAndUser(String name, long userId) throws com.logicaldoc.core.PersistenceException Description copied from interface:StampDAO
Finds the stamp with the given name and user- Specified by:
findByNameAndUser
in interfaceStampDAO
- Parameters:
name
- name of the stampuserId
- identifier of the user- Returns:
- the found stamp
- Throws:
com.logicaldoc.core.PersistenceException
- error at data layer
-