org.tinygroup.dbrouter.util
public class ParamObjectBuilder extends Object
系统版本: v1.0
开发人员: renhui
开发时间: 2014-1-9
| Constructor and 描述 |
|---|
ParamObjectBuilder(int paramNumber) |
| Modifier and Type | Method and 描述 |
|---|---|
void |
addDateParamterObject(int parameterIndex,
Date value,
Calendar cal) |
void |
addInputStreamParamterObject(int parameterIndex,
InputStream value,
int length,
boolean asciiStream) |
void |
addNullParamterObject(int parameterIndex,
int sqlType) |
void |
addNullParamterObject(int parameterIndex,
int sqlType,
String typeName) |
void |
addParamterObject(int parameterIndex,
Object value) |
void |
addParamterObject(int parameterIndex,
Object value,
int targetSqlType) |
void |
addParamterObject(int parameterIndex,
Object value,
int targetSqlType,
int scale) |
void |
addReaderParamterObject(int parameterIndex,
Reader value,
int length) |
void |
addTimeParamterObject(int parameterIndex,
Time value,
Calendar cal) |
void |
addTimestampParamterObject(int parameterIndex,
Timestamp value,
Calendar cal) |
void |
clear() |
void |
expandParam() |
int |
getParameterCount() |
Object |
getParamValue(int columnIndex)
获取字段对应的参数值
|
Object[] |
getPreparedParams() |
void |
removeParameterObject(int parameterIndex,
Object value) |
void |
setParamters(PreparedStatement preparedStatement) |
public void expandParam()
public void addParamterObject(int parameterIndex,
Object value)
throws SQLException
SQLExceptionpublic void addNullParamterObject(int parameterIndex,
int sqlType)
throws SQLException
SQLExceptionpublic void addNullParamterObject(int parameterIndex,
int sqlType,
String typeName)
throws SQLException
SQLExceptionpublic void addParamterObject(int parameterIndex,
Object value,
int targetSqlType)
throws SQLException
SQLExceptionpublic void addInputStreamParamterObject(int parameterIndex,
InputStream value,
int length,
boolean asciiStream)
throws SQLException
SQLExceptionpublic void addReaderParamterObject(int parameterIndex,
Reader value,
int length)
throws SQLException
SQLExceptionpublic void addDateParamterObject(int parameterIndex,
Date value,
Calendar cal)
throws SQLException
SQLExceptionpublic void addTimeParamterObject(int parameterIndex,
Time value,
Calendar cal)
throws SQLException
SQLExceptionpublic void addTimestampParamterObject(int parameterIndex,
Timestamp value,
Calendar cal)
throws SQLException
SQLExceptionpublic void addParamterObject(int parameterIndex,
Object value,
int targetSqlType,
int scale)
throws SQLException
SQLExceptionpublic void removeParameterObject(int parameterIndex,
Object value)
throws SQLException
SQLExceptionpublic void clear()
public void setParamters(PreparedStatement preparedStatement) throws SQLException
SQLExceptionpublic Object[] getPreparedParams()
public int getParameterCount()
public Object getParamValue(int columnIndex)
columnIndex - 列序号 如1、2、3Copyright © 2006–2015 TinyGroup. All rights reserved.