K- key type (usually Integer)
V- value type (usually String)
public abstract class DBTreeProvider<K,V> extends java.lang.Object implements TreeProvider<K,V>
TreeProviderthat takes a database query as argument.
|Constructor and Description|
Constructor based on a database query.
|Modifier and Type||Method and Description|
Go to the next entry in the list.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final DBFunctions db
public DBTreeProvider(DBFunctions db)
public boolean moveNext()
DBFunctions.moveNext()to implement this function because the first call is dummy on database rows while here it is expected to actually do something from the first call. The easy way out is to do a
moveNexton the database result after executing the query and before building the tree from it.