|
||||||||||
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.ScriptConnector
public class ScriptConnector
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
ScriptConnector()
|
Method Summary | |
---|---|
void |
deleteEntry(Entry entry,
SearchCriteria search)
Deletes an existing entry. |
Entry |
findEntry(SearchCriteria search)
Finds an existing entry. |
Entry |
getNextEntry()
Returns the next Entry from the connector. |
String |
getVersion()
Return version information |
void |
initialize(Object obj)
Initialize the connector. |
void |
modEntry(Entry entry,
SearchCriteria search)
Modifies an existing entry. |
void |
modEntry(Entry entry,
SearchCriteria search,
Entry old)
Modifies an existing entry. |
void |
putEntry(Entry entry)
Adds a new entry to the data source |
Entry |
queryReply(Entry entry)
Performs a query/reply operations. |
Object |
querySchema(Object source)
This function translates to whatever means a connector has to discover schema for a connection. |
void |
selectEntries()
Prepare the Connector for sequential read. |
void |
terminate()
Terminate the connector. |
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, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Constructor Detail |
---|
public ScriptConnector()
Method Detail |
---|
public void initialize(Object obj) throws Exception
Connector
initialize
in interface ConnectorInterface
initialize
in class Connector
obj
- User provided parameter
Exception
public void selectEntries() throws Exception
Connector
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
public Entry getNextEntry() throws Exception
Connector
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
Connector.selectEntries()
public void modEntry(Entry entry, SearchCriteria search) throws Exception
Connector
modEntry
in interface ConnectorInterface
modEntry
in class Connector
entry
- The entry datasearch
- The search criteria used to locate the entry to be modified
Exception
- Any exceptions thrown by the connector's underlying classespublic void modEntry(Entry entry, SearchCriteria search, Entry old) throws Exception
Connector
modEntry
in interface ConnectorInterface
modEntry
in class Connector
entry
- The entry datasearch
- The search criteria used to locate the entry to be modifiedold
- The old entry found by the search criteria
Exception
- Any exceptions thrown by the connector's underlying classespublic void deleteEntry(Entry entry, SearchCriteria search) throws Exception
Connector
deleteEntry
in interface ConnectorInterface
deleteEntry
in class Connector
entry
- The entry datasearch
- The search criteria used to locate the entry to be deleted
Exception
- Any exceptions thrown by the connector's underlying classespublic Entry findEntry(SearchCriteria search) throws Exception
Connector
findEntry
in interface ConnectorInterface
findEntry
in class Connector
search
- The search criteria used to locate the entry to be modified
Exception
- Any exceptions thrown by the connector's underlying classespublic void putEntry(Entry entry) throws Exception
Connector
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
Exception
- Any exceptions thrown by the connector's underlying classespublic Entry queryReply(Entry entry) throws Exception
Connector
queryReply
in interface ConnectorInterface
queryReply
in class Connector
entry
- The data used in outgoing call
Exception
- Any exceptions thrown by the connector's underlying classespublic void terminate() throws Exception
Connector
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
public Object querySchema(Object source) throws Exception
Connector
Each Entry in the Vector returned should contain the following attributes:
Name | Value |
---|---|
name | The name of the column/attribute/field .... |
syntax | The syntax or expected value type |
size | If specified this will give the user a hint as to how long the field may be |
querySchema
in interface ConnectorInterface
querySchema
in class Connector
source
- The object on which to discover schema. This may be an Entry or a string value
Exception
Entry
,
Vector
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |