|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.request.PushRequestMemoryDAOImpl
public class PushRequestMemoryDAOImpl
In-memory persistence implementation of the PushRequestDAO interface.
Example of using this object outside of the Spring bean factory: PushRequestDAO dao = new PushRequestMemoryDAOImpl(); dao.setPushMemoryDataStore(...); dao.setPushAppMemoryDataStore(...); Now you can use the object... dao.someMethod(...);Warning: This class is not intended for production use. Dependencies that must be injected to properly initialize this object for use:
| Constructor Summary | |
|---|---|
PushRequestMemoryDAOImpl()
|
|
| Method Summary | |
|---|---|
void |
addPushRequest(PushRequest pushRequest)
Adds the specified push request to the persistent store. |
void |
deletePushRequest(String pushId)
Deletes a push request with the given id. |
void |
deletePushRequests(boolean completed,
String deletedBy)
Deletes all push requests. |
void |
deletePushRequests(List<String> pushIds)
Deletes push requests with the given ids. |
void |
deletePushRequestsByDate(Date toDate,
boolean completed,
String deletedBy)
Deletes push requests that are older than the provided date. |
void |
deletePushRequestsByPushAppId(String pushApplicationId,
boolean completed,
String deletedBy)
Deletes push requests for the specified push application. |
void |
deletePushRequestsByPushAppIdAndDate(String pushApplicationId,
Date toDate,
boolean completed,
String deletedBy)
Deletes push requests for the specified push application that are older than the provided date. |
List<PushRequest> |
findAll()
Finds all push requests. |
List<PushRequest> |
findByAppId(String id)
Finds all push requests associated with a specified push application. |
List<PushRequest> |
findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
Finds all push requests by the specified date range. |
PushRequest |
findById(String id)
Finds push request by the specified id. |
List<PushRequest> |
findByStatusCode(StatusCode statusCode)
Deprecated. |
List<PushRequest> |
findIncomplete(String applicationId)
Finds all push requests that are incomplete for a given push application. |
int |
getSizeByDateRange(Date fromDate,
Date toDate)
Gets size of all push requests by the specified date range. |
void |
setPushAppMemoryDataStore(PushAppMemoryDataStore pushAppMemoryDataStore)
Sets the in-memory data store to use for storing push applications. |
void |
setPushCountMemoryDataStore(PushCountMemoryDataStore pushCountMemoryDataStore)
Sets the in-memory data store to use for storing push counts. |
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 |
updatePushRequest(PushRequest pushRequest)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequestMemoryDAOImpl()
| Method Detail |
|---|
public void setPushCountMemoryDataStore(PushCountMemoryDataStore pushCountMemoryDataStore)
pushCountMemoryDataStore - push count in-memory data storepublic void setPushRequestMemoryDataStore(PushRequestMemoryDataStore pushRequestMemoryDataStore)
pushRequestMemoryDataStore - push request in-memory data storepublic void setPushRequestDetailMemoryDataStore(PushRequestDetailMemoryDataStore pushRequestDetailMemoryDataStore)
pushRequestDetailMemoryDataStore - push request detail in-memory data storepublic void setPushAppMemoryDataStore(PushAppMemoryDataStore pushAppMemoryDataStore)
pushAppMemoryDataStore - push application in-memory data store
public void addPushRequest(PushRequest pushRequest)
throws org.springframework.dao.DataAccessException
PushRequestDAO
addPushRequest in interface PushRequestDAOpushRequest - the push request to create
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
public void updatePushRequest(PushRequest pushRequest)
throws org.springframework.dao.DataAccessException
PushRequestDAO
updatePushRequest in interface PushRequestDAOpushRequest - the push request to update
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushRequestsByPushAppIdAndDate(String pushApplicationId,
Date toDate,
boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
PushRequestDAO
deletePushRequestsByPushAppIdAndDate in interface PushRequestDAOpushApplicationId - id of the push application for which the corresponding push requests should be deletedtoDate - specifies the cut off date for the push request deletioncompleted - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushRequestsByPushAppId(String pushApplicationId,
boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
PushRequestDAO
deletePushRequestsByPushAppId in interface PushRequestDAOpushApplicationId - id of the push application for which the corresponding push requests should be deletedcompleted - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushRequestsByDate(Date toDate,
boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
PushRequestDAO
deletePushRequestsByDate in interface PushRequestDAOtoDate - specifies the cut off date for the push request deletion.completed - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushRequests(boolean completed,
String deletedBy)
throws org.springframework.dao.DataAccessException
PushRequestDAO
deletePushRequests in interface PushRequestDAOcompleted - if true, delete only completed requestsdeletedBy - the id of the user deleting the push requests; used for logging purposes only
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushRequests(List<String> pushIds)
throws org.springframework.dao.DataAccessException
PushRequestDAO
deletePushRequests in interface PushRequestDAOpushIds - ids of the requests to be deleted
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushRequest(String pushId)
throws org.springframework.dao.DataAccessException
PushRequestDAO
deletePushRequest in interface PushRequestDAOpushId - id of the request to be deleted
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequest> findAll()
throws org.springframework.dao.DataAccessException
PushRequestDAO
findAll in interface PushRequestDAOorg.springframework.dao.DataAccessException - if any errors occur
public List<PushRequest> findByAppId(String id)
throws org.springframework.dao.DataAccessException
PushRequestDAO
findByAppId in interface PushRequestDAOid - id of the push application
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequest> findByDateRange(Date fromDate,
Date toDate,
int startIndex,
int endIndex)
throws org.springframework.dao.DataAccessException
PushRequestDAO
findByDateRange in interface PushRequestDAOfromDate - from date parameter of the rangetoDate - 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
PushRequestDAO
getSizeByDateRange in interface PushRequestDAOfromDate - inclusive from date parameter of the rangetoDate - inclusive to date parameter of the range
org.springframework.dao.DataAccessException - if any errors occur
public PushRequest findById(String id)
throws org.springframework.dao.DataAccessException
PushRequestDAO
findById in interface PushRequestDAOid - id of the push request to find
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
public List<PushRequest> findByStatusCode(StatusCode statusCode)
throws org.springframework.dao.DataAccessException
PushRequestDAO
findByStatusCode in interface PushRequestDAOstatusCode - status code of the push request
org.springframework.dao.DataAccessException - if any errors occur
public List<PushRequest> findIncomplete(String applicationId)
throws org.springframework.dao.DataAccessException
PushRequestDAO
findIncomplete in interface PushRequestDAOapplicationId - application for which to find the 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 | |||||||||