|
||||||||||
| 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.JNDIConnector
public class JNDIConnector
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Constructor Summary | |
|---|---|
JNDIConnector()
|
|
| Method Summary | |
|---|---|
void |
addAttributeValue(String moddn,
String modattr,
String modval)
Adds a given value to an attribute |
void |
deleteEntry(Entry entry,
SearchCriteria search)
Deletes an existing entry. |
Entry |
findEntry(SearchCriteria search)
Finds an existing entry. |
String |
getAttributeSyntax(DirContext schema,
String attributeName)
|
Entry |
getCurrentEntry()
|
Entry |
getNextEntry()
Returns the next Entry from the connector. |
protected String |
getSearchFilterAll()
|
String |
getVersion()
|
void |
initialize(Object o)
Initialize the connector. |
boolean |
isDeltaSupported()
Returns true if this connector is able to perform delta updates |
boolean |
isExceptionFatal(Exception e)
Returns true if the exception is considered to be fatal. |
String |
mapAttributeSyntax(String oid)
|
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 |
Vector |
queryObjectClassAttributes(String objectClass)
|
Object |
querySchema(Object source)
This function translates to whatever means a connector has to discover schema for a connection. |
void |
removeAttribute(String moddn,
String modattr)
removeAttribute : removes the attribute |
void |
removeAttributeValue(String moddn,
String modattr,
String modval)
removeAttributeValue: removes a given attribute value from an entry |
void |
replaceAttributeValue(String moddn,
String modattr,
String modval)
replaceAttributeValue: replaces a given attribute with a certain value |
void |
selectEntries()
Prepare the Connector for sequential read. |
protected void |
setSearchFilterAll(String aSearchFilterAll)
|
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, isIOException, pushback, queryOperations, queryReply, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
| Constructor Detail |
|---|
public JNDIConnector()
| Method Detail |
|---|
public void terminate()
Connector
terminate in interface ConnectorInterfaceterminate in class Connector
public void initialize(Object o)
throws Exception
Connector
initialize in interface ConnectorInterfaceinitialize in class Connectoro - 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 Entry getCurrentEntry()
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 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 classespublic boolean isExceptionFatal(Exception e)
Connector
isExceptionFatal in interface ConnectorInterfaceisExceptionFatal in class Connectore - The exception object
public void addAttributeValue(String moddn,
String modattr,
String modval)
throws Exception
moddn - String representing the DN to which to add the attribute valuemodattr - String representing the name of the attribute to add a value tomodval - String representing the value of the attribute add
java.langException - when underlying modify operation fails
Exception
public void replaceAttributeValue(String moddn,
String modattr,
String modval)
throws Exception
moddn - String representing the DN to which to replace
the attribute valuemodattr - String representing the name of the attribute
to replace the value formodval - String representing the desired value for the attribute
java.langException - when underlying modify operation fails
Exception
public void removeAttributeValue(String moddn,
String modattr,
String modval)
throws Exception
moddn - String representing the DN to which to remove
the attribute valuemodattr - String representing the name of the attribute
to changemodval - String representing the value you wish to have
removed from the attribute
java.langException - when underlying modify operation fails
Exception
public void removeAttribute(String moddn,
String modattr)
throws Exception
moddn - String representing the DN to
which to remove the attribute valuesmodattr - String representing the name of the
attribute to remove all values from
java.langException - when underlying modify operation fails
Exception
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,
Vector
public String getAttributeSyntax(DirContext schema,
String attributeName)
public Vector queryObjectClassAttributes(String objectClass)
throws Exception
Exceptionpublic String mapAttributeSyntax(String oid)
public String getVersion()
getVersion in interface VersionInfoInterfacepublic boolean isDeltaSupported()
Connector
isDeltaSupported in interface ConnectorInterfaceisDeltaSupported in class Connectorprotected String getSearchFilterAll()
protected void setSearchFilterAll(String aSearchFilterAll)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||