Package org.greenrobot.greendao.query
Class Join<SRC,DST>
- java.lang.Object
-
- org.greenrobot.greendao.query.Join<SRC,DST>
-
public class Join<SRC,DST> extends java.lang.ObjectA Join lets you relate to other entity types for queries, and allows using WHERE statements on the joined entity type.
-
-
Constructor Summary
Constructors Constructor Description Join(java.lang.String sourceTablePrefix, Property sourceJoinProperty, AbstractDao<DST,?> daoDestination, Property destinationJoinProperty, java.lang.String joinTablePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WhereConditionand(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)Creates a WhereCondition by combining the given conditions using AND.java.lang.StringgetTablePrefix()Usually you don't need this value; just in case you are mixing customWhereCondition.StringConditioninto the query, this value allows to reference the joined (target) table.WhereConditionor(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)Creates a WhereCondition by combining the given conditions using OR.Join<SRC,DST>where(WhereCondition cond, WhereCondition... condMore)Adds the given conditions to the where clause using an logical AND.Join<SRC,DST>whereOr(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)Adds the given conditions to the where clause using an logical OR.
-
-
-
Constructor Detail
-
Join
public Join(java.lang.String sourceTablePrefix, Property sourceJoinProperty, AbstractDao<DST,?> daoDestination, Property destinationJoinProperty, java.lang.String joinTablePrefix)
-
-
Method Detail
-
where
public Join<SRC,DST> where(WhereCondition cond, WhereCondition... condMore)
Adds the given conditions to the where clause using an logical AND. To create new conditions, use the properties given in the generated dao classes.
-
whereOr
public Join<SRC,DST> whereOr(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)
Adds the given conditions to the where clause using an logical OR. To create new conditions, use the properties given in the generated dao classes.
-
or
public WhereCondition or(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)
Creates a WhereCondition by combining the given conditions using OR. The returned WhereCondition must be used insidewhere(WhereCondition, WhereCondition...)orwhereOr(WhereCondition, WhereCondition, WhereCondition...).
-
and
public WhereCondition and(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)
Creates a WhereCondition by combining the given conditions using AND. The returned WhereCondition must be used insidewhere(WhereCondition, WhereCondition...)orwhereOr(WhereCondition, WhereCondition, WhereCondition...).
-
getTablePrefix
public java.lang.String getTablePrefix()
Usually you don't need this value; just in case you are mixing customWhereCondition.StringConditioninto the query, this value allows to reference the joined (target) table.
-
-