gov.usda.gdpc.database
Class AbstractDatabaseMappingIndex

java.lang.Object
  extended bygov.usda.gdpc.database.AbstractDatabaseMappingIndex
All Implemented Interfaces:
DatabaseMappingIndex
Direct Known Subclasses:
DefaultDatabaseMappingIndex

public abstract class AbstractDatabaseMappingIndex
extends java.lang.Object
implements DatabaseMappingIndex

This class provides a skeletal implementation of the IndexDatabaseMapping interface, to minimize the effort required to implement this interface.

Author:
terryc

Constructor Summary
AbstractDatabaseMappingIndex()
          AbstractDatabaseMappingIndex Constructor.
AbstractDatabaseMappingIndex(int index)
          AbstractDatabaseMappingIndex Constructor.
 
Method Summary
 int getIndex()
          Returns the index.
 void setIndex(int index)
          Sets the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDatabaseMappingIndex

public AbstractDatabaseMappingIndex()
AbstractDatabaseMappingIndex Constructor. Index value defaults to zero.


AbstractDatabaseMappingIndex

public AbstractDatabaseMappingIndex(int index)
AbstractDatabaseMappingIndex Constructor. This sets the index to the given value.

Parameters:
index - index
Method Detail

getIndex

public int getIndex()
Returns the index.

Specified by:
getIndex in interface DatabaseMappingIndex
Returns:
index

setIndex

public void setIndex(int index)
Sets the index.

Specified by:
setIndex in interface DatabaseMappingIndex
Parameters:
index - index