public class Join<SRC,DST>
extends java.lang.Object
Constructor and Description |
---|
Join(java.lang.String sourceTablePrefix,
Property sourceJoinProperty,
AbstractDao<DST,?> daoDestination,
Property destinationJoinProperty,
java.lang.String joinTablePrefix) |
Modifier and Type | Method and Description |
---|---|
WhereCondition |
and(WhereCondition cond1,
WhereCondition cond2,
WhereCondition... condMore)
Creates a WhereCondition by combining the given conditions using AND.
|
java.lang.String |
getTablePrefix()
Usually you don't need this value; just in case you are mixing custom
WhereCondition.StringCondition into the query, this value allows to reference
the joined (target) table. |
WhereCondition |
or(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.
|
public Join(java.lang.String sourceTablePrefix, Property sourceJoinProperty, AbstractDao<DST,?> daoDestination, Property destinationJoinProperty, java.lang.String joinTablePrefix)
public Join<SRC,DST> where(WhereCondition cond, WhereCondition... condMore)
public Join<SRC,DST> whereOr(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)
public WhereCondition or(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)
where(WhereCondition, WhereCondition...)
or
whereOr(WhereCondition, WhereCondition, WhereCondition...)
.public WhereCondition and(WhereCondition cond1, WhereCondition cond2, WhereCondition... condMore)
where(WhereCondition, WhereCondition...)
or
whereOr(WhereCondition, WhereCondition, WhereCondition...)
.public java.lang.String getTablePrefix()
WhereCondition.StringCondition
into the query, this value allows to reference
the joined (target) table.Available under the Apache License, Version 2.0 - Copyright © 2011-2015 greenrobot.de. All Rights Reserved.