类 MybatisSqlBeanServiceImpl<T,ID>
java.lang.Object
cn.vonce.sql.java.service.BaseSqlBeanServiceImpl<T>
cn.vonce.sql.solon.service.MybatisSqlBeanServiceImpl<T,ID>
- 所有已实现的接口:
cn.vonce.sql.page.PagingService,cn.vonce.sql.service.AdvancedDbManageService<T>,cn.vonce.sql.service.DbManageService<T>,cn.vonce.sql.service.DeleteService<T,,ID> cn.vonce.sql.service.InsertService<T>,cn.vonce.sql.service.SelectService<T,,ID> cn.vonce.sql.service.SqlBeanService<T,,ID> cn.vonce.sql.service.UpdateService<T,,ID> Serializable
@Component
public class MybatisSqlBeanServiceImpl<T,ID>
extends cn.vonce.sql.java.service.BaseSqlBeanServiceImpl<T>
implements cn.vonce.sql.service.SqlBeanService<T,ID>, cn.vonce.sql.service.AdvancedDbManageService<T>
Solon环境的Mybatis实现
- 作者:
- Jovi
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intalter(cn.vonce.sql.bean.Alter alter) intintintalterRemarks(String remarks) backup()voidbackup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> voidbackup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) voidvoidbackup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> voidbackup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) voidbackup(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> voidbackup(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) voidvoidbackup(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> voidbackup(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) voidvoidintintcopy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> intcopy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) intintcopy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> intcopy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) intintcopy(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> intcopy(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) intintcopy(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) <R> intcopy(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) intcount()intcount(cn.vonce.sql.bean.Select select) intintintcountBy(cn.vonce.sql.helper.Wrapper wrapper) intintcreateSchema(String name) voidintdelete(cn.vonce.sql.bean.Delete delete) intdelete(cn.vonce.sql.bean.Delete delete, boolean ignore) intintdeleteBy(cn.vonce.sql.helper.Wrapper wrapper) intintdeleteById(ID... id) voidintdropSchema(String name) voidClass<?>List<cn.vonce.sql.bean.ColumnInfo>List<cn.vonce.sql.bean.ColumnInfo>getColumnInfoList(String tableName) List<cn.vonce.sql.bean.ColumnInfo>getColumnInfoList(String schema, String tableName) getSchemas(String name) cn.vonce.sql.config.SqlBeanMetaList<cn.vonce.sql.bean.TableInfo>List<cn.vonce.sql.bean.TableInfo>getTableList(String tableName) List<cn.vonce.sql.bean.TableInfo>getTableList(String schema, String tableName) intintinsert(Collection<T> beanList) intintlogicallyDeleteBy(cn.vonce.sql.define.ConditionHandle<T> cond) intlogicallyDeleteBy(cn.vonce.sql.helper.Wrapper wrapper) intlogicallyDeleteBy(String where, Object... args) intlogicallyDeleteById(ID... id) cn.vonce.sql.page.ResultData<T>paging(cn.vonce.sql.bean.Select select, int pagenum, int pagesize) cn.vonce.sql.page.ResultData<T><R> cn.vonce.sql.page.ResultData<R><R> cn.vonce.sql.page.ResultData<R>paging(Class<R> returnType, cn.vonce.sql.bean.Select select, cn.vonce.sql.page.PageHelper<R> pageHelper) select()select(cn.vonce.sql.bean.Paging paging) select(cn.vonce.sql.bean.Select select) <R> List<R><R> List<R><R> List<R>selectBy(cn.vonce.sql.bean.Paging paging, cn.vonce.sql.helper.Wrapper wrapper) selectBy(cn.vonce.sql.helper.Wrapper wrapper) <R> List<R>selectBy(Class<R> returnType, cn.vonce.sql.bean.Paging paging, cn.vonce.sql.define.ConditionHandle<T> cond) <R> List<R><R> List<R><R> List<R><R> List<R><R> List<R>selectById(ID id) <R> RselectById(Class<R> returnType, ID id) selectByIds(ID... ids) <R> List<R>selectByIds(Class<R> returnType, ID... ids) selectMap(cn.vonce.sql.bean.Select select) selectMapList(cn.vonce.sql.bean.Select select) selectOne(cn.vonce.sql.bean.Select select) <R> RselectOneBy(cn.vonce.sql.define.ConditionHandle<T> cond) selectOneBy(cn.vonce.sql.helper.Wrapper wrapper) <R> RselectOneBy(Class<R> returnType, cn.vonce.sql.define.ConditionHandle<T> cond) <R> RselectOneBy(Class<R> returnType, cn.vonce.sql.helper.Wrapper wrapper) <R> RselectOneBy(Class<R> returnType, String where, Object... args) selectOneBy(String where, Object... args) intintintupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.bean.Column[] filterColumns, String where, Object... args) intupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.define.ConditionHandle<T> cond) intupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.define.ConditionHandle<T> cond, cn.vonce.sql.bean.Column... filterColumns) <R> intupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.define.ConditionHandle<T> cond, cn.vonce.sql.define.ColumnFun<T, R>... filterColumns) intupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.helper.Wrapper wrapper) intupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.helper.Wrapper wrapper, cn.vonce.sql.bean.Column... filterColumns) <R> intupdateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.helper.Wrapper wrapper, cn.vonce.sql.define.ColumnFun<T, R>... filterColumns) intintintintintupdateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where) intupdateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where, cn.vonce.sql.bean.Column... filterColumns) <R> intupdateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where, cn.vonce.sql.define.ColumnFun<T, R>... filterColumns) intupdateByBean(T bean, String where) intupdateByBeanId(T bean) intupdateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock) intupdateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.bean.Column... filterColumns) <R> intupdateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.define.ColumnFun<T, R>... filterColumns) intupdateById(T bean, ID id) intupdateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock) intupdateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.bean.Column... filterColumns) <R> intupdateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.define.ColumnFun<T, R>... filterColumns) 从类继承的方法 cn.vonce.sql.java.service.BaseSqlBeanServiceImpl
conditionHandle, conditionHandle, handleColumnInfo, setAutoIncrId
-
构造器详细资料
-
MybatisSqlBeanServiceImpl
public MybatisSqlBeanServiceImpl()
-
-
方法详细资料
-
getSqlBeanMeta
public cn.vonce.sql.config.SqlBeanMeta getSqlBeanMeta() -
getAutoIncrId
- 指定者:
getAutoIncrId在类中cn.vonce.sql.java.service.BaseSqlBeanServiceImpl<T>
-
getBeanClass
-
selectById
-
selectById
-
selectByIds
-
selectByIds
-
selectOne
-
selectOne
-
selectMap
-
selectOneBy
-
selectOneBy
-
selectOneBy
-
selectOneBy
-
selectOneBy
-
selectOneBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
selectBy
-
countBy
-
countBy
@DbSwitch(SLAVE) public int countBy(cn.vonce.sql.helper.Wrapper wrapper) -
countBy
-
count
@DbSwitch(SLAVE) public int count() -
select
-
select
-
select
-
select
-
selectMapList
-
select
-
select
-
count
@DbSwitch(SLAVE) public int count(cn.vonce.sql.bean.Select select) -
count
-
paging
-
paging
@DbSwitch(SLAVE) public cn.vonce.sql.page.ResultData<T> paging(cn.vonce.sql.bean.Select select, int pagenum, int pagesize) -
paging
@DbSwitch(SLAVE) public <R> cn.vonce.sql.page.ResultData<R> paging(Class<R> returnType, cn.vonce.sql.bean.Select select, cn.vonce.sql.page.PageHelper<R> pageHelper) -
paging
@DbSwitch(SLAVE) public <R> cn.vonce.sql.page.ResultData<R> paging(Class<R> returnType, cn.vonce.sql.bean.Select select, int pagenum, int pagesize) -
deleteById
-
deleteBy
-
deleteBy
@DbSwitch(MASTER) public int deleteBy(cn.vonce.sql.helper.Wrapper wrapper) -
deleteBy
-
delete
@DbSwitch(MASTER) public int delete(cn.vonce.sql.bean.Delete delete) -
delete
@DbSwitch(MASTER) public int delete(cn.vonce.sql.bean.Delete delete, boolean ignore) -
logicallyDeleteById
-
logicallyDeleteBy
-
logicallyDeleteBy
@DbSwitch(MASTER) public int logicallyDeleteBy(cn.vonce.sql.helper.Wrapper wrapper) -
logicallyDeleteBy
-
update
-
update
-
updateById
-
updateById
-
updateByBeanId
-
updateById
-
updateById
-
updateBy
-
updateByBeanId
-
updateByBeanId
@DbSwitch(MASTER) public int updateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.bean.Column... filterColumns) -
updateByBeanId
-
updateBy
-
updateBy
-
updateBy
-
updateBy
@DbSwitch(MASTER) public int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.helper.Wrapper wrapper) -
updateBy
-
updateBy
-
updateBy
@DbSwitch(MASTER) public int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.helper.Wrapper wrapper, cn.vonce.sql.bean.Column... filterColumns) -
updateBy
-
updateBy
-
updateBy
-
updateByBean
-
updateByBean
-
updateByBean
-
updateByBean
-
insert
- 指定者:
insert在接口中cn.vonce.sql.service.InsertService<T>
-
insert
- 指定者:
insert在接口中cn.vonce.sql.service.InsertService<T>
-
insert
- 指定者:
insert在接口中cn.vonce.sql.service.InsertService<T>
-
backup
- 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
- 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
- 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public void backup(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public void backup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public void backup(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public void backup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public <R> void backup(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public <R> void backup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public void backup(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public void backup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public <R> void backup(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
@DbSwitch(MASTER) public <R> void backup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
- 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public <R> int copy(cn.vonce.sql.helper.Wrapper wrapper, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public <R> int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.bean.Column... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public <R> int copy(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
@DbSwitch(MASTER) public <R> int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName, cn.vonce.sql.define.ColumnFun<T, R>... columns) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
alter
@DbSwitch(MASTER) public int alter(cn.vonce.sql.bean.Table table, List<cn.vonce.sql.bean.ColumnInfo> columnInfoList) - 指定者:
alter在接口中cn.vonce.sql.service.DbManageService<T>
-
alter
@DbSwitch(MASTER) public int alter(cn.vonce.sql.bean.Alter alter) - 指定者:
alter在接口中cn.vonce.sql.service.DbManageService<T>
-
alter
- 指定者:
alter在接口中cn.vonce.sql.service.DbManageService<T>
-
alterRemarks
- 指定者:
alterRemarks在接口中cn.vonce.sql.service.AdvancedDbManageService<T>
-
getSchemas
- 指定者:
getSchemas在接口中cn.vonce.sql.service.AdvancedDbManageService<T>
-
createSchema
- 指定者:
createSchema在接口中cn.vonce.sql.service.AdvancedDbManageService<T>
-
dropSchema
- 指定者:
dropSchema在接口中cn.vonce.sql.service.AdvancedDbManageService<T>
-
dropTable
@DbSwitch(MASTER) public void dropTable()- 指定者:
dropTable在接口中cn.vonce.sql.service.DbManageService<T>
-
createTable
@DbSwitch(MASTER) public void createTable()- 指定者:
createTable在接口中cn.vonce.sql.service.DbManageService<T>
-
dropAndCreateTable
@DbSwitch(MASTER) public void dropAndCreateTable()- 指定者:
dropAndCreateTable在接口中cn.vonce.sql.service.DbManageService<T>
-
getTableList
- 指定者:
getTableList在接口中cn.vonce.sql.service.DbManageService<T>
-
getTableList
- 指定者:
getTableList在接口中cn.vonce.sql.service.DbManageService<T>
-
getTableList
@DbSwitch(SLAVE) public List<cn.vonce.sql.bean.TableInfo> getTableList(String schema, String tableName) - 指定者:
getTableList在接口中cn.vonce.sql.service.DbManageService<T>
-
getColumnInfoList
- 指定者:
getColumnInfoList在接口中cn.vonce.sql.service.DbManageService<T>
-
getColumnInfoList
- 指定者:
getColumnInfoList在接口中cn.vonce.sql.service.DbManageService<T>
-
getColumnInfoList
@DbSwitch(SLAVE) public List<cn.vonce.sql.bean.ColumnInfo> getColumnInfoList(String schema, String tableName) - 指定者:
getColumnInfoList在接口中cn.vonce.sql.service.DbManageService<T>
-