|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.icc.dbforms.util.DBUtils
public final class DBUtils
Helper/Utility class for utility operations such as String trim or null check, etc.
Constructor Summary | |
---|---|
DBUtils()
|
Method Summary | |
---|---|
static java.lang.String |
createCanonicalPath(java.lang.String ddePath,
DataDictionary dataDictionary)
Adds collection marker in the path |
static java.util.List |
getAttachmentDocs(java.lang.String dataXml)
|
static Element |
getChildNode(Element parent,
java.lang.String nodeName)
Returns a child node for the given parent |
static Element |
getControlDataRoot(XMLHelperUtil data)
|
static java.lang.String |
getDisplayName(int state)
Get the display name for a State given the state identifier. |
static LocalizationResourceInfo |
getLocalizationResourceInfo(java.util.List infoList,
java.lang.String locale)
|
static java.lang.String |
getParameter(java.lang.String sParameterName,
HttpServletRequest request,
java.lang.String sDefaultValue)
Extract a servlet call parameter from the request url and return as string (default value if parameter not given and default provided with the call). |
static java.lang.String |
NVL(java.lang.String string)
Check if String is NULL and if so return an empty string. |
static java.lang.String |
stringDefault(java.lang.String string,
java.lang.String sDefaultString)
Set a string with a default value if that is not empty. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBUtils()
Method Detail |
---|
public static java.lang.String NVL(java.lang.String string)
string
- The given string.
public static java.lang.String stringDefault(java.lang.String string, java.lang.String sDefaultString)
string
- Destination string.sDefaultString
- Default to set.public static java.lang.String getParameter(java.lang.String sParameterName, HttpServletRequest request, java.lang.String sDefaultValue)
sParameterName
- Name of parameter to extract.request
- HttpServletRequest
object.sDefaultValue
- String with default value should the parameter not be in the
request.
public static java.lang.String getDisplayName(int state)
state
- The state identifier.
public static java.lang.String createCanonicalPath(java.lang.String ddePath, DataDictionary dataDictionary) throws DCTException
ddePath
- dataDictionary
-
DCTException
public static LocalizationResourceInfo getLocalizationResourceInfo(java.util.List infoList, java.lang.String locale)
public static java.util.List getAttachmentDocs(java.lang.String dataXml) throws java.io.IOException
java.io.IOException
public static Element getControlDataRoot(XMLHelperUtil data)
public static Element getChildNode(Element parent, java.lang.String nodeName)
parent node and nodeName
- Parameters:
parent
- parent node whose child is to be returnednodeName
- name of the child node
- Returns:
- child node for the given
parent node and
nodeName. Create if one does not exist.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |