|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.sync.SubSyncByAddressRDBMSDAOImpl
public class SubSyncByAddressRDBMSDAOImpl
RDBMS implementation of the SubSyncByAddressDAO interface.
| Constructor Summary | |
|---|---|
SubSyncByAddressRDBMSDAOImpl()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the result set and releases the database connection. |
SubscriberPartial |
getNextResult()
Gets the next result from the result set (after performing a query for subscribers). |
void |
prepareFindByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status)
Deprecated. |
void |
prepareFindByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status,
int startIndex,
int endIndex)
Performs a query for subscribers based on the given app id, status, and start and end indexes. |
void |
prepareFindByAppIdAndStatusAndType(String pushApplicationId,
SubscriberStatus status,
SubscriberType type)
Deprecated. |
void |
prepareFindByAppIdAndStatusAndType(String pushApplicationId,
SubscriberStatus status,
SubscriberType type,
int startIndex,
int endIndex)
Performs a query for subscribers based on the given app id, status, type, and start and end indexes. |
void |
setDataSource(DataSource dataSource)
Sets the data source to use for interactions with the database. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
void |
setSqlProperties(SQLProperties sqlProperties)
Sets the SQL properties to use for querying the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubSyncByAddressRDBMSDAOImpl()
| Method Detail |
|---|
public void setDataSource(DataSource dataSource)
dataSource - the data sourcepublic void setSqlProperties(SQLProperties sqlProperties)
sqlProperties - the SQL propertiespublic void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushSDKProperties implementation.
pushSDKProperties - an instance of PushSDKPropertiespublic void close()
SubSyncByAddressDAOprepareFindByAppIdAndStatus(appid, status)
method or the prepareFindByAppIdAndStatusAndType(appid, status, type) method and getting the results of the
query back by repeated calls to the getNextResult() method.
This method should be called in a finally block.
close in interface SubSyncByAddressDAO
public SubscriberPartial getNextResult()
throws SQLException
SubSyncByAddressDAOprepareFindByAppIdAndStatus(appid, status) method or
the prepareFindByAppIdAndStatusAndType(appid, status, type) method.
getNextResult in interface SubSyncByAddressDAOSQLException - if any errors occur retrieving the next result from the result set
@Deprecated
public void prepareFindByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status)
throws SQLException
SubSyncByAddressDAOgetNextResult() method. When use of the result set is done, the close()
method should be called.
Note: This method uses the same result set instance variable as the prepareFindByAppIdAndStatusAndType()
method and so, for a given object of this class, only one of the two methods should be called at any given time.
prepareFindByAppIdAndStatus in interface SubSyncByAddressDAOpushApplicationId - the push application idstatus - the status of a subscriber
SQLException - if any errors occur executing the query
@Deprecated
public void prepareFindByAppIdAndStatusAndType(String pushApplicationId,
SubscriberStatus status,
SubscriberType type)
throws SQLException
SubSyncByAddressDAOgetNextResult() method. When use of the result set is done, the close()
method should be called.
Note: This method uses the same result set instance variable as the prepareFindByAppIdAndStatus() method and
so, for a given object of this class, only one of the two methods should be called at any given time.
prepareFindByAppIdAndStatusAndType in interface SubSyncByAddressDAOpushApplicationId - the push application idstatus - the status of a subscribertype - the type of a subscriber
SQLException - if any errors occur executing the query
public void prepareFindByAppIdAndStatus(String pushApplicationId,
SubscriberStatus status,
int startIndex,
int endIndex)
throws SQLException
SubSyncByAddressDAOgetNextResult() method. When use of the result set is done, the close()
method should be called.
Note: This method uses the same result set instance variable as the prepareFindByAppIdAndStatusAndType()
method and so, for a given object of this class, only one of the two methods should be called at any given time.
prepareFindByAppIdAndStatus in interface SubSyncByAddressDAOpushApplicationId - the push application idstatus - the status of a subscriberstartIndex - the start index to query fromendIndex - the end index to stop querying at
SQLException - if any errors occur executing the query
public void prepareFindByAppIdAndStatusAndType(String pushApplicationId,
SubscriberStatus status,
SubscriberType type,
int startIndex,
int endIndex)
throws SQLException
SubSyncByAddressDAOgetNextResult() method. When use of the result set is done, the close()
method should be called.
Note: This method uses the same result set instance variable as the prepareFindByAppIdAndStatus() method and
so, for a given object of this class, only one of the two methods should be called at any given time.
prepareFindByAppIdAndStatusAndType in interface SubSyncByAddressDAOpushApplicationId - the push application idstatus - the status of a subscribertype - the type of a subscriberstartIndex - the start index to query fromendIndex - the end index to stop querying at
SQLException - if any errors occur executing the query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||