Package com.logicaldoc.core.metadata
Interface AttributeOptionDAO
-
- All Superinterfaces:
PersistentObjectDAO<AttributeOption>
- All Known Implementing Classes:
HibernateAttributeOptionDAO
public interface AttributeOptionDAO extends PersistentObjectDAO<AttributeOption>
DAO forAttributeOption
handling.- Since:
- 6.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleteBySetIdAndAttribute(long setId, String attribute)
This method deletes options.void
deleteOrphaned(long setId, Collection<String> currentAttributes)
This method deletes the orphaned options of a given templateList<AttributeOption>
findBySetIdAndAttribute(long setId, String attribute)
This finds all the options for a given attribute.-
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
-
deleteBySetIdAndAttribute
boolean deleteBySetIdAndAttribute(long setId, String attribute)
This method deletes options.- Parameters:
setId
- ID of the attribute setattribute
- Name of the attribute (optional)- Returns:
- if all went ok
-
deleteOrphaned
void deleteOrphaned(long setId, Collection<String> currentAttributes)
This method deletes the orphaned options of a given template- Parameters:
setId
- ID of the attribute setcurrentAttributes
- Names of the attributes of the actual template
-
findBySetIdAndAttribute
List<AttributeOption> findBySetIdAndAttribute(long setId, String attribute)
This finds all the options for a given attribute. The list is ordered by position asc.- Parameters:
setId
- The attribute set idattribute
- The attribute name (Optional)- Returns:
- The ordered list of options
-
-