Package com.avoka.fc.core.dao
Class MetadataListValueDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.MetadataListValueDao
-
public class MetadataListValueDao extends AbstractDao
Provides a DAO for the MetadataListValue entity.- See Also:
MetadataListValue
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description MetadataListValueDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteCascading(String listValueId)
Delete a metadata list value and all its descendants.List<MetadataListValue>
getChildValues(String parentId)
Return the list of metadata list values with a given parent, ordered by sequence and valueList<MetadataListValue>
getChildValues(List<MetadataListValue> parentValues)
Return the list of metadata list values whose parent is one of a set of metadata list values, ordered by sequence and valueList<MetadataListValue>
getListValuesForTag(String tagId)
Return all metadata list values for a metadata tag, ordered by sequence and valueMetadataListValue
getMetadataListValue(String listValueId)
Return the metadata list value with the specified OIDMetadataListValue
getMetadataListValue(String value, String tagId)
Return the metadata list value with a specific value for a given tagList<MetadataListValue>
getRootValues(String tagId)
The list of metadata list values for a specific metadata tag who have no parent, ordered by sequence and valueList<MetadataListValue>
getValueTree(String listValueId)
Return a list of all metadata list values who are part of the list value tree with the given value as its root-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
getMetadataListValue
public MetadataListValue getMetadataListValue(String listValueId)
Return the metadata list value with the specified OID- Parameters:
listValueId
- the OID- Returns:
- the matching metadata list value, or null if not found
-
getMetadataListValue
public MetadataListValue getMetadataListValue(String value, String tagId)
Return the metadata list value with a specific value for a given tag- Parameters:
value
- the list valuetagId
- the OID of the metadata tag- Returns:
- the matching metadata list value
-
getListValuesForTag
public List<MetadataListValue> getListValuesForTag(String tagId)
Return all metadata list values for a metadata tag, ordered by sequence and value- Parameters:
tagId
- the OID of the metadata tag- Returns:
- the list of metadata list values defined for the tag
-
getValueTree
public List<MetadataListValue> getValueTree(String listValueId)
Return a list of all metadata list values who are part of the list value tree with the given value as its root- Parameters:
listValueId
- the OID of a metadata list value- Returns:
- a list containing all metadata list values who are (direct or indirect) children of the value, as well as the value itself
-
deleteCascading
public void deleteCascading(String listValueId)
Delete a metadata list value and all its descendants. This method executes a commit.- Parameters:
listValueId
- the OID of the metadata list value
-
getChildValues
public List<MetadataListValue> getChildValues(String parentId)
Return the list of metadata list values with a given parent, ordered by sequence and value- Parameters:
parentId
- the OID of the parent list value- Returns:
- the list of child metadata list values
-
getChildValues
public List<MetadataListValue> getChildValues(List<MetadataListValue> parentValues)
Return the list of metadata list values whose parent is one of a set of metadata list values, ordered by sequence and value- Parameters:
parentValues
- the parent metadata list value objects- Returns:
- the list of child metadata list values
-
getRootValues
public List<MetadataListValue> getRootValues(String tagId)
The list of metadata list values for a specific metadata tag who have no parent, ordered by sequence and value- Parameters:
tagId
- the OID of the metadata tag- Returns:
- the list of root list values
-
-