public class HibernateDocumentTemplateDAO extends HibernatePersistentObjectDAO<DocumentTemplate> implements DocumentTemplateDAO
DocumentTemplateDAOentityClass, log, sessionFactory| Constructor and Description |
|---|
HibernateDocumentTemplateDAO() |
| Modifier and Type | Method and Description |
|---|---|
int |
countDocs(long id)
Counts the total number of documents using this template
|
boolean |
delete(long id)
This method deletes an entity.
|
List<DocumentTemplate> |
findAll()
Finds all entities in the database
|
DocumentTemplate |
findByName(String name)
This method finds a template by name.
|
List<DocumentTemplate> |
findByType(int type)
This method finds a template by type.
|
bulkUpdate, deleteAll, evict, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, initialize, isHsql, isMySQL, isOracle, isSqlServer, jdbcUpdate, jdbcUpdate, merge, prepareQuery, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, refresh, saveOrUpdate, setSessionFactory, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkUpdate, deleteAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, storepublic List<DocumentTemplate> findAll()
PersistentObjectDAOfindAll in interface PersistentObjectDAO<DocumentTemplate>findAll in class HibernatePersistentObjectDAO<DocumentTemplate>public DocumentTemplate findByName(String name)
DocumentTemplateDAOfindByName in interface DocumentTemplateDAOname - Name of the template.public boolean delete(long id)
PersistentObjectDAOdelete in interface PersistentObjectDAO<DocumentTemplate>delete in class HibernatePersistentObjectDAO<DocumentTemplate>id - ID of the entity which should be deleted.public int countDocs(long id)
DocumentTemplateDAOcountDocs in interface DocumentTemplateDAOid - The template IDpublic List<DocumentTemplate> findByType(int type)
DocumentTemplateDAOfindByType in interface DocumentTemplateDAOtype - Type of the template.Copyright © 2008-2014 Logical Objects. All Rights Reserved.