directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r659726 - in /directory/apacheds/branches/bigbang: btree-base/src/main/java/org/apache/directory/server/xdbm/Store.java jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
Date Sat, 24 May 2008 00:32:21 GMT
Author: akarasulu
Date: Fri May 23 17:32:19 2008
New Revision: 659726

URL: http://svn.apache.org/viewvc?rev=659726&view=rev
Log:
adding convenient context entry id lookup method

Modified:
    directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Store.java
    directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java

Modified: directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Store.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Store.java?rev=659726&r1=659725&r2=659726&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Store.java
(original)
+++ directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Store.java
Fri May 23 17:32:19 2008
@@ -122,7 +122,10 @@
 
     ServerEntry getContextEntry();
 
+    
+    Long getContextEntryId();
 
+    
     void setSuffixDn( String suffixDn );
 
 

Modified: directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java?rev=659726&r1=659725&r2=659726&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
(original)
+++ directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
Fri May 23 17:32:19 2008
@@ -140,6 +140,7 @@
 
 
     private ServerEntry contextEntry;
+    private Long contextEntryId;
     private String suffixDn;
     private int cacheSize = DEFAULT_CACHE_SIZE;
     private String name;
@@ -178,6 +179,12 @@
     {
         return contextEntry;
     }
+    
+    
+    public Long getContextEntryId()
+    {
+        return contextEntryId;
+    }
 
 
     public void setSuffixDn( String suffixDn )
@@ -286,6 +293,8 @@
         contextEntry.getDn().normalize( attributeTypeRegistry.getNormalizerMapping() );
 
         initSuffixEntry3( suffixDn, contextEntry );
+        
+        contextEntryId = getEntryId( contextEntry.getDn().getNormName() );
 
         // We are done !
         initialized = true;



Mime
View raw message