Package com.logicaldoc.core.metadata
Interface AttributeSetDAO
- All Superinterfaces:
PersistentObjectDAO<AttributeSet>
- All Known Implementing Classes:
HibernateAttributeSetDAO
This class is a DAO-service for attribute sets.
- Version:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionfindAttributes
(long tenantId, Long setId) Gets the map of attributes defined in the given tenant or setfindByName
(String name, long tenantId) This method finds a attribute set by namefindByType
(int type, long tenantId) This method finds a attribute set by typeload
(long tenantId) Retrieves all the attribute sets in a tenantMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
-
Method Details
-
findByName
This method finds a attribute set by name- Parameters:
name
- Name of the attribute settenantId
- ID of the owning tenant- Returns:
- AttributeSet with given name
-
findByType
This method finds a attribute set by type- Parameters:
type
- Type of the attribute settenantId
- ID of the owning tenant- Returns:
- AttributeSet with given type
-
load
Retrieves all the attribute sets in a tenant- Parameters:
tenantId
- The tenant- Returns:
- Map ID-AttributeSet
-
findAttributes
Gets the map of attributes defined in the given tenant or set- Parameters:
tenantId
- The tenant IDsetId
- Optional set ID- Returns:
- map of attributes
-