|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.qml.QMLHelper
Utility functions
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static char |
NEW_WILDCARD
|
private static char |
OLD_WILDCARD
|
Constructor Summary | |
QMLHelper()
|
Method Summary | |
private static boolean |
containsEmptyValue(Hashtable a_parameterMap,
Object a_key)
|
static void |
dropEmptyCriteria(Node a_contextNode,
Hashtable a_parameterMap)
This method drops empty critieria Elements in the document. |
static Vector |
getAliases(NodeList a_list)
This method returns a Vector of aliases from the list of Elements. |
static Map |
getJoinAliases(Node a_contextNode,
String a_joinTag)
This method returns a Map of aliases for Join Elements in the document. |
static String |
getOtherOperandType(Node a_contextNode)
This method returns the type of the other operand in a condition element. |
static String |
getRootAlias(Node a_contextNode)
This method gets the root TypeInstance alias specified in the document. |
static boolean |
isAdvancedQuery(Node a_contextNode)
This method indicates if the document contains advancend query features. |
static boolean |
isInflateRequired(Element a_element)
|
static boolean |
isStringBound(Element a_element)
|
static boolean |
makeValid(Element a_contextNode)
This method validates the QML based relative to the specified context Node. |
private static boolean |
makeValidJoin(Element a_contextNode)
|
private static boolean |
makeValidOrderBy(Element a_contextNode)
|
private static boolean |
makeValidWhere(Element a_contextNode)
|
private static void |
removeConditionElement(Element a_condition)
|
static Element |
removeNegatedCompositeConditions(Element a_conditionElement)
|
static Object |
replaceLikeWildcard(Element a_operandChildElement,
Object a_value)
|
static void |
setRootAlias(Node a_contextNode,
String a_rootAlias)
This method sets the root TypeInstance alias in the document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
public static final boolean DEBUG
private static final DebugWriter LOG
private static final char OLD_WILDCARD
private static final char NEW_WILDCARD
Constructor Detail |
public QMLHelper()
Method Detail |
public static String getOtherOperandType(Node a_contextNode) throws WTException
a_contextNode
- Relative, inclusive Node
WTException
public static boolean isAdvancedQuery(Node a_contextNode) throws WTException
a_contextNode
- Absolute context Node
WTException
public static String getRootAlias(Node a_contextNode) throws WTException
a_contextNode
- Absolute context Node
WTException
public static void setRootAlias(Node a_contextNode, String a_rootAlias) throws WTException
a_contextNode
- Absolute context Nodea_rootAlias
- the root alias to set
WTException
public static boolean makeValid(Element a_contextNode) throws WTException
a_contextNode
- Relative, Exclusive context Node
WTException
public static Vector getAliases(NodeList a_list) throws WTException
a_list
- NodeList of Elements
WTException
public static Map getJoinAliases(Node a_contextNode, String a_joinTag) throws WTException
a_contextNode
- Absolute context Nodea_joinTag
- Join Element tag to search for
WTException
public static Element removeNegatedCompositeConditions(Element a_conditionElement) throws WTException
WTException
public static Object replaceLikeWildcard(Element a_operandChildElement, Object a_value) throws WTException
WTException
public static void dropEmptyCriteria(Node a_contextNode, Hashtable a_parameterMap) throws WTException
a_contextNode
- Absolute context Nodea_parameterMap
- Map of parameters names and values
WTException
public static boolean isStringBound(Element a_element) throws WTException
WTException
public static boolean isInflateRequired(Element a_element) throws WTException
WTException
private static void removeConditionElement(Element a_condition)
private static boolean containsEmptyValue(Hashtable a_parameterMap, Object a_key)
private static boolean makeValidWhere(Element a_contextNode) throws WTException
WTException
private static boolean makeValidOrderBy(Element a_contextNode) throws WTException
WTException
private static boolean makeValidJoin(Element a_contextNode) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |