Package com.avoka.fc.core.dao
Class SubmissionExtractDataDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.SubmissionExtractDataDao
Provides a DAO for the SubmissionExtractData.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The "deleted_flag" map parameter name.static final String
The "device_type" map parameter name.static final String
The "form_status" map parameter name.static final String
The "json_data" map parameter name.static final String
The "receipt_number" map parameter name.static final String
The "submission_oid" map parameter name.static final String
The "submit_key" map parameter name.static final String
The "time_submission" map parameter name.static final String
The "tracking_code" map parameter name.Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSubmissionExtractData
(TemplateVersion version, Date startDate, Date endDate, boolean oldestFirst) Returns the submission extract data map based on the template versiongetSubmissionExtractData
(TemplateVersion version, Set<String> formStatusValues, Date startDate, Date endDate, boolean oldestFirst) Return the submission data extract maps (one map per submission containing all data extract key-value pairs as well as some submission information) for a template version, filtered by submission form status and a time period.getSubmissionExtractDataNames
(SchemaSeed schemaSeed) Returns the submission extract data column names for UI table.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
-
Field Details
-
DELETED_FLAG
The "deleted_flag" map parameter name.- See Also:
-
SUBMIT_KEY
The "submit_key" map parameter name.- See Also:
-
SUBMISSION_OID
The "submission_oid" map parameter name.- See Also:
-
TIME_SUBMISSION
The "time_submission" map parameter name.- See Also:
-
TRACKING_CODE
The "tracking_code" map parameter name.- See Also:
-
RECEIPT_NUMBER
The "receipt_number" map parameter name.- See Also:
-
FORM_STATUS
The "form_status" map parameter name.- See Also:
-
DEVICE_TYPE
The "device_type" map parameter name.- See Also:
-
JSON_DATA
The "json_data" map parameter name.- See Also:
-
-
Constructor Details
-
SubmissionExtractDataDao
public SubmissionExtractDataDao()
-
-
Method Details
-
getSubmissionExtractDataNames
Returns the submission extract data column names for UI table.- Parameters:
schemaSeed
- the schema seed- Returns:
- the submission extract data names
-
getSubmissionExtractData
public List<Map<String,Object>> getSubmissionExtractData(TemplateVersion version, Date startDate, Date endDate, boolean oldestFirst) Returns the submission extract data map based on the template version- Parameters:
version
- the template version (required)startDate
- the start dateendDate
- the end dateoldestFirst
- whether to sort ascending or descending by age (submission OID)- Returns:
- the submission extract data map
-
getSubmissionExtractData
public List<Map<String,Object>> getSubmissionExtractData(TemplateVersion version, Set<String> formStatusValues, Date startDate, Date endDate, boolean oldestFirst) Return the submission data extract maps (one map per submission containing all data extract key-value pairs as well as some submission information) for a template version, filtered by submission form status and a time period. Note: this query filters extract data if their "deleted_flag" is set to 1.- Parameters:
version
- the form version (required)formStatusValues
- the set of form status values to filter on (will be used only if at least one value was specified)startDate
- the start date to filter on (optional)endDate
- the end date to filter on (optional)oldestFirst
- whether to return older results (as determined by database OID) first, or last- Returns:
- the list of matching extract data values maps
- Since:
- 4.1.0
-