Package com.avoka.fc.core.dao
Class SubmissionPropertyDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.SubmissionPropertyDao
Provides a Dao for the SubmissionProperty entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPropertyValue
(Submission submission, String propertyName) Return the value of a submission propertygetPropertyValueForId
(Submission submission, long propertyId) Return the property value for the given submission and property idgetSubmissionProperties
(String propertyName, String propertyValue) Return the list of submission properties with a specified name and valuegetSubmissionPropertiesNameLike
(String propertyName, String propertyValue) Return the list of submission properties with a specified name and valuegetSubmissionsWithProperty
(String propertyName, String propertyValue) Return the list of submissions for which a submission property with a specified name and value existsvoid
setPropertyValue
(Submission submission, String propertyName, String propertyValue) Set a property related to a submission, creating the property if necessaryMethods 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
-
Constructor Details
-
SubmissionPropertyDao
public SubmissionPropertyDao()
-
-
Method Details
-
getPropertyValueForId
Return the property value for the given submission and property id- Parameters:
submission
- the submissionpropertyId
- the property id- Returns:
- the property value if found or null otherwise
- Since:
- 4.3.4
-
getPropertyValue
public String getPropertyValue(Submission submission, String propertyName) throws ApplicationException Return the value of a submission property- Parameters:
submission
- the non-null submissionpropertyName
- the non-empty property name- Returns:
- the property value
- Throws:
ApplicationException
- if multiple values exist for the given property
-
setPropertyValue
public void setPropertyValue(Submission submission, String propertyName, String propertyValue) throws ApplicationException Set a property related to a submission, creating the property if necessary- Parameters:
submission
- the non-null submissionpropertyName
- the non-empty property namepropertyValue
- the new property value- Throws:
ApplicationException
- if multiple values exist for the given property
-
getSubmissionsWithProperty
Return the list of submissions for which a submission property with a specified name and value exists- Parameters:
propertyName
- the name of the property to matchpropertyValue
- the property value- Returns:
- the list of matching submissions
-
getSubmissionProperties
Return the list of submission properties with a specified name and value- Parameters:
propertyName
- the name of the property to match (exactly)propertyValue
- the property value to match (exactly)- Returns:
- the list of matching submission properties
-
getSubmissionPropertiesNameLike
public List<SubmissionProperty> getSubmissionPropertiesNameLike(String propertyName, String propertyValue) Return the list of submission properties with a specified name and value- Parameters:
propertyName
- the name of the property to match (using a LIKE expression)propertyValue
- the property value to match (exactly)- Returns:
- the list of matching submission properties
-