edu.indiana.iucbrf.feature
Class FeatureKeyFactory

java.lang.Object
  extended by edu.indiana.iucbrf.feature.FeatureKeyFactory
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FeatureKeyIntFactory

public abstract class FeatureKeyFactory
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected static java.lang.String constantName
           
protected  boolean dbFactory
           
protected  DBInfo info
           
protected  boolean nextKeyValueSet
           
 
Constructor Summary
FeatureKeyFactory()
           
FeatureKeyFactory(DBInfo info)
           
 
Method Summary
 FeatureKey convertDBStringToKey(java.lang.String dbEntry)
           
 void finalize()
          Method finalize
abstract  FeatureKey generateKey()
           
protected  boolean isDBFactory()
          Method isDBFactory
protected  boolean isNextKeyValueSet()
          Method isNextKeyValueSet
protected  void setDBFactory(boolean dbFactory)
          This method is called if the factory will be interacting with the database.
protected  void setNextKeyFromDB()
           
protected  void setNextKeyValueSet(boolean nextKeyValueSet)
          Method setNextKeyValueSet
 void shutDown()
          Shutsdown the factory by storing the nextKey in the database.
protected  void storeNextKeyToDB()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbFactory

protected boolean dbFactory

info

protected DBInfo info

constantName

protected static final java.lang.String constantName
See Also:
Constant Field Values

nextKeyValueSet

protected boolean nextKeyValueSet
Constructor Detail

FeatureKeyFactory

public FeatureKeyFactory()

FeatureKeyFactory

public FeatureKeyFactory(DBInfo info)
Method Detail

generateKey

public abstract FeatureKey generateKey()

setNextKeyValueSet

protected void setNextKeyValueSet(boolean nextKeyValueSet)
Method setNextKeyValueSet

Parameters:
nextKeyValueSet - a boolean

isNextKeyValueSet

protected boolean isNextKeyValueSet()
Method isNextKeyValueSet

Returns:
a boolean

setDBFactory

protected void setDBFactory(boolean dbFactory)
This method is called if the factory will be interacting with the database.

Parameters:
dbFactory - a boolean

isDBFactory

protected boolean isDBFactory()
Method isDBFactory

Returns:
a boolean

shutDown

public void shutDown()
Shutsdown the factory by storing the nextKey in the database.


finalize

public void finalize()
Method finalize

Overrides:
finalize in class java.lang.Object

convertDBStringToKey

public FeatureKey convertDBStringToKey(java.lang.String dbEntry)

setNextKeyFromDB

protected void setNextKeyFromDB()

storeNextKeyToDB

protected void storeNextKeyToDB()