public abstract class JbootServiceJoinerImpl extends Object implements JbootServiceJoiner
| 构造器和说明 |
|---|
JbootServiceJoinerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<com.jfinal.plugin.activerecord.Record> |
findMiddleTableRecords(String tableName,
String columnName,
Object columnValue)
查询中间表数据,方便子类复写,比如:通过缓存获取等
|
<M extends JbootModel> |
join(List<M> models,
String columnName) |
<M extends JbootModel> |
join(List<M> models,
String columnName,
String joinName) |
<M extends JbootModel> |
join(List<M> models,
String columnName,
String[] attrs) |
<M extends JbootModel> |
join(List<M> models,
String columnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
join(M model,
String columnName)
添加关联数据到某个model中去,避免关联查询,提高性能。
|
<M extends JbootModel> |
join(M model,
String columnName,
String joinName)
添加关联数据到某个model中去,避免关联查询,提高性能。
|
<M extends JbootModel> |
join(M model,
String columnName,
String[] attrs)
添加关联数据到某个model中去,避免关联查询,提高性能。
|
<M extends JbootModel> |
join(M model,
String columnName,
String joinName,
String[] attrs)
添加关联数据到某个model中去,避免关联查询,提高性能。
|
<M extends JbootModel> |
join(com.jfinal.plugin.activerecord.Page<M> page,
String columnName) |
<M extends JbootModel> |
join(com.jfinal.plugin.activerecord.Page<M> page,
String columnName,
String joinName) |
<M extends JbootModel> |
join(com.jfinal.plugin.activerecord.Page<M> page,
String columnName,
String[] attrs) |
<M extends JbootModel> |
join(com.jfinal.plugin.activerecord.Page<M> page,
String columnName,
String joinName,
String[] attrs) |
protected abstract JbootModel |
joinByValue(Object columnValue,
JbootModel sourceModel)
可以让子类去复写 joinByColumnValue ,比如默认只 join 部分字段等,或者不是根据主键进行查询等
一般情况下,传入的 columnValue 是主键的值,但是也有可能不是,要看场景,如果不是的情况下可以通过 sourceModel 来进行判断
|
<M extends JbootModel> |
joinMany(List<M> models,
ObjectFunc<M> modelValueGetter,
String targetColumnName) |
<M extends JbootModel> |
joinMany(List<M> models,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinMany(List<M> models,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinMany(List<M> models,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinMany(List<M> models,
String targetColumnName) |
<M extends JbootModel> |
joinMany(List<M> models,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinMany(List<M> models,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinMany(List<M> models,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinMany(M model,
ObjectFunc<M> modelValueGetter,
String targetColumnName) |
<M extends JbootModel> |
joinMany(M model,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinMany(M model,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinMany(M model,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinMany(M model,
String targetColumnName) |
<M extends JbootModel> |
joinMany(M model,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinMany(M model,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinMany(M model,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String targetColumnName) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
String targetColumnName) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinMany(com.jfinal.plugin.activerecord.Page<M> page,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
String tableName,
String columnName,
String targetColumnName) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
String tableName,
String columnName,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
String tableName,
String columnName,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(List<M> models,
String tableName,
String columnName,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(M model,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName) |
<M extends JbootModel> |
joinManyByTable(M model,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinManyByTable(M model,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(M model,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(M model,
String tableName,
String columnName,
String targetColumnName) |
<M extends JbootModel> |
joinManyByTable(M model,
String tableName,
String columnName,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinManyByTable(M model,
String tableName,
String columnName,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(M model,
String tableName,
String columnName,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
ObjectFunc<M> modelValueGetter,
String tableName,
String columnName,
String targetColumnName,
String joinName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
String tableName,
String columnName,
String targetColumnName) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
String tableName,
String columnName,
String targetColumnName,
String joinName) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
String tableName,
String columnName,
String targetColumnName,
String[] attrs) |
<M extends JbootModel> |
joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page,
String tableName,
String columnName,
String targetColumnName,
String joinName,
String[] attrs) |
protected abstract <M extends JbootModel> |
joinManyByValue(String columnName,
Object value,
M sourceModel) |
protected <M extends JbootModel> |
keepModelListAttrs(List<M> list,
String[] attrs) |
public JbootServiceJoinerImpl()
public <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> join(com.jfinal.plugin.activerecord.Page<M> page, String columnName)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> join(com.jfinal.plugin.activerecord.Page<M> page, String columnName, String[] attrs)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> join(com.jfinal.plugin.activerecord.Page<M> page, String columnName, String joinName)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> join(com.jfinal.plugin.activerecord.Page<M> page, String columnName, String joinName, String[] attrs)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> join(List<M> models, String columnName)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> join(List<M> models, String columnName, String[] attrs)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> join(List<M> models, String columnName, String joinName)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> join(List<M> models, String columnName, String joinName, String[] attrs)
join 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M join(M model, String columnName)
join 在接口中 JbootServiceJoinermodel - 要添加到的modelcolumnName - model对于的关联字段public <M extends JbootModel> M join(M model, String columnName, String[] attrs)
join 在接口中 JbootServiceJoinermodel - columnName - attrs - public <M extends JbootModel> M join(M model, String columnName, String joinName)
join 在接口中 JbootServiceJoinermodel - columnName - joinName - public <M extends JbootModel> M join(M model, String columnName, String joinName, String[] attrs)
join 在接口中 JbootServiceJoinermodel - columnName - joinName - attrs - protected abstract JbootModel joinByValue(Object columnValue, JbootModel sourceModel)
columnValue - public <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, String targetColumnName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, String targetColumnName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, String targetColumnName, String joinName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, String targetColumnName, String joinName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, String targetColumnName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, String targetColumnName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, String targetColumnName, String joinName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, String targetColumnName, String joinName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, String targetColumnName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, String targetColumnName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, String targetColumnName, String joinName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, String targetColumnName, String joinName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String targetColumnName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String targetColumnName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinMany(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, ObjectFunc<M> modelValueGetter, String targetColumnName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, ObjectFunc<M> modelValueGetter, String targetColumnName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinMany(List<M> models, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, ObjectFunc<M> modelValueGetter, String targetColumnName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, ObjectFunc<M> modelValueGetter, String targetColumnName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName)
joinMany 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinMany(M model, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName, String[] attrs)
joinMany 在接口中 JbootServiceJoinerprotected <M extends JbootModel> List<M> keepModelListAttrs(List<M> list, String[] attrs)
protected abstract <M extends JbootModel> List<M> joinManyByValue(String columnName, Object value, M sourceModel)
public <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, String tableName, String columnName, String targetColumnName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, String tableName, String columnName, String targetColumnName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, String tableName, String columnName, String targetColumnName, String joinName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, String tableName, String columnName, String targetColumnName, String joinName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, String tableName, String columnName, String targetColumnName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, String tableName, String columnName, String targetColumnName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, String tableName, String columnName, String targetColumnName, String joinName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, String tableName, String columnName, String targetColumnName, String joinName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, String tableName, String columnName, String targetColumnName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, String tableName, String columnName, String targetColumnName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, String tableName, String columnName, String targetColumnName, String joinName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, String tableName, String columnName, String targetColumnName, String joinName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String joinName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> com.jfinal.plugin.activerecord.Page<M> joinManyByTable(com.jfinal.plugin.activerecord.Page<M> page, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String joinName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String joinName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> List<M> joinManyByTable(List<M> models, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String joinName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String joinName)
joinManyByTable 在接口中 JbootServiceJoinerpublic <M extends JbootModel> M joinManyByTable(M model, ObjectFunc<M> modelValueGetter, String tableName, String columnName, String targetColumnName, String joinName, String[] attrs)
joinManyByTable 在接口中 JbootServiceJoinerprotected List<com.jfinal.plugin.activerecord.Record> findMiddleTableRecords(String tableName, String columnName, Object columnValue)
tableName - columnName - columnValue - Copyright © 2024. All rights reserved.