public class Parameters
extends java.lang.Object
implements java.sql.ParameterMetaData, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
nullable |
protected int |
parameterCount |
protected int[] |
parameterMode |
protected java.lang.String[] |
parameterName |
protected int[] |
parameterType |
protected java.lang.String[] |
parameterTypeName |
protected java.lang.Object[] |
params
params - the first parameter is 1, the second is 2, ...
|
protected int[] |
precision |
protected int[] |
scale |
protected boolean[] |
signed |
| Constructor and Description |
|---|
Parameters() |
Parameters(int parameterCount) |
Parameters(java.lang.Object[] params) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getParameter(int index) |
java.lang.Object |
getParameter(java.lang.String parameterName) |
java.lang.String |
getParameterClassName(int index) |
int |
getParameterCount() |
int |
getParameterIndex(java.lang.String parameterName) |
int |
getParameterMode(int index) |
java.lang.String |
getParameterName(int index) |
int |
getParameterType(int index) |
java.lang.String |
getParameterTypeName(int index) |
java.lang.Object[] |
getParams() |
int |
getPrecision(int index) |
int |
getScale(int index) |
int |
isNullable(int index) |
boolean |
isSigned(int index) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setNullable(int index,
int nullable) |
void |
setParameter(int index,
java.lang.Object value) |
void |
setParameterMode(int index,
int parameterMode) |
void |
setParameterName(int index,
java.lang.String parameterName) |
void |
setParameterType(int index,
int parameterType) |
void |
setParameterTypeName(int index,
java.lang.String parameterTypeName) |
void |
setParams(java.lang.Object[] params) |
void |
setPrecision(int index,
int precision) |
void |
setScale(int index,
int scale) |
void |
setSigned(int index,
boolean signed) |
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected java.lang.Object[] params
protected int[] parameterMode
protected int[] parameterType
protected java.lang.String[] parameterTypeName
protected int[] precision
protected int[] scale
protected int[] nullable
protected boolean[] signed
protected java.lang.String[] parameterName
protected int parameterCount
public Parameters()
public Parameters(int parameterCount)
public Parameters(java.lang.Object[] params)
public java.lang.String getParameterClassName(int index)
throws java.sql.SQLException
getParameterClassName in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic int getParameterCount()
throws java.sql.SQLException
getParameterCount in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic int getParameterMode(int index)
throws java.sql.SQLException
getParameterMode in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setParameterMode(int index,
int parameterMode)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getParameterType(int index)
throws java.sql.SQLException
getParameterType in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setParameterType(int index,
int parameterType)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getParameterTypeName(int index)
throws java.sql.SQLException
getParameterTypeName in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setParameterTypeName(int index,
java.lang.String parameterTypeName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getPrecision(int index)
throws java.sql.SQLException
getPrecision in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setPrecision(int index,
int precision)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getScale(int index)
throws java.sql.SQLException
getScale in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setScale(int index,
int scale)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int isNullable(int index)
throws java.sql.SQLException
isNullable in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setNullable(int index,
int nullable)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isSigned(int index)
throws java.sql.SQLException
isSigned in interface java.sql.ParameterMetaDatajava.sql.SQLExceptionpublic void setSigned(int index,
boolean signed)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object[] getParams()
public void setParams(java.lang.Object[] params)
public java.lang.Object getParameter(int index)
public java.lang.Object getParameter(java.lang.String parameterName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setParameter(int index,
java.lang.Object value)
public java.lang.String getParameterName(int index)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setParameterName(int index,
java.lang.String parameterName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getParameterIndex(java.lang.String parameterName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
isWrapperFor in interface java.sql.Wrapperpublic <T> T unwrap(java.lang.Class<T> iface)
unwrap in interface java.sql.Wrapperpublic java.lang.String toString()
toString in class java.lang.Object