public class HasRelation<T extends org.dbflute.cbean.ConditionBean> extends BaseMatcher<T>
T
for further assertion.
Examle:
MemberCB cb = ...;
cb.query().queryMemberStatus().setMemberStatusCode_Equal("ACT");
assertThat(cb, hasRelation("memberStatus", hasCondition("memberStatusCode", equal("ACT"))));
コンストラクタと説明 |
---|
HasRelation(String table,
HasCondition<T> subsequent) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
describeMismatch(Object item,
Description description) |
void |
describeTo(Description description) |
protected org.dbflute.cbean.ConditionQuery |
getCQ(org.dbflute.cbean.ConditionQuery cq,
String[] tables)
Gets ConditionQuery for related table
table . |
static <T extends org.dbflute.cbean.ConditionBean> |
hasRelation(String table,
HasCondition<T> relationCondition) |
boolean |
matches(Object item) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public HasRelation(String table, HasCondition<T> subsequent)
public boolean matches(Object item)
public void describeTo(Description description)
public void describeMismatch(Object item, Description description)
describeMismatch
インタフェース内 Matcher<T extends org.dbflute.cbean.ConditionBean>
describeMismatch
クラス内 BaseMatcher<T extends org.dbflute.cbean.ConditionBean>
protected org.dbflute.cbean.ConditionQuery getCQ(org.dbflute.cbean.ConditionQuery cq, String[] tables)
table
.cq
- the instance of ConditionQuerytables
- names of relation tablestable
org.dbflute.helper.beans.exception.DfBeanPropertyNotFoundException
- no getter method for table
public static <T extends org.dbflute.cbean.ConditionBean> HasRelation<T> hasRelation(String table, HasCondition<T> relationCondition)
Copyright © 2015 The DBFlute Project. All rights reserved.