edu.indiana.iucbrf.feature
Class DBFeatureKeyIntFactory
java.lang.Object
edu.indiana.iucbrf.feature.FeatureKeyFactory
edu.indiana.iucbrf.feature.FeatureKeyIntFactory
edu.indiana.iucbrf.feature.DBFeatureKeyIntFactory
- All Implemented Interfaces:
- java.io.Serializable
public class DBFeatureKeyIntFactory
- extends FeatureKeyIntFactory
In contrast to FeatureKeyIntFactory, DBFeatureKeyIntFactory does not store
the next key in memory. Rather, it reads from the database each time a new
key is needed, and writes to the database each time the next available key
is incremented.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBFeatureKeyIntFactory
public DBFeatureKeyIntFactory(DBInfo info)
- Creates a new instance of DBFeatureKeyIntFactory
generateKey
public FeatureKey generateKey()
- Method generateKey
- Overrides:
generateKey
in class FeatureKeyIntFactory
- Returns:
- a FeatureKey
getAndIncrementNextKeyFromDB
public int getAndIncrementNextKeyFromDB()