|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDataProvider
This interface must be implemented by dynamic recipient data provider publication extensions. It is used to retrieve recipients from an external data source.
| Method Summary | |
|---|---|
void |
close()
This method must be implemented clean up any resources that were used during the retrieval of dynamic recipients. |
java.sql.ResultSet |
getRecipients(IDataProviderContext context)
This method is invoked when the publishing engine builds the list of recipients for the publication. |
java.util.List |
getSources(IDataProviderContext context)
For internal use only. |
boolean |
keepAlive()
Returns whether the connection to the data source is still alive. |
| Method Detail |
|---|
java.sql.ResultSet getRecipients(IDataProviderContext context)
throws java.sql.SQLException,
java.lang.Exception
This method is invoked when the publishing engine builds the list of recipients for the publication. It must be implement to retrieve the recipients from a data source and return then in a ResultSet object.
context - An object containing contextual information
java.sql.SQLException
java.lang.Exception
java.util.List getSources(IDataProviderContext context)
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
boolean keepAlive()
throws java.sql.SQLException,
java.lang.Exception
Returns whether the connection to the data source is still alive. This method must be implemented to ping the data source to keep the connection alive (if required.)
java.sql.SQLException
java.lang.Exception
void close()
throws java.sql.SQLException,
java.lang.Exception
This method must be implemented clean up any resources that were used during the retrieval of dynamic recipients.
java.sql.SQLException
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||