|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.query.ChainedBeanQuery<P>
P - the type of the result of the query
@Deprecated public final class ChainedBeanQuery<P>
A chained query, that allows two or more queries to be joined.
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.
| Method Summary | ||
|---|---|---|
P |
get(Bean bean)
Deprecated. Queries a value from the specified bean. |
|
List<BeanQuery<?>> |
getChain()
Deprecated. Gets the list of queries being chained. |
|
static
|
of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<? extends Bean> prop3,
BeanQuery<P> prop4)
Deprecated. Obtains a chained query from four queries. |
|
static
|
of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<P> prop3)
Deprecated. Obtains a chained query from three queries. |
|
static
|
of(BeanQuery<? extends Bean> prop1,
BeanQuery<P> prop2)
Deprecated. Obtains a chained query from two other queries. |
|
String |
toString()
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 null
IllegalArgumentException - if unable to obtain the meta-bean
public 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 null
IllegalArgumentException - if unable to obtain the meta-bean
public 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 null
IllegalArgumentException - 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.
get in interface BeanQuery<P>bean - the bean to query, not null
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||