Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(long formId, int code)  
      Form findByFormId​(String formId)
      Finds the form with the given form identifier
      Form findById​(long id)  
      Form findByName​(String name, long tenantId)
      Finds the form with the given name
      void initialize​(Form form)  
      void setSequenceDao​(com.logicaldoc.core.sequence.SequenceDAO sequenceDao)  
      boolean store​(Form form)  
      • Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString
    • Method Detail

      • delete

        public boolean delete​(long formId,
                              int code)
        Specified by:
        delete in interface com.logicaldoc.core.PersistentObjectDAO<Form>
        Overrides:
        delete in class com.logicaldoc.core.HibernatePersistentObjectDAO<Form>
      • 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
      • findById

        public Form findById​(long id)
                      throws com.logicaldoc.core.PersistenceException
        Specified by:
        findById in interface com.logicaldoc.core.PersistentObjectDAO<Form>
        Overrides:
        findById in class com.logicaldoc.core.HibernatePersistentObjectDAO<Form>
        Throws:
        com.logicaldoc.core.PersistenceException
      • store

        public boolean 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)