public class ProceUtils extends Object
| 构造器和说明 |
|---|
ProceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
bindStatementInput(CallableStatement cs,
int indexed,
Object value)
存储过程输入参数绑定
|
static void |
bindStatementOutput(CallableStatement cs,
int indexed,
String dataType)
存储过程传出参数绑定
|
static List<Map<String,Object>> |
convertResultSetToMapList(ResultSet rs,
Boolean toLowerCase)
ResultSet 转换List
|
static Object |
convertType(CallableStatement cs,
int indexed,
String dataType)
传出参数类型转换
|
protected static ProceRecord |
execProcedure(Connection con,
String sql,
ProcedureCallback callback,
Object... paramArgs) |
static ProceRecord |
executeProcedure(Connection conn,
String sql,
Object... paramArgs)
ProcedureResult cr = executeProcedure("{call getSoft(?
|
public static List<Map<String,Object>> convertResultSetToMapList(ResultSet rs, Boolean toLowerCase)
public static void bindStatementInput(CallableStatement cs, int indexed, Object value) throws SQLException
SQLExceptionpublic static void bindStatementOutput(CallableStatement cs, int indexed, String dataType) throws SQLException
SQLExceptionpublic static Object convertType(CallableStatement cs, int indexed, String dataType) throws SQLException
SQLExceptionpublic static ProceRecord executeProcedure(Connection conn, String sql, Object... paramArgs) throws SQLException
conn - sql - paramArgs - SQLExceptionprotected static ProceRecord execProcedure(Connection con, String sql, ProcedureCallback callback, Object... paramArgs) throws SQLException
SQLExceptionCopyright © 2018. All rights reserved.