public class HibernateDocumentTemplateDAO extends HibernatePersistentObjectDAO<DocumentTemplate> implements DocumentTemplateDAO
DocumentTemplateDAO
entityClass, 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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, deleteAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
public List<DocumentTemplate> findAll()
PersistentObjectDAO
findAll
in interface PersistentObjectDAO<DocumentTemplate>
findAll
in class HibernatePersistentObjectDAO<DocumentTemplate>
public DocumentTemplate findByName(String name)
DocumentTemplateDAO
findByName
in interface DocumentTemplateDAO
name
- Name of the template.public boolean delete(long id)
PersistentObjectDAO
delete
in interface PersistentObjectDAO<DocumentTemplate>
delete
in class HibernatePersistentObjectDAO<DocumentTemplate>
id
- ID of the entity which should be deleted.public int countDocs(long id)
DocumentTemplateDAO
countDocs
in interface DocumentTemplateDAO
id
- The template IDpublic List<DocumentTemplate> findByType(int type)
DocumentTemplateDAO
findByType
in interface DocumentTemplateDAO
type
- Type of the template.Copyright © 2008-2014 Logical Objects. All Rights Reserved.