类 SqlBeanServiceImpl<T,ID>
java.lang.Object
cn.vonce.sql.android.service.SqlBeanServiceImpl<T,ID>
- 类型参数:
T-
- 所有已实现的接口:
cn.vonce.sql.page.PagingService,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
- 直接已知子类:
SqlBeanHelper
public class SqlBeanServiceImpl<T,ID>
extends Object
implements cn.vonce.sql.service.SqlBeanService<T,ID>, cn.vonce.sql.service.DbManageService<T>
通用的业务实现
- 版本:
- 1.0
- 作者:
- Jovi
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intalter(cn.vonce.sql.bean.Alter alter) intintbackup()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) voidvoidprotected voidconditionHandle(cn.vonce.sql.bean.CommonCondition<?> condition, cn.vonce.sql.define.ConditionHandle<T> cond) protected cn.vonce.sql.helper.WrapperconditionHandle(cn.vonce.sql.define.ConditionHandle<T> cond) intintcopy(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 where) intvoidintdelete(cn.vonce.sql.bean.Delete delete) intdelete(cn.vonce.sql.bean.Delete delete, boolean ignore) intintdeleteBy(cn.vonce.sql.helper.Wrapper where) intintdeleteById(ID... id) voidvoidClass<?>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) 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 where) 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> tClazz, 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 where) selectBy(cn.vonce.sql.helper.Wrapper where) <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)
-
字段详细资料
-
clazz
-
-
构造器详细资料
-
SqlBeanServiceImpl
public SqlBeanServiceImpl() -
SqlBeanServiceImpl
-
-
方法详细资料
-
getSqlBeanMeta
public cn.vonce.sql.config.SqlBeanMeta getSqlBeanMeta() -
getSQLiteTemplate
-
getBeanClass
-
dropTable
public void dropTable()- 指定者:
dropTable在接口中cn.vonce.sql.service.DbManageService<T>
-
createTable
public void createTable()- 指定者:
createTable在接口中cn.vonce.sql.service.DbManageService<T>
-
dropAndCreateTable
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
- 指定者:
getTableList在接口中cn.vonce.sql.service.DbManageService<T>
-
getColumnInfoList
- 指定者:
getColumnInfoList在接口中cn.vonce.sql.service.DbManageService<T>
-
getColumnInfoList
- 指定者:
getColumnInfoList在接口中cn.vonce.sql.service.DbManageService<T>
-
getColumnInfoList
- 指定者:
getColumnInfoList在接口中cn.vonce.sql.service.DbManageService<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
public void backup(cn.vonce.sql.helper.Wrapper wrapper, String targetSchema, String targetTableName) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
public void backup(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName) - 指定者:
backup在接口中cn.vonce.sql.service.DbManageService<T>
-
backup
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
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
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
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
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
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
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
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
- 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
- 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
public int copy(cn.vonce.sql.define.ConditionHandle<T> cond, String targetSchema, String targetTableName) - 指定者:
copy在接口中cn.vonce.sql.service.DbManageService<T>
-
copy
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
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
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
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
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
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
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
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
- 指定者:
alter在接口中cn.vonce.sql.service.DbManageService<T>
-
alter
public int alter(cn.vonce.sql.bean.Alter alter) - 指定者:
alter在接口中cn.vonce.sql.service.DbManageService<T>
-
alter
- 指定者:
alter在接口中cn.vonce.sql.service.DbManageService<T>
-
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
public int countBy(cn.vonce.sql.helper.Wrapper where) -
countBy
-
count
public int count() -
select
-
select
-
select
-
select
-
selectMapList
-
select
-
select
-
count
public int count(cn.vonce.sql.bean.Select select) -
count
-
paging
-
paging
public cn.vonce.sql.page.ResultData<T> paging(cn.vonce.sql.bean.Select select, int pagenum, int pagesize) -
paging
public <R> cn.vonce.sql.page.ResultData<R> paging(Class<R> tClazz, cn.vonce.sql.bean.Select select, cn.vonce.sql.page.PageHelper<R> pageHelper) -
paging
public <R> cn.vonce.sql.page.ResultData<R> paging(Class<R> tClazz, cn.vonce.sql.bean.Select select, int pagenum, int pagesize) -
deleteById
-
deleteBy
-
deleteBy
public int deleteBy(cn.vonce.sql.helper.Wrapper where) -
deleteBy
-
delete
public int delete(cn.vonce.sql.bean.Delete delete) -
delete
public int delete(cn.vonce.sql.bean.Delete delete, boolean ignore) -
logicallyDeleteById
-
logicallyDeleteBy
-
logicallyDeleteBy
public int logicallyDeleteBy(cn.vonce.sql.helper.Wrapper where) -
logicallyDeleteBy
-
update
-
update
-
updateById
-
updateById
-
updateByBeanId
-
updateById
-
updateById
-
updateBy
-
updateByBeanId
-
updateByBeanId
public int updateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.bean.Column... filterColumns) -
updateByBeanId
-
updateBy
-
updateBy
-
updateBy
-
updateBy
public int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, cn.vonce.sql.helper.Wrapper wrapper) -
updateBy
-
updateBy
-
updateBy
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>
-
conditionHandle
protected void conditionHandle(cn.vonce.sql.bean.CommonCondition<?> condition, cn.vonce.sql.define.ConditionHandle<T> cond) -
conditionHandle
-