public abstract class AbstractSimpleTableCommonServiceImpl<Model,PrimaryKey> extends Object implements TableCommonService<Model,PrimaryKey>
| 构造器和说明 |
|---|
AbstractSimpleTableCommonServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
Model |
byPrimaryKey(PrimaryKey id)
方法功能描述: 按表的主键查询一条记录 不返回异常 不存在返回null
|
Model |
byPrimaryKeyException(PrimaryKey id)
方法功能描述: 按表的主键查询一条记录 不存在返回异常
|
Model |
bySecondPrimaryKey(PrimaryKey id)
方法功能描述: 按第二业务主键查询
|
Model |
bySecondPrimaryKeyException(PrimaryKey id)
方法功能描述: 按第二业务主键查询
|
protected abstract Boolean |
isDelete(Model model)
方法功能描述: 判断记录是否为删除 true: 删除 false: 未删除
|
protected abstract Model |
mapperByPrimaryKey(PrimaryKey id)
方法功能描述: 根据id查询
|
protected abstract Model |
mapperBySecondPrimaryKey(PrimaryKey id)
方法功能描述: 根据id查询
|
void |
setDefaultModelValue(Object obj)
方法功能描述:
|
protected abstract Model mapperByPrimaryKey(PrimaryKey id)
id - protected abstract Model mapperBySecondPrimaryKey(PrimaryKey id)
id - protected abstract Boolean isDelete(Model model)
model - public Model byPrimaryKey(PrimaryKey id)
TableCommonServicebyPrimaryKey 在接口中 TableCommonService<Model,PrimaryKey>id - 主键idpublic Model byPrimaryKeyException(PrimaryKey id)
TableCommonServicebyPrimaryKeyException 在接口中 TableCommonService<Model,PrimaryKey>id - 主键idpublic Model bySecondPrimaryKey(PrimaryKey id)
TableCommonServicebySecondPrimaryKey 在接口中 TableCommonService<Model,PrimaryKey>id - 主键idpublic Model bySecondPrimaryKeyException(PrimaryKey id)
TableCommonServicebySecondPrimaryKeyException 在接口中 TableCommonService<Model,PrimaryKey>id - 主键idpublic void setDefaultModelValue(Object obj)
TableCommonServicesetDefaultModelValue 在接口中 TableCommonService<Model,PrimaryKey>Copyright © 2020. All rights reserved.