|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.DominoConnector
public class DominoConnector
This is the class for the TDI Lotus Notes Connector.
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
DominoConnector()
Constructor for the DominoConnector object |
Method Summary | |
---|---|
void |
addValue(Entry e,
String attr,
Vector value)
Adds a feature to the Value attribute of the DominoConnector object |
Entry |
buildEntry(lotus.domino.Document doc)
This method is invoked by the getNextEntry method. |
void |
deleteEntry(Entry entry,
SearchCriteria search)
This method is used in Delete mode. |
Entry |
findEntry(SearchCriteria search)
This method is used in Lookup, Update and Delete modes. |
lotus.domino.Database |
getDominoDatabase(String database)
Gets the dominoDatabase attribute of the DominoConnector object |
lotus.domino.Session |
getDominoSession()
Gets the dominoSession attribute of the DominoConnector object |
lotus.domino.View |
getDominoView(String view)
Gets the dominoView attribute of the DominoConnector object |
Entry |
getNextEntry()
Gets the nextEntry attribute of the DominoConnector object |
String |
getVersion()
Return version information |
void |
initialize(Object o)
This method initializes the Connector. |
void |
initLocalThread()
This call is needed when the connector makes local calls through a client or server. |
boolean |
isConvertable(int type)
|
void |
modDocument(lotus.domino.Document doc,
Entry entry)
This method modifies a Domino database document. |
void |
modEntry(Entry entry,
SearchCriteria search)
This method is used in Update mode. |
void |
modEntry(Entry entry,
SearchCriteria search,
Entry old)
This method is used in Update mode. |
void |
putEntry(Entry entry)
This method is used in AddOnly mode. |
Vector |
queryDatabases()
This methods builds and returns a collection of the available Domino databases. |
Vector |
queryViews()
Gets the list of views for the current Domino database. |
void |
selectEntries()
This method is used in Iterator mode. |
void |
setCurrent(Entry entry,
SearchCriteria search)
Used when multiple entries found, and you want to modify or delete one of them. |
void |
terminate()
This method cleans up allocated resources (recycles database/view objects, terminates threads) and terminates the Connector. |
void |
termLocalThread()
This method terminates the Notes API thread to make sure resources are cleaned up properly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
---|
getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Constructor Detail |
---|
public DominoConnector()
Method Detail |
---|
public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- An exception is thrown if this method fails.Connector.selectEntries()
public lotus.domino.Session getDominoSession()
public lotus.domino.Database getDominoDatabase(String database) throws Exception
database
- the name of the Domino database file (usually a file with a .nsf filename extension)
Exception
- An exception is thrown if this method fails.public lotus.domino.View getDominoView(String view) throws Exception
view
- the name of the Domino view
Exception
- An exception is thrown if this method fails.public String getVersion()
getVersion
in interface VersionInfoInterface
public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public void initialize(Object o) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- this parameter is ignored
Exception
- An exception is thrown if this method fails.public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
- An exception is thrown if this method fails.public Entry buildEntry(lotus.domino.Document doc) throws Exception
doc
- the Domino Document object which provides the data for the entry being populated
Exception
- An exception is thrown if this method fails.public boolean isConvertable(int type)
public void putEntry(Entry entry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- the entry to be written to the Domino database
Exception
- An exception is thrown if this method fails.public void modEntry(Entry entry, SearchCriteria search) throws Exception
modEntry
in interface ConnectorInterface
modEntry
in class Connector
entry
- the entry which stores the new data with which existing data will be replacedsearch
- the search criteria with which the existing database document to be changed will be located
Exception
- An exception is thrown if this method fails.public void modEntry(Entry entry, SearchCriteria search, Entry old) throws Exception
modEntry
in interface ConnectorInterface
modEntry
in class Connector
entry
- the entry which stores the new data with which existing data will be replacedsearch
- the search criteria with which the existing database document to be changed will be locatedold
- used for the implementation of updating documents - it has no meaning for the user of the Connector
Exception
- An exception is thrown if this method fails.public void deleteEntry(Entry entry, SearchCriteria search) throws Exception
deleteEntry
in interface ConnectorInterface
deleteEntry
in class Connector
entry
- used for implementation internals onlysearch
- the search criteria with which the existing database document to be deleted will be located
Exception
- An exception is thrown if this method fails.public Entry findEntry(SearchCriteria search) throws Exception
findEntry
in interface ConnectorInterface
findEntry
in class Connector
search
- the search criteria with which the database document will be located
Exception
- An exception is thrown if this method fails.public void setCurrent(Entry entry, SearchCriteria search)
setCurrent
in interface ConnectorInterface
setCurrent
in class Connector
entry
- The entry we want to find for modification/deletesearch
- The searchpublic void modDocument(lotus.domino.Document doc, Entry entry) throws Exception
doc
- the database document to modifyentry
- the entry which supplies the new values for the document to be modified
Exception
- An exception is thrown if this method fails.public void addValue(Entry e, String attr, Vector value)
e
- The feature to be added to the Value attributeattr
- The feature to be added to the Value attributevalue
- The feature to be added to the Value attributepublic Vector queryDatabases() throws Exception
Exception
- An exception is thrown if this method fails.public Vector queryViews() throws Exception
Exception
- An exception is thrown if this method fails.public void initLocalThread() throws Exception
Exception
- An exception is thrown if this method fails.public void termLocalThread()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |