public interface JoinOnSpec<Self extends org.hswebframework.ezorm.core.TermTypeConditionalSupport>
| 限定符和类型 | 方法和说明 |
|---|---|
<T,T2> Self |
applyColumn(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String termType,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on 字段关联条件
// join on t.age > d.max_age
applyColumn(MyEntity::getAge,"gt",Detail::getMaxAge)
|
<T,T2> Self |
applyColumn(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String termType,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on 字段关联条件
// join detail d on d.age > d2.max_age
applyColumn(Detail::getAge,"gt","d2",Detail::getMaxAge)
|
default <T,T2> Self |
gt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on > 条件
// join detail d on d.max_age > t.age
gt(DetailEntity::getMaxAge,MyEntity::getAge)
|
default <T,T2> Self |
gt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on > 条件
// join detail d on d.max_age > t2.age
gt(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
|
default <T,T2> Self |
gte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on >= 条件
// join detail d on d.max_age >= t.age
gte(DetailEntity::getMaxAge,MyEntity::getAge)
|
default <T,T2> Self |
gte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on >= 条件
// join detail d on d.max_age >= t2.age
gte(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
|
default <T,T2> Self |
is(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on = 条件
// join detail d on d.id = t.id
is(DetailEntity::getId,MyEntity::getId)
|
default <T,T2> Self |
is(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on = 条件
// join detail d on d.id = d2.id
is("id","d2",MyEntity::getId)
|
default <T,T2> Self |
lt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on < 条件
// join detail d on d.max_age < t.age
lt(DetailEntity::getMaxAge,MyEntity::getAge)
|
default <T,T2> Self |
lt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on < 条件
// join detail d on d.max_age < t2.age
lt(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
|
default <T,T2> Self |
lte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on <= 条件
// join detail d on d.max_age <= t.age
lte(DetailEntity::getMaxAge,MyEntity::getAge)
|
default <T,T2> Self |
lte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on <= 条件
// join detail d on d.max_age <= t2.age
lte(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
|
default <T,T2> Self |
not(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on !
|
default <T,T2> Self |
not(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn,
String alias,
org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
设置 join on !
|
default <T,T2> Self is(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.id = t.id
is(DetailEntity::getId,MyEntity::getId)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列default <T,T2> Self is(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.id = d2.id
is("id","d2",MyEntity::getId)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列alias - 另外一个join表的别名default <T,T2> Self not(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.id != t.id
not(DetailEntity::getId,MyEntity::getId)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列default <T,T2> Self not(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.id != d2.id
not("id","d2",MyEntity::getId)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列alias - 另外一个join表的别名default <T,T2> Self gt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age > t.age
gt(DetailEntity::getMaxAge,MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列default <T,T2> Self gt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age > t2.age
gt(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列alias - 另外一个join表的别名default <T,T2> Self gte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age >= t.age
gte(DetailEntity::getMaxAge,MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列default <T,T2> Self gte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age >= t2.age
gte(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列alias - 另外一个join表的别名default <T,T2> Self lt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age < t.age
lt(DetailEntity::getMaxAge,MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列default <T,T2> Self lt(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age < t2.age
lt(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列alias - 另外一个join表的别名default <T,T2> Self lte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age <= t.age
lte(DetailEntity::getMaxAge,MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列default <T,T2> Self lte(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.max_age <= t2.age
lte(DetailEntity::getMaxAge,"t2",MyEntity::getAge)
T - TT2 - T2joinColumn - 关联表列mainOrJoinColumn - 主表或者其他关联表列alias - 另外一个join表的别名<T,T2> Self applyColumn(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String termType, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join on t.age > d.max_age
applyColumn(MyEntity::getAge,"gt",Detail::getMaxAge)
joinColumn - 列名,可以为其他关联表的列名termType - 条件类型 TermType TermFragmentBuilder.getId()mainOrJoinColumn - 关联表列名<T,T2> Self applyColumn(org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T> joinColumn, String termType, String alias, org.hswebframework.ezorm.core.StaticMethodReferenceColumn<T2> mainOrJoinColumn)
// join detail d on d.age > d2.max_age
applyColumn(Detail::getAge,"gt","d2",Detail::getMaxAge)
joinColumn - 列名,可以为其他关联表的列名termType - 条件类型 TermType TermFragmentBuilder.getId()alias - 另外一个join表别名mainOrJoinColumn - 关联表列名Copyright © 2016–2023. All rights reserved.