|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.kernel.exps.StringContains
matches()
instead.
public class StringContains
Tests if the target contains the given argument. The argument must be
a constant.
Examples:
"address.street.ext:stringContains (\"main\")"
Field Summary | |
---|---|
static String |
TAG
Deprecated. |
Constructor Summary | |
---|---|
StringContains()
Deprecated. |
Method Summary | |
---|---|
Object |
evaluate(Object target,
Class targetClass,
Object[] args,
Class[] argClasses,
Object candidate,
StoreContext ctx)
Deprecated. Evaluate the given expression. |
boolean |
expectsArguments()
Deprecated. Return true if this extension expects arguments to act on. |
boolean |
expectsTarget()
Deprecated. Return true if this extension expects a target to act on. |
String |
getTag()
Deprecated. Return the tag that this extension listens for. |
Class |
getType(Class targetClass,
Class[] argClasses)
Deprecated. Return the expected type of the result of this listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG
Constructor Detail |
---|
public StringContains()
Method Detail |
---|
public String getTag()
FilterListener
getTag
in interface FilterListener
public boolean expectsArguments()
FilterListener
field.ext:toUpperCase ()
.
expectsArguments
in interface FilterListener
public boolean expectsTarget()
FilterListener
field.ext:toUpperCase ()
acts on the target
field
but has no arguments, while another possible form,
ext:toUpperCase (field)
has no target but does have an
argument.
expectsTarget
in interface FilterListener
public Object evaluate(Object target, Class targetClass, Object[] args, Class[] argClasses, Object candidate, StoreContext ctx)
FilterListener
evaluate
in interface FilterListener
target
- the target object / field value to act on; will be
null if this extension does not expect a targettargetClass
- the expected class of the target; given in case
the target evaluates to null and typing is neededargs
- the values of the arguments given in the filter;
will be null if this extension does not expect an argumentargClasses
- the expected classes of the arguments; given in case
an argument evaluates to null and typing is neededcandidate
- the candidate object being evaluatedctx
- the persistence context
Boolean.TRUE
or Boolean.FALSE
public Class getType(Class targetClass, Class[] argClasses)
FilterListener
getType
in interface FilterListener
targetClass
- the expected class of the target, or null if no targetargClasses
- the expected classes of the arguments, or null if
no arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.