|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushRequestDetailDAO
Interface defining data access methods needed to manage PushRequestDetail objects in the persistent store.
| Method Summary | |
|---|---|
void |
addPushRequestDetail(PushRequestDetail pushRequestDetail)
Adds the specified push request detail to the persistent store. |
void |
addPushRequestDetails(List<PushRequestDetail> pushRequestDetails)
Adds the specified push request details to the persistent store. |
List<PushRequestDetail> |
findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
Finds all push request details by the specified date range. |
List<PushRequestDetail> |
findById(String id)
Finds all push request details for the specific push request. |
PushRequestDetail |
findByIdAndAddress(String id,
String address)
Finds a push request detail by the specified push request and address. |
List<PushRequestDetail> |
findByIdAndAddresses(String id,
List<String> addresses)
Finds a push request detail by the specified push request and addresses. |
List<PushRequestDetail> |
findByIdAndStates(String id,
List<MessageState> states)
Finds all push request details for the specific push request and given states. |
List<PushRequestDetail> |
findByIdAndStatusCode(String id,
StatusCode statusCode)
Finds all push request details with the given status code for a specific push request. |
List<PushRequestDetail> |
findByIdAndSubscriberIds(String id,
List<String> subscriberIds)
Finds push request details by the specified push request and subscriberIds. |
Set<PushIdAndApplicationId> |
findByIdsAndState(List<String> ids,
MessageState state)
Finds push ids and application ids for the specific push requests and given state. |
List<PushRequestDetail> |
findByStatusCode(StatusCode statusCode,
int startIndex,
int endIndex)
Finds all push request details by the specified status code. |
List<PushRequestDetail> |
findIncompleteByAppIdAndSubId(String applicationId,
String subscriberId)
Finds all push requests that are incomplete for a specific subscriber id and push application. |
int |
getSizeByDateRange(Date fromDate,
Date toDate)
Gets size of all push request details by the specified date range. |
void |
updatePushRequestDetail(PushRequestDetail pushRequestDetail)
Updates the specified push request detail in the persistent store. |
void |
updatePushRequestDetails(List<PushRequestDetail> pushRequestDetails)
Updates the specified list of push request details in the persistent store. |
void |
updatePushRequestDetailsWithoutAddresses(List<PushRequestDetail> pushRequestDetails)
Updates the specified list of push request details in the persistent store. |
| Method Detail |
|---|
void addPushRequestDetail(PushRequestDetail pushRequestDetail)
throws org.springframework.dao.DataAccessException
pushRequestDetail - the push request detail to create
org.springframework.dao.DataAccessException - if any errors occur
void addPushRequestDetails(List<PushRequestDetail> pushRequestDetails)
throws org.springframework.dao.DataAccessException
pushRequestDetails - the list of push request details to create
org.springframework.dao.DataAccessException - if any errors occur
void updatePushRequestDetail(PushRequestDetail pushRequestDetail)
throws org.springframework.dao.DataAccessException
pushRequestDetail - the push request detail to update
org.springframework.dao.DataAccessException - if any errors occur
void updatePushRequestDetails(List<PushRequestDetail> pushRequestDetails)
throws org.springframework.dao.DataAccessException
pushRequestDetails - the push request details to update
org.springframework.dao.DataAccessException - if any errors occur
void updatePushRequestDetailsWithoutAddresses(List<PushRequestDetail> pushRequestDetails)
throws org.springframework.dao.DataAccessException
PushRequestDetail, updates all details in the store with the same push-id, regardless of
address.
Note: Not all fields are updated, only the following fields are: messageState, statusCode, statusDesc, senderName,
senderAddress and completedDate.
pushRequestDetails - the push request details to update
org.springframework.dao.DataAccessException - if any errors occur
PushRequestDetail findByIdAndAddress(String id,
String address)
throws org.springframework.dao.DataAccessException
id - id of the push requestaddress - address for the device the push was made to
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findByIdAndAddresses(String id,
List<String> addresses)
throws org.springframework.dao.DataAccessException
id - id of the push requestaddresses - addresses for the device the push was made to
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findByIdAndSubscriberIds(String id,
List<String> subscriberIds)
throws org.springframework.dao.DataAccessException
id - id of the push requestsubscriberIds - subscriberIds for the device the push was made to
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findById(String id)
throws org.springframework.dao.DataAccessException
id - id of the push request
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findByIdAndStates(String id,
List<MessageState> states)
throws org.springframework.dao.DataAccessException
id - id of the push requeststates - a list of message states
org.springframework.dao.DataAccessException - if any errors occur
Set<PushIdAndApplicationId> findByIdsAndState(List<String> ids,
MessageState state)
ids - ids of the push requestsstate - a message state
PushSDKException - if any errors occur
List<PushRequestDetail> findByStatusCode(StatusCode statusCode,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
statusCode - status code of the push request details to look upstartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findByIdAndStatusCode(String id,
StatusCode statusCode)
throws org.springframework.dao.DataAccessException
id - id of the push requeststatusCode - status code of the push request details to look up
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
fromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the rangestartIndex - the index of the first entry to be retrievedendIndex - the index of the last entry to be retrieved
org.springframework.dao.DataAccessException - if any errors occur
int getSizeByDateRange(Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
fromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
List<PushRequestDetail> findIncompleteByAppIdAndSubId(String applicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
applicationId - application for which to find the incomplete pushessubscriberId - the subscriber id for which to find incomplete pushes
org.springframework.dao.DataAccessException - if any errors occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||