类 SpringJDBCUtil

java.lang.Object
org.anyline.environment.spring.data.jdbc.SpringJDBCUtil

public class SpringJDBCUtil extends Object
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static org.anyline.metadata.Column
    column(org.anyline.data.adapter.DriverAdapter adapter, org.anyline.data.runtime.DataRuntime runtime, org.anyline.metadata.Column column, org.springframework.jdbc.support.rowset.SqlRowSetMetaData rsm, int index)
    column[结果集封装-子流程](方法4)
    内部遍历
    columns(DataRuntime runtime, boolean create, LinkedHashMap columns, Table table, SqlRowSet set)遍历内部
    根据SqlRowSetMetaData获取列属性 jdbc.queryForRowSet(where 1=0)
    static <T extends org.anyline.metadata.Column>
    LinkedHashMap<String,T>
    columns(org.anyline.data.adapter.DriverAdapter adapter, org.anyline.data.runtime.DataRuntime runtime, boolean create, LinkedHashMap<String,T> columns, org.anyline.metadata.Table table, org.springframework.jdbc.support.rowset.SqlRowSet set)
    column[结果集封装]
    (方法4)
    解析查询结果metadata(0=1)

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • SpringJDBCUtil

      public SpringJDBCUtil()
  • 方法详细资料

    • columns

      public static <T extends org.anyline.metadata.Column> LinkedHashMap<String,T> columns(org.anyline.data.adapter.DriverAdapter adapter, org.anyline.data.runtime.DataRuntime runtime, boolean create, LinkedHashMap<String,T> columns, org.anyline.metadata.Table table, org.springframework.jdbc.support.rowset.SqlRowSet set) throws Exception
      column[结果集封装]
      (方法4)
      解析查询结果metadata(0=1)
      类型参数:
      T - Column
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      create - 上一步没有查到的,这一步是否需要新创建
      columns - columns
      table - 表
      set - SqlRowSet由spring封装过的结果集ResultSet
      返回:
      LinkedHashMap
      抛出:
      Exception - Exception
    • column

      public static org.anyline.metadata.Column column(org.anyline.data.adapter.DriverAdapter adapter, org.anyline.data.runtime.DataRuntime runtime, org.anyline.metadata.Column column, org.springframework.jdbc.support.rowset.SqlRowSetMetaData rsm, int index)
      column[结果集封装-子流程](方法4)
      内部遍历
      columns(DataRuntime runtime, boolean create, LinkedHashMap columns, Table table, SqlRowSet set)遍历内部
      根据SqlRowSetMetaData获取列属性 jdbc.queryForRowSet(where 1=0)
      参数:
      runtime - 运行环境主要包含驱动适配器 数据源或客户端
      column - 获取的数据赋值给column如果为空则新创建一个
      rsm - 通过spring封装过的SqlRowSet获取的SqlRowSetMetaData
      index - 第几列
      返回:
      Column