Package com.logicaldoc.core.metadata
Class HibernateAttributeSetDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<AttributeSet>
com.logicaldoc.core.metadata.HibernateAttributeSetDAO
- All Implemented Interfaces:
- AttributeSetDAO,- PersistentObjectDAO<AttributeSet>
@Repository("attributeSetDAO")
public class HibernateAttributeSetDAO
extends HibernatePersistentObjectDAO<AttributeSet>
implements AttributeSetDAO
Hibernate implementation of 
TemplateDAO- Since:
- 7.5.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete(long id, int code) This method deletes an entity and you can give a deletion codefindAll()Finds all entities in the databasefindAll(long tenantId) Finds all entities in a specific tenant.findAttributes(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 typevoidinitialize(AttributeSet attributeSet) Doesn't do anything by defaultload(long tenantId) Retrieves all the attribute sets in a tenantvoidstore(AttributeSet set) This method persists the entity objectMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, setSessionFactoryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString
- 
Constructor Details- 
HibernateAttributeSetDAOpublic HibernateAttributeSetDAO()
 
- 
- 
Method Details- 
findAllDescription copied from interface:PersistentObjectDAOFinds all entities in the database- Specified by:
- findAllin interface- PersistentObjectDAO<AttributeSet>
- Overrides:
- findAllin class- HibernatePersistentObjectDAO<AttributeSet>
- Returns:
- The list of all entities
- Throws:
- PersistenceException- Error in the database
 
- 
findAllDescription copied from interface:PersistentObjectDAOFinds all entities in a specific tenant.- Specified by:
- findAllin interface- PersistentObjectDAO<AttributeSet>
- Overrides:
- findAllin class- HibernatePersistentObjectDAO<AttributeSet>
- Parameters:
- tenantId- Identifier of the tenant to search in
- Returns:
- The list of all entities
- Throws:
- PersistenceException- Error in the database
 
- 
findByNameDescription copied from interface:AttributeSetDAOThis method finds a attribute set by name- Specified by:
- findByNamein interface- AttributeSetDAO
- Parameters:
- name- Name of the attribute set
- tenantId- ID of the owning tenant
- Returns:
- AttributeSet with given name
- Throws:
- PersistenceException- Error in the database
 
- 
deleteDescription copied from interface:PersistentObjectDAOThis method deletes an entity and you can give a deletion code- Specified by:
- deletein interface- PersistentObjectDAO<AttributeSet>
- Overrides:
- deletein class- HibernatePersistentObjectDAO<AttributeSet>
- Parameters:
- id- ID of the entity which should be deleted
- code- Deletion code
- Throws:
- PersistenceException- raised in case of errors in the database
 
- 
findByTypeDescription copied from interface:AttributeSetDAOThis method finds a attribute set by type- Specified by:
- findByTypein interface- AttributeSetDAO
- Parameters:
- type- Type of the attribute set
- tenantId- ID of the owning tenant
- Returns:
- AttributeSet with given type
- Throws:
- PersistenceException- Error in the database
 
- 
storeDescription copied from interface:PersistentObjectDAOThis method persists the entity object- Specified by:
- storein interface- PersistentObjectDAO<AttributeSet>
- Overrides:
- storein class- HibernatePersistentObjectDAO<AttributeSet>
- Parameters:
- set- entity to be stored
- Throws:
- PersistenceException- raised in case of errors in the database
 
- 
loadDescription copied from interface:AttributeSetDAORetrieves all the attribute sets in a tenant- Specified by:
- loadin interface- AttributeSetDAO
- Parameters:
- tenantId- The tenant
- Returns:
- Map ID-AttributeSet
- Throws:
- PersistenceException- Error in the database
 
- 
findAttributesDescription copied from interface:AttributeSetDAOGets the map of attributes defined in the given tenant or set- Specified by:
- findAttributesin interface- AttributeSetDAO
- Parameters:
- tenantId- The tenant ID
- setId- Optional set ID return map of attributes
- Throws:
- PersistenceException- Error in the database
 
- 
initializeDescription copied from class:HibernatePersistentObjectDAODoesn't do anything by default- Specified by:
- initializein interface- PersistentObjectDAO<AttributeSet>
- Overrides:
- initializein class- HibernatePersistentObjectDAO<AttributeSet>
- Parameters:
- attributeSet- The entity to be initialised
- Throws:
- PersistenceException- Error in the database
 
 
-