类 cn.remex.db.DbCvo
的使用

使用 DbCvo 的软件包
cn.remex.db   
cn.remex.db.cert   
cn.remex.db.rsql   
cn.remex.db.sql   
 

cn.remex.dbDbCvo 的使用
 

返回 DbCvocn.remex.db 中的方法
<T extends Modelable>
DbCvo<T>
Container.createDbCvo(Class<T> beanClass)
          创建一个数据查询的对象,进行链式访问
 DbCvo<T> DbCvo.put_searchById(String _searchById)
           
 DbCvo<T> DbCvo.putBean(Modelable dbBean)
           
 DbCvo<T> DbCvo.putBeanClass(Class<T> beanClass)
           
 DbCvo<T> DbCvo.putBeanName(String beanName)
           
 DbCvo<T> DbCvo.putDataColumns(String dataColumns)
           
 DbCvo<T> DbCvo.putDataType(String dataType)
           
 DbCvo<T> DbCvo.putDeleteByWhere(boolean deleteByWhere)
           
 DbCvo<T> DbCvo.putDoCount(boolean doCount)
           
 DbCvo<T> DbCvo.putDoPaging(boolean doPaging)
           
 DbCvo<T> DbCvo.putExtColumn(String extColumn)
           
 DbCvo<T> DbCvo.putForeignBean(String foreignBean)
           
 DbCvo<T> DbCvo.putGroup(SqlBeanWhere sqlBeanWhere)
           
 DbCvo<T> DbCvo.putGroupOp(RsqlConstants.WhereGroupOp groupOp)
           
 DbCvo<T> DbCvo.putId(String id)
           
 DbCvo<T> DbCvo.putOK(boolean status)
           
 DbCvo<T> DbCvo.putOper(RsqlConstants.SqlOper oper)
           
 DbCvo<T> DbCvo.putOrder(boolean sortable, Object sidx, String sord)
           
 DbCvo<T> DbCvo.putOrders(List<SqlBeanOrder> orders)
           
 DbCvo<T> DbCvo.putPagination(int pagination)
           
 DbCvo<T> DbCvo.putPoolName(String poolName)
           
 DbCvo<T> DbCvo.putRecordCount(int recordCount)
           
 DbCvo<T> DbCvo.putReturnType(String returnType)
           
 DbCvo<T> DbCvo.putRowCount(int rowCount)
           
 DbCvo<T> DbCvo.putRule(String field, RsqlConstants.WhereRuleOper ruleOper, String value)
           
 DbCvo<T> DbCvo.putSearch(boolean search)
           
 DbCvo<T> DbCvo.putSortable(boolean sortable)
           
 DbCvo<T> DbCvo.putSpaceName(String poolName)
           
 DbCvo<T> DbCvo.putSqlBeanWhere(SqlBeanWhere sqlBeanWhere)
           
 DbCvo<T> DbCvo.putSqlString(String sqlString)
           
 DbCvo<T> DbCvo.putSubList(String subList)
           
 DbCvo<T> DbCvo.putUpdateByWhere(boolean updateByWhere)
           
 

参数类型为 DbCvocn.remex.db 中的方法
<T extends Modelable>
DbRvo
Container.copy(DbCvo<T> cvo)
           
<T extends Modelable>
DbRvo
Container.query(DbCvo<T> dbCvo)
          container实现的核心方法之一。
<T extends Modelable>
DbRvo
Container.store(T o, DbCvo<T> cvo)
          RsqlContainer C增加U更新D删除的核心方法。
 

cn.remex.db.certDbCvo 的使用
 

参数类型为 DbCvocn.remex.db.cert 中的方法
static
<T extends Modelable>
void
DataAccessConfiguration.assignAuditedValues(DbCvo<T> cvo)
           
 void DataAccessAuditor.obtainAuditedValues(DbCvo cvo)
           
 

cn.remex.db.rsqlDbCvo 的使用
 

返回 DbCvocn.remex.db.rsql 中的方法
 DbCvo<?> RsqlRvo._getRsqlCvo()
           
<T extends Modelable>
DbCvo<T>
RsqlContainer.createDbCvo(Class<T> beanClass)
           
 

参数类型为 DbCvocn.remex.db.rsql 中的方法
<T extends Modelable>
DbRvo
RsqlContainer.copy(DbCvo<T> cvo)
           
static
<T extends Modelable>
SqlBean<T>
RsqlUtils.createDeleteSqlBean(DbCvo<T> cvo)
           
static
<T extends Modelable>
SqlBean<T>
RsqlUtils.createInsertSqlBean(DbCvo<T> cvo)
           
static
<T extends Modelable>
SqlBean<T>
RsqlUtils.createSelectSqlBean(DbCvo<T> cvo)
          生成执行查询sql语句的bean dataOption 用于控制数据类型的
static
<T extends Modelable>
SqlBean<T>
RsqlUtils.createSqlStringSqlBean(DbCvo<T> cvo)
          生成直接执行sql语句的bean,sql语句支持:开头的命名参数
static
<T extends Modelable>
SqlBean<T>
RsqlUtils.createUpdateSqlBean(DbCvo<T> cvo)
          生成直接执行Update的sql语句的bean,sql语句支持:开头的命名参数
<T extends Modelable>
DbRvo
RsqlDao.execute(DbCvo<T> dbCvo)
          公共接口 此接口是为了执行DLL语句设计的。
<T extends Modelable>
RsqlRvo
RsqlDao.executeQuery(DbCvo<T> dbCvo)
          公共接口 此接口是为了执行Query语句设计的
<T extends Modelable>
RsqlRvo
RsqlDao.executeUpdate(DbCvo<T> dbCvo)
          公共接口 可能存在的问题:preparedstatement 的关闭以前如果报出异常,则无法处理preparedStatment没有关闭而引起的游标溢出问题
static
<T extends Modelable>
void
RsqlAssert.isOkRDBConnection(DbCvo<T> dbCvo, RDBConnection con)
           
static
<T extends Modelable>
void
RsqlAssert.isOkRsqlCvo(DbCvo<T> dbCvo)
           
static
<T extends Modelable>
String
RsqlUtils.obtainSQLOrder(DbCvo<T> cvo)
          获取sql查询时的排序order by条件
<T extends Modelable>
DbRvo
RsqlContainer.query(DbCvo<T> dbCvo)
           
<T extends Modelable>
void
RsqlRvo.saveData(ResultSet rs, DbCvo<T> dbCvo)
          内部函数 用于根据RemexSqlCvo的要求把ResultSet里面的数据保存下来
<T extends Modelable>
DbRvo
RsqlContainer.store(T obj, DbCvo<T> cvo)
           
 

参数类型为 DbCvocn.remex.db.rsql 中的构造方法
RsqlRvo(DbCvo<T> rsqlCvo2)
           
 

cn.remex.db.sqlDbCvo 的使用
 

参数类型为 DbCvocn.remex.db.sql 中的方法
static
<T extends Modelable>
SqlBean<T>
SqlBean.getInstance(DbCvo<T> dbCvo)
          //获取sqlBean,此操作会从缓存中读取一个sqlbean, //如果没有缓存则根据参数构建一个bean,并放入缓存,新建仅为一次,其他的都为克隆 //创建过程也是级联的。
 void SqlBean.init(DbCvo<T> dbCvo, String sqlString, List<SqlBeanNamedParam> namedParams)
           
 void SqlBean.initParam(DbCvo<T> dbCvo)
           
static
<T extends Modelable>
String
SqlBean.obtianDefName(DbCvo<T> dbCvo)
          根据cvo中的参数,也就是request或者object生成的cvo来定义一个唯一的鉴别名称 必要的时候会在initParam中重新定义一些参数
 

参数类型为 DbCvocn.remex.db.sql 中的构造方法
SqlBean(DbCvo<T> dbCvo)
          仅有的构造函数,所有的逻辑必须严格处理
 



Copyright © 2016. All rights reserved.