Package com.avoka.fc.core.dao
Class SubmissionHistoryDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.SubmissionHistoryDao
-
public class SubmissionHistoryDao extends AbstractDao
Provides a DAO for the SubmissionHistory entity.- See Also:
SubmissionHistory
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description SubmissionHistoryDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionHistory
getMostRecentHistoryWithStatus(Submission submission, String formStatus)
Search the submission for the most recent submission history with the given form status.SubmissionHistory
getSubmissionHistory(Object id)
Return the submission history entry with the specified OID-
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
-
getSubmissionHistory
public SubmissionHistory getSubmissionHistory(Object id)
Return the submission history entry with the specified OID- Parameters:
id
- the OID- Returns:
- the matching submission history entry, or null if not found
-
getMostRecentHistoryWithStatus
public SubmissionHistory getMostRecentHistoryWithStatus(Submission submission, String formStatus)
Search the submission for the most recent submission history with the given form status.- Parameters:
submission
- the submission (required)formStatus
- the form status to look for (required, one ofSubmission.FORM_STATUS_VALUES
)- Returns:
- the matching submission history, or null if none was found
- Since:
- 4.0.0
-
-