Class HibernateFormDAO

java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Form>
com.logicaldoc.form.HibernateFormDAO
All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<Form>, FormDAO

public class HibernateFormDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<Form> implements FormDAO
Hibernate implementation of FormDAO
Since:
8.7
Author:
Marco Meschieri - LogicalDOC
  • Field Summary

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

    ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(long formId, int code)
     
    Finds the form with the given form identifier
    findByName(String name, long tenantId)
    Finds the form with the given name
    void
     
    void
    setSequenceDao(com.logicaldoc.core.sequence.SequenceDAO sequenceDao)
     
    void
    store(Form form)
     

    Methods 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, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, setSessionFactory

    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, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString
  • Method Details

    • delete

      public void delete(long formId, int code) throws com.logicaldoc.core.PersistenceException
      Specified by:
      delete in interface com.logicaldoc.core.PersistentObjectDAO<Form>
      Overrides:
      delete in class com.logicaldoc.core.HibernatePersistentObjectDAO<Form>
      Throws:
      com.logicaldoc.core.PersistenceException
    • findByName

      public Form findByName(String name, long tenantId)
      Description copied from interface: FormDAO
      Finds the form with the given name
      Specified by:
      findByName in interface FormDAO
      Parameters:
      name - name of the form
      tenantId - identifier of the tenant
      Returns:
      the found form
    • findByFormId

      public Form findByFormId(String formId)
      Description copied from interface: FormDAO
      Finds the form with the given form identifier
      Specified by:
      findByFormId in interface FormDAO
      Parameters:
      formId - alternate identifier of the form
      Returns:
      the found form
    • store

      public void store(Form form) throws com.logicaldoc.core.PersistenceException
      Specified by:
      store in interface com.logicaldoc.core.PersistentObjectDAO<Form>
      Overrides:
      store in class com.logicaldoc.core.HibernatePersistentObjectDAO<Form>
      Throws:
      com.logicaldoc.core.PersistenceException
    • initialize

      public void initialize(Form form)
      Specified by:
      initialize in interface com.logicaldoc.core.PersistentObjectDAO<Form>
      Overrides:
      initialize in class com.logicaldoc.core.HibernatePersistentObjectDAO<Form>
    • setSequenceDao

      public void setSequenceDao(com.logicaldoc.core.sequence.SequenceDAO sequenceDao)