public final class LdapTransactionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIND_METHOD_NAME |
static String |
MODIFY_ATTRIBUTES_METHOD_NAME |
static String |
REBIND_METHOD_NAME |
static String |
RENAME_METHOD_NAME |
static String |
UNBIND_METHOD_NAME |
Modifier and Type | Method and Description |
---|---|
static Name |
getArgumentAsName(Object arg)
Get the argument as a Name.
|
static Name |
getFirstArgumentAsName(Object[] args)
Get the first parameter in the argument list as a Name.
|
static boolean |
isSupportedWriteTransactionOperation(String methodName)
Check whether the supplied method is a method for which transactions is
supported (and which should be recorded for possible rollback later).
|
public static final String REBIND_METHOD_NAME
public static final String BIND_METHOD_NAME
public static final String RENAME_METHOD_NAME
public static final String UNBIND_METHOD_NAME
public static final String MODIFY_ATTRIBUTES_METHOD_NAME
public static Name getFirstArgumentAsName(Object[] args)
args
- arguments supplied to a ldap operation.public static Name getArgumentAsName(Object arg)
arg
- an argument supplied to an Ldap operation.public static boolean isSupportedWriteTransactionOperation(String methodName)
methodName
- name of the method to check.true
if this is a supported transaction operation,
false
otherwise.