public class BasicDBOptionList extends DBOptionList<java.lang.String,java.lang.String>
db
Constructor and Description |
---|
BasicDBOptionList(DBFunctions db)
Build a list of options taking the first column from the query as key (option id) and the
second column as value (displayed string).
|
BasicDBOptionList(DBFunctions db,
java.lang.String sKeyColumn,
java.lang.String sValueColumn)
Build a list of options taking from the given query specific columns as key / value.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getKey(DBFunctions dbRow)
Get the key of this option.
|
protected java.lang.String |
getValue(DBFunctions dbRow)
Get the value of this option
|
getOptions
public BasicDBOptionList(DBFunctions db)
db
- public BasicDBOptionList(DBFunctions db, java.lang.String sKeyColumn, java.lang.String sValueColumn)
db
- sKeyColumn
- sValueColumn
- protected java.lang.String getKey(DBFunctions dbRow)
DBOptionList
getKey
in class DBOptionList<java.lang.String,java.lang.String>
dbRow
- database rowprotected java.lang.String getValue(DBFunctions dbRow)
DBOptionList
getValue
in class DBOptionList<java.lang.String,java.lang.String>
dbRow
- database row