|
||||||||||
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 | |
---|---|
protected java.lang.String |
selection
Used by subclasses. |
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,
java.lang.String attr,
java.util.Vector value,
int type)
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(java.lang.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(java.lang.String view)
Gets the dominoView attribute of the DominoConnector object |
Entry |
getNextEntry()
Gets the nextEntry attribute of the DominoConnector object |
java.lang.String |
getVersion()
Return version information |
void |
initialize(java.lang.Object o)
This method initializes the Connector. |
void |
initLocalThread()
This call is needed when the connector makes local calls through a client or server. |
Entry |
inner_findEntry(SearchCriteria search)
Internal implementation of the findEntry method executed by the worker thread. |
protected void |
inner_initialize(java.lang.Object o)
Initializes the internal worker thread and the connector configuration. |
boolean |
isConvertable(int type)
This method is used internally. |
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. |
java.util.Vector<java.lang.String> |
queryDatabases()
This methods builds and returns a collection of the available Domino databases. |
java.util.Vector<java.lang.String> |
queryViews()
Gets the list of views' names for the current Domino database. |
void |
run()
Kick off the internal worker thread. |
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()
Terminate the connector. This function closes all connection and releases all resources used by the connector. This function also calls the parser's closeParser() method if a parser is active. |
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 |
Field Detail |
---|
protected java.lang.String selection
Constructor Detail |
---|
public DominoConnector()
Method Detail |
---|
public Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.Exception
- An exception is thrown if this method fails.ConnectorInterface.selectEntries()
public lotus.domino.Session getDominoSession()
public lotus.domino.Database getDominoDatabase(java.lang.String database) throws java.lang.Exception
database
- the name of the Domino database file (usually a file with a
.nsf filename extension)
java.lang.Exception
- An exception is thrown if this method fails.public lotus.domino.View getDominoView(java.lang.String view) throws java.lang.Exception
view
- the name of the Domino view
java.lang.Exception
- An exception is thrown if this method fails.public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public void initialize(java.lang.Object o) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- this parameter is ignored
java.lang.Exception
- An exception is thrown if this method fails.protected void inner_initialize(java.lang.Object o) throws java.lang.Exception
o
- ignored.
java.lang.Exception
- if an error occurs.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- An exception is thrown if this method fails.public Entry buildEntry(lotus.domino.Document doc) throws java.lang.Exception
doc
- the Domino Document object which provides the data for the
entry being populated
java.lang.Exception
- An exception is thrown if this method fails.public boolean isConvertable(int type)
type
- the type id.
public void putEntry(Entry entry) throws java.lang.Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- the entry to be written to the Domino database
java.lang.Exception
- An exception is thrown if this method fails.public void modEntry(Entry entry, SearchCriteria search) throws java.lang.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
java.lang.Exception
- An exception is thrown if this method fails.public void modEntry(Entry entry, SearchCriteria search, Entry old) throws java.lang.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
java.lang.Exception
- An exception is thrown if this method fails.public void deleteEntry(Entry entry, SearchCriteria search) throws java.lang.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
java.lang.Exception
- An exception is thrown if this method fails.public Entry findEntry(SearchCriteria search) throws java.lang.Exception
findEntry
in interface ConnectorInterface
findEntry
in class Connector
search
- the search criteria with which the database document will be
located
java.lang.Exception
- if this method fails.public Entry inner_findEntry(SearchCriteria search) throws java.lang.Exception
search
- the search criteria with which the database document will be
located
java.lang.Exception
- 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 java.lang.Exception
doc
- the database document to modifyentry
- the entry which supplies the new values for the document to be
modified
java.lang.Exception
- An exception is thrown if this method fails.public void addValue(Entry e, java.lang.String attr, java.util.Vector value, int type)
e
- Entry
attr
- attribute namevalue
- attribute valuetype
- attribute typepublic java.util.Vector<java.lang.String> queryDatabases() throws java.lang.Exception
java.lang.Exception
- if this method fails.public java.util.Vector<java.lang.String> queryViews() throws java.lang.Exception
java.lang.Exception
- An exception is thrown if this method fails.public void initLocalThread() throws java.lang.Exception
java.lang.Exception
- An exception is thrown if this method fails.public void termLocalThread()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |