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 SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier 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.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, 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, queryForString, store
- 
Method Details- 
findByNameThis method finds a attribute set by name- Parameters:
- name- Name of the attribute set
- tenantId- ID of the owning tenant
- Returns:
- AttributeSet with given name
- Throws:
- PersistenceException- Error in the database
 
- 
findByTypeThis method finds a attribute set by type- Parameters:
- type- Type of the attribute set
- tenantId- ID of the owning tenant
- Returns:
- AttributeSet with given type
- Throws:
- PersistenceException- Error in the database
 
- 
loadRetrieves all the attribute sets in a tenant- Parameters:
- tenantId- The tenant
- Returns:
- Map ID-AttributeSet
- Throws:
- PersistenceException- Error in the database
 
- 
findAttributesGets the map of attributes defined in the given tenant or set- Parameters:
- tenantId- The tenant ID
- setId- Optional set ID return map of attributes
- Throws:
- PersistenceException- Error in the database
 
 
-