|
||||||||||
| 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 ConnectorInterfaceinitialize in class Connectorobj - User provided parameter
Exception
public void selectEntries()
throws Exception
Connector
selectEntries in interface ConnectorInterfaceselectEntries in class ConnectorException
public Entry getNextEntry()
throws Exception
Connector
getNextEntry in interface ConnectorInterfacegetNextEntry in class ConnectorExceptionConnector.selectEntries()
public void modEntry(Entry entry,
SearchCriteria search)
throws Exception
Connector
modEntry in interface ConnectorInterfacemodEntry in class Connectorentry - The entry datasearch - The search criteria used to locate the entry to be modified
Exception - Any exceptions thrown by the connector's underlying classes
public void modEntry(Entry entry,
SearchCriteria search,
Entry old)
throws Exception
Connector
modEntry in interface ConnectorInterfacemodEntry in class Connectorentry - 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 classes
public void deleteEntry(Entry entry,
SearchCriteria search)
throws Exception
Connector
deleteEntry in interface ConnectorInterfacedeleteEntry in class Connectorentry - The entry datasearch - The search criteria used to locate the entry to be deleted
Exception - Any exceptions thrown by the connector's underlying classes
public Entry findEntry(SearchCriteria search)
throws Exception
Connector
findEntry in interface ConnectorInterfacefindEntry in class Connectorsearch - The search criteria used to locate the entry to be modified
Exception - Any exceptions thrown by the connector's underlying classes
public void putEntry(Entry entry)
throws Exception
Connector
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - The entry data to add
Exception - Any exceptions thrown by the connector's underlying classes
public Entry queryReply(Entry entry)
throws Exception
Connector
queryReply in interface ConnectorInterfacequeryReply in class Connectorentry - The data used in outgoing call
Exception - Any exceptions thrown by the connector's underlying classes
public void terminate()
throws Exception
Connector
terminate in interface ConnectorInterfaceterminate in class ConnectorException
public Object querySchema(Object source)
throws Exception
ConnectorEach 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 ConnectorInterfacequerySchema in class Connectorsource - The object on which to discover schema. This may be an Entry or a string value
ExceptionEntry,
Vectorpublic String getVersion()
getVersion in interface VersionInfoInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||