| | |
| | | try |
| | | { |
| | | // Invoke the operation. |
| | | operation.invokeOperation(txn); |
| | | operation.invokeOperation(txn, commit); |
| | | |
| | | // One last check before committing. |
| | | if (ldapOperation != null) { |
| | |
| | | * Invoke the operation under the given transaction. |
| | | * |
| | | * @param txn The transaction to be used to perform the operation. |
| | | * @param willCommit Indicates whether or not the caller will commit. |
| | | * @throws NdbApiException If an error occurs in the NDB database. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | * @throws NDBException If an error occurs in the NDB backend. |
| | | */ |
| | | public abstract void invokeOperation(AbstractTransaction txn) |
| | | throws NdbApiException, DirectoryException, |
| | | public abstract void invokeOperation(AbstractTransaction txn, |
| | | boolean willCommit) throws NdbApiException, DirectoryException, |
| | | CanceledOperationException, NDBException; |
| | | |
| | | /** |
| | |
| | | * Invoke the operation under the given transaction. |
| | | * |
| | | * @param txn The transaction to be used to perform the operation. |
| | | * @param willCommit Indicates whether or not the caller will commit. |
| | | * @throws NdbApiException If an error occurs in the NDB database. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | * @throws NDBException If an error occurs in the NDB backend. |
| | | */ |
| | | public void invokeOperation(AbstractTransaction txn) |
| | | public void invokeOperation(AbstractTransaction txn, boolean willCommit) |
| | | throws NdbApiException, DirectoryException, NDBException |
| | | { |
| | | // Check that the parent entry exists. |
| | |
| | | // Insert. |
| | | try { |
| | | dn2id.insert(txn, entry.getDN(), entryID, entry); |
| | | txn.execute(); |
| | | if (!willCommit) { |
| | | txn.execute(); |
| | | } |
| | | } catch (NdbApiException ne) { |
| | | if (ne.getErrorObj().getClassification() == |
| | | NdbError.Classification.ConstraintViolation) |
| | |
| | | * Invoke the operation under the given transaction. |
| | | * |
| | | * @param txn The transaction to be used to perform the operation. |
| | | * @param willCommit Indicates whether or not the caller will commit. |
| | | * @throws NdbApiException If an error occurs in the NDB database. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | * @throws NDBException If an error occurs in the NDB backend. |
| | | */ |
| | | public void invokeOperation(AbstractTransaction txn) |
| | | public void invokeOperation(AbstractTransaction txn, boolean willCommit) |
| | | throws CanceledOperationException, NdbApiException, |
| | | DirectoryException, NDBException |
| | | { |
| | |
| | | /** |
| | | * Invoke the operation under the given transaction. |
| | | * |
| | | * @param txn The transaction to be used to perform the operation |
| | | * @param txn The transaction to be used to perform the operation. |
| | | * @param willCommit Indicates whether or not the caller will commit. |
| | | * @throws NdbApiException If an error occurs in the NDB database. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | * @throws NDBException If an error occurs in the NDB backend. |
| | | */ |
| | | public void invokeOperation(AbstractTransaction txn) |
| | | public void invokeOperation(AbstractTransaction txn, boolean willCommit) |
| | | throws NdbApiException, DirectoryException, NDBException |
| | | { |
| | | entry = dn2id.get(txn, entryDN, lockMode); |
| | |
| | | * Invoke the operation under the given transaction. |
| | | * |
| | | * @param txn The transaction to be used to perform the operation. |
| | | * @param willCommit Indicates whether or not the caller will commit. |
| | | * @throws NdbApiException If an error occurs in the NDB database. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | * @throws NDBException If an error occurs in the NDB backend. |
| | | */ |
| | | public void invokeOperation(AbstractTransaction txn) throws NdbApiException, |
| | | DirectoryException, |
| | | NDBException |
| | | public void invokeOperation(AbstractTransaction txn, boolean willCommit) |
| | | throws NdbApiException, DirectoryException, NDBException |
| | | { |
| | | DN entryDN = newEntry.getDN(); |
| | | entryID = (Long) oldEntry.getAttachment(); |
| | |
| | | * Invoke the operation under the given transaction. |
| | | * |
| | | * @param txn The transaction to be used to perform the operation. |
| | | * @param willCommit Indicates whether or not the caller will commit. |
| | | * @throws NdbApiException If an error occurs in the NDB database. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | * @throws NDBException If an error occurs in the NDB backend. |
| | | */ |
| | | public void invokeOperation(AbstractTransaction txn) |
| | | public void invokeOperation(AbstractTransaction txn, boolean willCommit) |
| | | throws NdbApiException, DirectoryException, |
| | | CanceledOperationException, NDBException |
| | | { |