Package com.logicaldoc.core.metadata
Interface AttributeSetDAO
-
- All Superinterfaces:
PersistentObjectDAO<AttributeSet>
- All Known Implementing Classes:
HibernateAttributeSetDAO
public interface AttributeSetDAO extends PersistentObjectDAO<AttributeSet>
This class is a DAO-service for attribute sets.- Version:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Attribute>
findAttributes(long tenantId, Long setId)
Gets the map of attributes defined in the given tenant or setAttributeSet
findByName(String name, long tenantId)
This method finds a attribute set by nameList<AttributeSet>
findByType(int type, long tenantId)
This method finds a attribute set by typeMap<Long,AttributeSet>
load(long tenantId)
Retrieves all the attribute sets in a tenant-
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
AttributeSet findByName(String name, long tenantId)
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
List<AttributeSet> findByType(int type, long tenantId)
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
Map<Long,AttributeSet> load(long tenantId)
Retrieves all the attribute sets in a tenant- Parameters:
tenantId
- The tenant- Returns:
- Map ID-AttributeSet
-
-