|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.request.PushRequestDetailMemoryDAOImpl
public class PushRequestDetailMemoryDAOImpl
In-memory persistence implementation of the PushRequestDetailDAO interface.
| Constructor Summary | |
|---|---|
PushRequestDetailMemoryDAOImpl()
|
|
| 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 |
setPushRequestDetailMemoryDataStore(PushRequestDetailMemoryDataStore pushRequestDetailMemoryDataStore)
Sets the in-memory data store to use for storing push request details. |
void |
setPushRequestMemoryDataStore(PushRequestMemoryDataStore pushRequestMemoryDataStore)
Sets the in-memory data store to use for storing push requests. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequestDetailMemoryDAOImpl()
| Method Detail |
|---|
public void setPushRequestMemoryDataStore(PushRequestMemoryDataStore pushRequestMemoryDataStore)
pushRequestMemoryDataStore - push request in-memory data storepublic void setPushRequestDetailMemoryDataStore(PushRequestDetailMemoryDataStore pushRequestDetailMemoryDataStore)
pushRequestDetailMemoryDataStore - push request detail in-memory data store
public void addPushRequestDetail(PushRequestDetail pushRequestDetail)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
addPushRequestDetail in interface PushRequestDetailDAOpushRequestDetail - the push request detail to create
org.springframework.dao.DataAccessException - if any errors occur
public void addPushRequestDetails(List<PushRequestDetail> pushRequestDetails)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
addPushRequestDetails in interface PushRequestDetailDAOpushRequestDetails - the list of push request details to create
org.springframework.dao.DataAccessException - if any errors occur
public void updatePushRequestDetail(PushRequestDetail pushRequestDetail)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
updatePushRequestDetail in interface PushRequestDetailDAOpushRequestDetail - the push request detail to update
org.springframework.dao.DataAccessException - if any errors occur
public void updatePushRequestDetails(List<PushRequestDetail> pushRequestDetails)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
updatePushRequestDetails in interface PushRequestDetailDAOpushRequestDetails - the push request details to update
org.springframework.dao.DataAccessException - if any errors occur
public void updatePushRequestDetailsWithoutAddresses(List<PushRequestDetail> pushRequestDetails)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAOPushRequestDetail, 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.
updatePushRequestDetailsWithoutAddresses in interface PushRequestDetailDAOpushRequestDetails - the push request details to update
org.springframework.dao.DataAccessException - if any errors occur
public PushRequestDetail findByIdAndAddress(String id,
String address)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByIdAndAddress in interface PushRequestDetailDAOid - id of the push requestaddress - address for the device the push was made to
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequestDetail> findByIdAndAddresses(String id,
List<String> addresses)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByIdAndAddresses in interface PushRequestDetailDAOid - id of the push requestaddresses - addresses for the device the push was made to
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequestDetail> findByIdAndSubscriberIds(String id,
List<String> subscriberIds)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByIdAndSubscriberIds in interface PushRequestDetailDAOid - id of the push requestsubscriberIds - subscriberIds for the device the push was made to
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequestDetail> findById(String id)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findById in interface PushRequestDetailDAOid - id of the push request
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequestDetail> findByIdAndStates(String id,
List<MessageState> states)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByIdAndStates in interface PushRequestDetailDAOid - id of the push requeststates - a list of message states
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequestDetail> findByStatusCode(StatusCode statusCode,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByStatusCode in interface PushRequestDetailDAOstatusCode - 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
public List<PushRequestDetail> findByIdAndStatusCode(String id,
StatusCode statusCode)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByIdAndStatusCode in interface PushRequestDetailDAOid - id of the push requeststatusCode - status code of the push request details to look up
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequestDetail> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findByDateRange in interface PushRequestDetailDAOfromDate - 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
public int getSizeByDateRange(Date fromDate,
Date toDate)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
getSizeByDateRange in interface PushRequestDetailDAOfromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
public Set<PushIdAndApplicationId> findByIdsAndState(List<String> ids,
MessageState state)
PushRequestDetailDAO
findByIdsAndState in interface PushRequestDetailDAOids - ids of the push requestsstate - a message state
public List<PushRequestDetail> findIncompleteByAppIdAndSubId(String applicationId,
String subscriberId)
throws org.springframework.dao.DataAccessException
PushRequestDetailDAO
findIncompleteByAppIdAndSubId in interface PushRequestDetailDAOapplicationId - 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 | |||||||||