P - the type of the result of the querypublic final class ChainedBeanQuery<P> extends Object implements BeanQuery<P>
For example, consider a structure where class A has a property b of type B, and class B has a property c of type C. The compound query allows property c to be accessed directly from an instance of A.
| Modifier and Type | Method and Description |
|---|---|
P |
get(Bean bean)
Queries a value from the specified bean.
|
List<BeanQuery<?>> |
getChain()
Gets the list of queries being chained.
|
static <P> ChainedBeanQuery<P> |
of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<? extends Bean> prop3,
BeanQuery<P> prop4)
Obtains a chained query from four queries.
|
static <P> ChainedBeanQuery<P> |
of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<P> prop3)
Obtains a chained query from three queries.
|
static <P> ChainedBeanQuery<P> |
of(BeanQuery<? extends Bean> prop1,
BeanQuery<P> prop2)
Obtains a chained query from two other queries.
|
String |
toString() |
public static <P> ChainedBeanQuery<P> of(BeanQuery<? extends Bean> prop1, BeanQuery<P> prop2)
MetaProperty implements BeanQuery, so typically the parameters
are in fact meta-properties.
P - the result typeprop1 - the first query, not nullprop2 - the second query, not nullIllegalArgumentException - if unable to obtain the meta-beanpublic static <P> ChainedBeanQuery<P> of(BeanQuery<? extends Bean> prop1, BeanQuery<? extends Bean> prop2, BeanQuery<P> prop3)
MetaProperty implements BeanQuery, so typically the parameters
are in fact meta-properties.
P - the result typeprop1 - the first query, not nullprop2 - the second query, not nullprop3 - the third query, not nullIllegalArgumentException - if unable to obtain the meta-beanpublic static <P> ChainedBeanQuery<P> of(BeanQuery<? extends Bean> prop1, BeanQuery<? extends Bean> prop2, BeanQuery<? extends Bean> prop3, BeanQuery<P> prop4)
MetaProperty implements BeanQuery, so typically the parameters
are in fact meta-properties.
P - the result typeprop1 - the first query, not nullprop2 - the second query, not nullprop3 - the third query, not nullprop4 - the fourth query, not nullIllegalArgumentException - if unable to obtain the meta-beanpublic List<BeanQuery<?>> getChain()
MetaProperty implements BeanQuery, so typically the chain
is formed from meta-properties.
public P get(Bean bean)
BeanQueryThis returns a value of some kind derived from the specified bean. This might be a property value or some other derived value.
Copyright © 2007–2013 Joda.org. All rights reserved.