You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2004/05/01 20:39:42 UTC
svn commit: rev 10482 - incubator/directory/rms/trunk/je/src/java/org/apache/rms/je
Author: akarasulu
Date: Sat May 1 11:39:41 2004
New Revision: 10482
Modified:
incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/JeIterator.java
Log:
cleaned up the access modifiers and dangling methods that were not used
Modified: incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/JeIterator.java
==============================================================================
--- incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/JeIterator.java (original)
+++ incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/JeIterator.java Sat May 1 11:39:41 2004
@@ -200,18 +200,6 @@
/**
- * Gets the failure that prematurely closed this cursor.
- *
- * @return the failure that prematurely closed this cursor, or null if
- * no failures occured during cursor operation
- */
- public final Throwable getFault()
- {
- return fault ;
- }
-
-
- /**
* Gets the status of the last prefetch operation against a JE cursor.
*
* @return the status of the last prefetch operation
@@ -223,47 +211,25 @@
/**
- * Gets the optional binding for this iterator.
- *
- * @return the optional binding for this iterator
- */
- public final EntryBinding getBinding()
- {
- return binding ;
- }
-
-
- /**
- * Sets and returns the status for call chaining - closes this iterator if
- * status is not equal to OperationStatus.SUCCESS.
+ * Gets the failure that prematurely closed this cursor.
*
- * @param status the status to set
- * @return the status argument for call chaining
+ * @return the failure that prematurely closed this cursor, or null if
+ * no failures occured during cursor operation
*/
- protected final OperationStatus setStatus( OperationStatus status )
+ public final Throwable getFault()
{
- this.status = status ;
-
- if ( status != OperationStatus.SUCCESS )
- {
- close() ;
- }
-
- return this.status ;
+ return fault ;
}
/**
- * Use this close method when failures cause this iterator to close
- * prematurely, this sets the fault member of the class before a regular
- * close call.
+ * Gets the optional binding for this iterator.
*
- * @param fault a failure that caused this iterator to prematurely close
+ * @return the optional binding for this iterator
*/
- protected final void close( Throwable fault )
+ public final EntryBinding getBinding()
{
- this.fault = fault ;
- close() ;
+ return binding ;
}
@@ -319,28 +285,6 @@
/**
- * Gets the primary key entry.
- *
- * @return the primary key entry
- */
- public final DatabaseEntry getPrimaryKey()
- {
- return pk ;
- }
-
-
- /**
- * Gets the record data if both pk and data fetches are enabled.
- *
- * @return the record data
- */
- public final DatabaseEntry getRecordData()
- {
- return data ;
- }
-
-
- /**
* Gets whether or not this iterator fetches record data.
*
* @return whether or not this iterator fetches record data
@@ -351,37 +295,42 @@
}
- /**
- * Gets the monitor for this JeIterator.
- *
- * @return the monitor currently in use for sending event callbacks to
- */
- protected final JeIteratorMonitor getMonitor()
- {
- return this.monitor ;
- }
+ // -----------------------------------------------------------------------
+ // Protected Methods
+ // -----------------------------------------------------------------------
/**
- * Sets and returns the prefetched object.
+ * Sets and returns the status for call chaining - closes this iterator if
+ * status is not equal to OperationStatus.SUCCESS.
*
- * @param prefetched object that was prefetched to set
- * @return the argument for call chaining
+ * @param status the status to set
+ * @return the status argument for call chaining
*/
- protected final Object setPrefetched( Object prefetched )
+ private final OperationStatus setStatus( OperationStatus status )
{
- return this.prefetched = prefetched ;
+ this.status = status ;
+
+ if ( status != OperationStatus.SUCCESS )
+ {
+ close() ;
+ }
+
+ return this.status ;
}
/**
- * Gets the prefetched object.
+ * Use this close method when failures cause this iterator to close
+ * prematurely, this sets the fault member of the class before a regular
+ * close call.
*
- * @return the prefetched object or null if nothing was prefetched
+ * @param fault a failure that caused this iterator to prematurely close
*/
- protected final Object getPrefetched()
+ private final void close( Throwable fault )
{
- return this.prefetched ;
+ this.fault = fault ;
+ close() ;
}
@@ -394,7 +343,7 @@
* @throws DatabaseException if any failures accessing the database
* @throws DatabaseException if any failures occur while binding
*/
- protected final Object prefetch() throws DatabaseException, IOException
+ private final Object prefetch() throws DatabaseException, IOException
{
if ( data != null )
{
@@ -429,7 +378,7 @@
*
* @throws DatabaseException on failures while closing the join cursor
*/
- protected void cleanup() throws DatabaseException
+ private final void cleanup() throws DatabaseException
{
DatabaseException e = null ;