public class BasicDBTreeProvider extends DBTreeProvider<java.lang.Integer,java.lang.String>
db
Constructor and Description |
---|
BasicDBTreeProvider(DBFunctions db)
Build the tree options taking from each database row:
first column: node id == option key second column: parent id third column: value == displayed option string |
BasicDBTreeProvider(DBFunctions db,
java.lang.String sIDColumn,
java.lang.String sParentColumn,
java.lang.String sValueColumn)
Build the tree of options taking the specified columns from each database row.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getKey()
Get the key object (unique identifier of the node).
|
java.lang.Integer |
getParent()
Get the parent id (should match the
TreeProvider.getKey() for another entry). |
java.lang.String |
getValue()
Get the value that is to be displayed for this node.
|
moveNext
public BasicDBTreeProvider(DBFunctions db)
db
- public BasicDBTreeProvider(DBFunctions db, java.lang.String sIDColumn, java.lang.String sParentColumn, java.lang.String sValueColumn)
db
- sIDColumn
- sParentColumn
- sValueColumn
- public java.lang.Integer getKey()
TreeProvider
public java.lang.Integer getParent()
TreeProvider
TreeProvider.getKey()
for another entry).public java.lang.String getValue()
TreeProvider