Package com.logicaldoc.core.metadata
Interface TemplateDAO
-
- All Superinterfaces:
PersistentObjectDAO<Template>
- All Known Implementing Classes:
HibernateTemplateDAO
public interface TemplateDAO extends PersistentObjectDAO<Template>
This class is a DAO-service for document templates.- Version:
- 1.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
countDocs(long id)
Counts the total number of documents using this templateTemplate
findByName(String name, long tenantId)
This method finds a template by nameList<Template>
findByType(int type, long tenantId)
This method finds a template by type-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
findByName
Template findByName(String name, long tenantId)
This method finds a template by name- Parameters:
name
- Name of the templatetenantId
- ID of the owning tenant- Returns:
- Template with given name
-
countDocs
int countDocs(long id)
Counts the total number of documents using this template- Parameters:
id
- The template ID- Returns:
- the documents count
-
-