Package com.logicaldoc.robot
Class HibernateRobotDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Robot>
com.logicaldoc.robot.HibernateRobotDAO
public class HibernateRobotDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<Robot>
implements RobotDAO
Hibernate implementation of
RobotDAO
- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(long id, int code) findByName
(String name, long tenantId) Finds the robot by it's nameMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, 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, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, store
-
Method Details
-
findByName
Description copied from interface:RobotDAO
Finds the robot by it's name- Specified by:
findByName
in interfaceRobotDAO
- Parameters:
name
- The nametenantId
- Identifier of the tenant- Returns:
- The found robot
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
delete
public void delete(long id, int code) throws com.logicaldoc.core.PersistenceException
-