jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r703474 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
Date Fri, 10 Oct 2008 13:38:19 GMT
Author: dpfister
Date: Fri Oct 10 06:38:18 2008
New Revision: 703474

URL: http://svn.apache.org/viewvc?rev=703474&view=rev
Log:
Make information in record log accessible in order to directly iterate over records

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java?rev=703474&r1=703473&r2=703474&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
Fri Oct 10 06:38:18 2008
@@ -294,6 +294,25 @@
     }
 
     /**
+     * Return the previous revision. This is the last revision preceding the
+     * first revision in this log.
+     *
+     * @return previous revision
+     */
+    public long getPreviousRevision() {
+        return previousRevision;
+    }
+
+    /**
+     * Return the last revision. This is the last revision in this log.
+     *
+     * @return last revision
+     */
+    public long getLastRevision() {
+        return lastRevision;
+    }
+
+    /**
      * Close this log.
      */
     public void close() {
@@ -407,5 +426,4 @@
         }
         return utflen;
     }
-
 }



Mime
View raw message