protected BerkeleyDBLocalDelegateTreeSubNodeMap( BerkeleyDBPersistenceManager persistenceManager, BerkeleyDBTransaction transaction, DelegateTreeNode parent, Namespace from, Namespace to) { try { this.persistenceManager = persistenceManager; this.transaction = transaction; this.parent = parent; this.index = persistenceManager .getEntityStore() .delegateTreeSubNodeEntityParentSubindex( new BerkeleyDBDelegateTreeNodeEntity.PrimaryKeyData( parent.getStatementUuid(), parent.getPrefix())); this.from = from; this.primaryKeyFrom = new BerkeleyDBDelegateTreeNodeEntity.PrimaryKeyData(parent.getStatementUuid(), from); this.to = to; this.primaryKeyTo = new BerkeleyDBDelegateTreeNodeEntity.PrimaryKeyData(parent.getStatementUuid(), to); } catch (DatabaseException e) { throw persistenceManager.convertDatabaseException(e); } }
public BerkeleyDBLocalDelegateTreeSubNodeMap( BerkeleyDBPersistenceManager persistenceManager, BerkeleyDBTransaction transaction, DelegateTreeNode parent) { this( persistenceManager, transaction, parent, parent.getPrefix().initiator(), parent.getPrefix().terminator()); }