|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.teiid.connector.basic.BasicExecution com.metamatrix.connector.ldap.LDAPUpdateExecution
public class LDAPUpdateExecution
Please see the user's guide for a full description of capabilties, etc. Description/Assumptions: 1. Table's name in source defines the base DN (or context) for the search. Example: Table.NameInSource=ou=people,dc=gene,dc=com 2. Column's name in source defines the LDAP attribute name. [Default] If no name in source is defined, then we attempt to use the column name as the LDAP attribute name. 3. Since all of the underlying LDAP methods for adding/deleting/updating require specification of the LDAP distinguished name (DN) to change, for all corresponding MetaMatrix operations the DN must be specified (as the sole item in the WHERE clause for UPDATE and DELETE operations, and in the list of attributes to assign values in an INSERT operation * Responsible for update/insert/delete operations against LDAP
Constructor Summary | |
---|---|
LDAPUpdateExecution(ICommand command,
ExecutionContext ctx,
RuntimeMetadata rm,
ConnectorLogger logger,
javax.naming.ldap.InitialLdapContext ldapCtx)
|
Method Summary | |
---|---|
void |
cancel()
Cancels the execution abnormally. |
void |
close()
Terminates the execution normally. |
void |
execute()
execute generic update-class (either an update, delete, or insert) operation and returns a count of affected rows. |
int[] |
getUpdateCounts()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPUpdateExecution(ICommand command, ExecutionContext ctx, RuntimeMetadata rm, ConnectorLogger logger, javax.naming.ldap.InitialLdapContext ldapCtx) throws ConnectorException
ConnectorException
Method Detail |
---|
public void execute() throws ConnectorException
execute
in interface Execution
ConnectorException
public int[] getUpdateCounts() throws DataNotAvailableException, ConnectorException
getUpdateCounts
in interface UpdateExecution
DataNotAvailableException
ConnectorException
public void cancel() throws ConnectorException
Execution
cancel
in interface Execution
ConnectorException
public void close() throws ConnectorException
Execution
close
in interface Execution
ConnectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |