|
||||||||||
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.AssemblyLineConnector
public class AssemblyLineConnector
This class uses the AssemblyLineFC function to invoke operations on an AssemblyLine. The behavior of this class depends on the operations defined by the target AssemblyLine. If the target AL has defined connector interface methods that match the connector interface names, this connector will invoke the corresponding operation in the target AL. If a mode ends up in an internal connector interface method with no corresponding operation defined an exception is thrown. The exception is the CallReply mode which is the default for all non-standard modes. A connector interface based adapter AssemblyLine must define operations that correspond to the names found in the connector interface. This means that in order to act as an Iterator it should define "selectentries" and "getnext" as valid operations. This connector will compute the valid modes an AssemblyLine provides by looking at the operation names.
When the target AssemblyLine has its operations invoked through the native connector interface methods (e.g. getnext, selectentries etc) the AssemblyLine connector will provide a work entry with predefined attribute names. These attributes are:
conn - the entry (or entries) passed between this connector and the adapter. The value can be null, a single entry or an array/collection of entries in case there are multiple. search - the search criteria as specified by the user. SeeSearchCriteria
current - the current target object. this is used when modifying existing entries.
Conversely, when the target AssemblyLine returns data for these methods/operations it should
return an entry with these attribute names.
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
AssemblyLineConnector()
|
Method Summary | |
---|---|
void |
deleteEntry(Entry entry,
SearchCriteria search)
Deletes an existing entry. |
Entry |
findEntry(SearchCriteria search)
Finds an existing entry. |
Vector |
getALModes(ConnectorConfig config)
|
Vector |
getModes(ConnectorConfig config)
Returns the connector's modes. |
Entry |
getNextEntry()
Returns the next Entry from the connector. |
String |
getVersion()
Return version information |
void |
initialize(Object o)
Initialize the connector. |
void |
modEntry(Entry entry,
SearchCriteria search,
Entry old)
Modifies an existing entry. |
Entry |
performOperation(Entry workEntry,
String operation)
This method invokes the named operation in the target AssemblyLine. |
Entry |
performOperation(Entry workEntry,
String operation,
Entry opentry)
|
void |
putEntry(Entry entry)
Adds a new entry to the data source |
Entry |
queryReply(Entry entry)
Performs a query/reply operations. |
Object |
querySchema(Object table)
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, modEntry, pushback, queryOperations, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Constructor Detail |
---|
public AssemblyLineConnector()
Method Detail |
---|
public void initialize(Object o) throws Exception
Connector
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- User provided parameter
Exception
public void terminate()
Connector
terminate
in interface ConnectorInterface
terminate
in class Connector
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 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 Object querySchema(Object table) 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
table
- 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
public Vector getModes(ConnectorConfig config)
Connector
getModes
in class Connector
config
- return the modes given this configuration
public Vector getALModes(ConnectorConfig config)
public 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 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 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 performOperation(Entry workEntry, String operation) throws Exception
workEntry
- The work entry provided to the AssemblyLineoperation
- The operation to invoke
Exception
public Entry performOperation(Entry workEntry, String operation, Entry opentry) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |