|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.dao.AbstractDAO com.pow2.dao.HTMLDAO
HTML Data driven element builder
Field Summary |
Fields inherited from class com.pow2.dao.AbstractDAO |
cat |
Constructor Summary | |
protected |
HTMLDAO()
Default private constructor. |
Method Summary | |
String |
getSelectOptions(String table,
String idField,
String descField,
String selectedIndex)
Get the String representation of an HTML select options list
retrieving the option value and description
parameters from the input table.
|
String |
getSelectOptions(String table,
String idField,
String descField,
String condition,
String selectedIndex)
Get the String representation of an HTML select options list
retrieving the option value and description
parameters from the input table.
|
String |
getSelectOptions(String table,
String idField,
String descField,
String condition,
String orderBy,
String selectedIndex)
Get the String representation of an HTML select options list
retrieving the option value and description
parameters from the input table. |
static HTMLDAO |
instance()
Get the unique instance of HTMLDAO class. |
Methods inherited from class com.pow2.dao.AbstractDAO |
assertion, closeResources, closeResources, closeResources, count, count, delete, delete, encode, getConnection, getConnection, getNewKey, isDebugEnabled, populate, setLike, setLike |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected HTMLDAO()
Method Detail |
public static HTMLDAO instance()
public String getSelectOptions(String table, String idField, String descField, String selectedIndex) throws Exception
options
list
retrieving the option value
and description
parameters from the input table.
options
list is ordered by the descField
field vale.
table
- the table name where to retrieve the recordsidField
- the name of the value fielddescField
- the name of the description fieldselectedIndex
- the value used to set the selected
attribute to the option element whose value matches
this entry
Exception
- Description of the Exceptionpublic String getSelectOptions(String table, String idField, String descField, String condition, String selectedIndex) throws Exception
options
list
retrieving the option value
and description
parameters from the input table.
options
list is ordered by the descField
field vale.
table
- the table name where to retrieve the recordsidField
- the name of the value fielddescField
- the name of the description fieldcondition
- the SQL WHERE
conditionselectedIndex
- the value used to set the selected
attribute to the option element whose value matches
this entry
Exception
- Description of the Exceptionpublic String getSelectOptions(String table, String idField, String descField, String condition, String orderBy, String selectedIndex) throws Exception
options
list
retrieving the option value
and description
parameters from the input table.
table
- the table name where to retrieve the recordsidField
- the name of the value fielddescField
- the name of the description fieldcondition
- the SQL WHERE
conditionorderBy
- the SQL ORDERBY
statementselectedIndex
- the value used to set the selected
attribute to the option element whose value matches
this entry
Exception
- Description of the Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |