public class QueryBuilder.PopulateUsing extends QueryBuilder.From
| Constructor and Description |
|---|
QueryBuilder.PopulateUsing(QueryBuilder.Alias<?> aliasPK,
QueryBuilder.Alias<?> aliasFK) |
| Modifier and Type | Method and Description |
|---|---|
QueryBuilder.From |
inProperty(Object propertyBean)
Defines the property of foreign bean (specified on
UsingPK#in(Alias) method)
that will receive the value from alias PK (specified on On#pkOf(Alias) method)
E.g.:
builder.select(user, city)
|
QueryBuilder.From |
inPropertyForcingInstance(Object propertyBean)
Defines the property of foreign bean (specified on
UsingPK#in(Alias) method)
that will receive the value from alias PK (specified on On#pkOf(Alias) method) and
force the creation of a new instance if bean property is not set. |
QueryBuilder.From |
pkProperty(Object propertyBean)
Defines the property of primary bean (specified on
On#pkOf(Alias) method)
that will receive the value from foreign alias (aliasFK) (specified on UsingPK#in(Alias) method)
Note: The pkProperty is generally used in 1x1 relationship. |
QueryBuilder.From |
pkPropertyForcingInstance(Object propertyBean)
Defines the property of primary bean (specified on
On#pkOf(Alias) method)
that will receive the value from foreign alias (aliasFK) (specified on UsingPK#in(Alias) method) and
force the creation of a new instance if bean property is not set. |
append, groupBy, groupBy, groupBy, groupByProp, join, join, leftJoin, limit, orderBy, rightJoin, whereexecuteQuery, executeSentence, getParamValues, getSQL, getValueFromResultSet, preparepublic QueryBuilder.PopulateUsing(QueryBuilder.Alias<?> aliasPK, QueryBuilder.Alias<?> aliasFK)
public QueryBuilder.From inPropertyForcingInstance(Object propertyBean)
UsingPK#in(Alias) method)
that will receive the value from alias PK (specified on On#pkOf(Alias) method) and
force the creation of a new instance if bean property is not set.
builder.select(user, city)
.from(user)
.join(city)
.pkOf(city).in(user)
.inPropertyForcingInstance(user.pxy().getCity())
...
propertyBean - Alias#put(Object, boolean, Alias)public QueryBuilder.From inProperty(Object propertyBean)
UsingPK#in(Alias) method)
that will receive the value from alias PK (specified on On#pkOf(Alias) method)
builder.select(user, city)
.from(user)
.join(city)
.pkOf(city).in(user)
.inProperty(user.pxy().getCity())
...
propertyBean - Alias#put(Object, boolean, Alias)public QueryBuilder.From pkPropertyForcingInstance(Object propertyBean)
On#pkOf(Alias) method)
that will receive the value from foreign alias (aliasFK) (specified on UsingPK#in(Alias) method) and
force the creation of a new instance if bean property is not set.
builder.select(person, identity)
.from(person)
.join(identity)
.pkOf(person).in(identity)
.pkPropertyForcingInstance(person.pxy().getIdentity())
...
propertyBean - Alias#put(Object, boolean, Alias)public QueryBuilder.From pkProperty(Object propertyBean)
On#pkOf(Alias) method)
that will receive the value from foreign alias (aliasFK) (specified on UsingPK#in(Alias) method)
builder.select(person, identity)
.from(person)
.join(identity)
.pkOf(person).in(identity)
.pkProperty(person.pxy().getIdentity())
...
propertyBean - Alias#put(Object, boolean, Alias)Copyright © 2016. All Rights Reserved.