@Override
public Options getFieldOptions(DBColumn column)
{
if (column.equals(T.DEPARTMENT_ID))
{
SampleDB db = (SampleDB) getDatabase();
DBCommand cmd = db.createCommand();
cmd.select(db.T_DEPARTMENTS.DEPARTMENT_ID);
cmd.select(db.T_DEPARTMENTS.NAME);
cmd.orderBy(db.T_DEPARTMENTS.NAME);
return db.queryOptionList(cmd, SampleUtils.getConnection());
}
// base class implementation
return super.getFieldOptions(column);
}