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, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, 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
- Throws:
PersistenceException
- Error in the database
-
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
- Throws:
PersistenceException
- Error in the database
-
load
Retrieves all the attribute sets in a tenant- Parameters:
tenantId
- The tenant- Returns:
- Map ID-AttributeSet
- Throws:
PersistenceException
- Error in the database
-
findAttributes
Gets the map of attributes defined in the given tenant or set- Parameters:
tenantId
- The tenant IDsetId
- Optional set ID return map of attributes- Throws:
PersistenceException
- Error in the database
-