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
-
public class SubmissionPropertyDao extends AbstractDao
Provides a Dao for the SubmissionProperty entity.- See Also:
SubmissionProperty
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description SubmissionPropertyDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPropertyValue(Submission submission, String propertyName)
Return the value of a submission propertyString
getPropertyValueForId(Submission submission, long propertyId)
Return the property value for the given submission and property idList<SubmissionProperty>
getSubmissionProperties(String propertyName, String propertyValue)
Return the list of submission properties with a specified name and valueList<SubmissionProperty>
getSubmissionPropertiesNameLike(String propertyName, String propertyValue)
Return the list of submission properties with a specified name and valueList<Submission>
getSubmissionsWithProperty(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 necessary-
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
-
getPropertyValueForId
public String getPropertyValueForId(Submission submission, long propertyId)
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
public List<Submission> getSubmissionsWithProperty(String propertyName, String propertyValue)
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
public List<SubmissionProperty> getSubmissionProperties(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 (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
-
-