| | |
| | | |
| | | id2children = new Index(databasePrefix + "_" + ID2CHILDREN_DATABASE_NAME, |
| | | new ID2CIndexer(), state, |
| | | indexEntryLimit, 0, |
| | | indexEntryLimit, 0, true, |
| | | env,this); |
| | | id2children.open(); |
| | | id2subtree = new Index(databasePrefix + "_" + ID2SUBTREE_DATABASE_NAME, |
| | | new ID2SIndexer(), state, |
| | | indexEntryLimit, 0, |
| | | indexEntryLimit, 0, true, |
| | | env, this); |
| | | id2subtree.open(); |
| | | |
| | |
| | | */ |
| | | public Transaction beginOperationTransaction() throws DatabaseException |
| | | { |
| | | return beginTransaction(); |
| | | Transaction txn = beginTransaction(); |
| | | // Multiple adds should never encounter a deadlock. |
| | | txn.setLockTimeout(0); |
| | | return txn; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public Transaction beginOperationTransaction() throws DatabaseException |
| | | { |
| | | return beginTransaction(); |
| | | Transaction txn = beginTransaction(); |
| | | // Multiple deletes should never encounter a deadlock. |
| | | txn.setLockTimeout(0); |
| | | return txn; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public Transaction beginOperationTransaction() throws DatabaseException |
| | | { |
| | | return beginTransaction(); |
| | | Transaction txn = beginTransaction(); |
| | | // Multiple replace operations should never encounter a deadlock. |
| | | txn.setLockTimeout(0); |
| | | return txn; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public Transaction beginOperationTransaction() throws DatabaseException |
| | | { |
| | | return beginTransaction(); |
| | | Transaction txn = beginTransaction(); |
| | | return txn; |
| | | } |
| | | |
| | | /** |