Package com.logicaldoc.stamp
Class HibernateStampDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<Stamp>
-
- com.logicaldoc.stamp.HibernateStampDAO
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(long stampId, int code)StampfindByName(String name, long tenantId)Finds the stamp with the given nameStampfindByNameAndUser(String name, long userId)Finds the stamp with the given name and userList<Stamp>findByUser(long userId, boolean enabledOnly)Finds the stamps for the given uservoidinitialize(Stamp stamp)-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, 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, bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
delete
public void delete(long stampId, int code) throws com.logicaldoc.core.PersistenceException
-
findByName
public Stamp findByName(String name, long tenantId)
Description copied from interface:StampDAOFinds the stamp with the given name- Specified by:
findByNamein interfaceStampDAO- Parameters:
name- name of the stamptenantId- identifier of the tenant- Returns:
- the found stamp
-
findByUser
public List<Stamp> findByUser(long userId, boolean enabledOnly)
Description copied from interface:StampDAOFinds the stamps for the given user- Specified by:
findByUserin interfaceStampDAO- Parameters:
userId- identifier of the userenabledOnly- if just the enabled stamps must be searched- Returns:
- list of stamps
-
initialize
public void initialize(Stamp stamp)
-
findByNameAndUser
public Stamp findByNameAndUser(String name, long userId) throws com.logicaldoc.core.PersistenceException
Description copied from interface:StampDAOFinds the stamp with the given name and user- Specified by:
findByNameAndUserin interfaceStampDAO- Parameters:
name- name of the stampuserId- identifier of the user- Returns:
- the found stamp
- Throws:
com.logicaldoc.core.PersistenceException- error at data layer
-
-