|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.dbforms.DbFormsUtil
Utility class for DBForms applications.
Constructor Summary | |
DbFormsUtil()
|
Method Summary | |
static Hashtable |
getHt(HttpServletRequest request,
String tableId,
String id)
Build an hashTable object used to position the DbForms recordset to the record whose key match the hashTable tableId value See dbform::gotoHt attribute for further details. |
static Hashtable |
getHt(HttpSession session,
String tableId,
String id)
Build an hashTable object used to position the DbForms recordset to the record whose key match the hashTable tableId value See dbform::gotoHt attribute for further details. |
static String |
getValue(Map map,
String field)
Get the value of the field contained into the input mapS. |
static String |
getValue(Map map,
String field,
String defaultValue)
Get the value of the field contained into the input map object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbFormsUtil()
Method Detail |
public static Hashtable getHt(HttpServletRequest request, String tableId, String id)
dbform::gotoHt
attribute for further details.
request
- the HttpRequest objecttableId
- the table single key field nameid
- the request attribute/parameter name to use as the table key
public static Hashtable getHt(HttpSession session, String tableId, String id)
dbform::gotoHt
attribute for further details.
session
- the HttpSession objecttableId
- the table single key field nameid
- the request attribute/parameter name to use as the table key
public static String getValue(Map map, String field, String defaultValue)
map
- the map containing the field objectfield
- the field to checkdefaultValue
- the default value to return if the map or its field are null
public static String getValue(Map map, String field)
map
- the map containing the field objectfield
- the field to check
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |