| java.lang.Object net.sourceforge.jtds.jdbc.ParamInfo
ParamInfo | class ParamInfo implements Cloneable(Code) | | This class is a descriptor for procedure and prepared statement parameters.
author: Mike Hutchinson version: $Id: ParamInfo.java,v 1.16 2005/04/25 11:47:01 alin_sinpalean Exp $ |
Constructor Summary | |
| ParamInfo(int pos, boolean isUnicode) Construct a parameter with parameter marker offset. | | ParamInfo(String name, int pos, boolean isRetVal, boolean isUnicode) Construct a parameter for statement caching. | | ParamInfo(int jdbcType, Object value, int flags) Construct an initialised parameter with extra attributes. | | ParamInfo(ColInfo ci, String name, Object value, int length) Construct a parameter based on a result set column. |
INPUT | final static int INPUT(Code) | | Flag as an input parameter.
|
OUTPUT | final static int OUTPUT(Code) | | Flag as an output parameter.
|
RETVAL | final static int RETVAL(Code) | | Flag as an return value parameter.
|
UNICODE | final static int UNICODE(Code) | | Flag as a unicode parameter.
|
charsetInfo | CharsetInfo charsetInfo(Code) | | Character set descriptor (if different from default)
|
collation | byte collation(Code) | | TDS 8 Collation string.
|
isOutput | boolean isOutput(Code) | | Parameter is an output parameter
|
isRetVal | boolean isRetVal(Code) | | Parameter is used as SP return value
|
isSet | boolean isSet(Code) | | IN parameter has been set
|
isSetOut | boolean isSetOut(Code) | | OUT parameter value is set.
|
isUnicode | boolean isUnicode(Code) | | Parameter should be sent as unicode
|
jdbcType | int jdbcType(Code) | | JDBC type constant from java.sql.Types
|
length | int length(Code) | | Length of InputStream
|
markerPos | int markerPos(Code) | | Parameter offset in target SQL statement
|
precision | int precision(Code) | | Parameter decimal precision
|
scale | int scale(Code) | | Parameter decimal scale
|
tdsType | int tdsType(Code) | | Internal TDS data type
|
ParamInfo | ParamInfo(int pos, boolean isUnicode)(Code) | | Construct a parameter with parameter marker offset.
Parameters: pos - the offset of the ? symbol in the target SQL string Parameters: isUnicode - true if the parameter is Unicode encoded |
ParamInfo | ParamInfo(String name, int pos, boolean isRetVal, boolean isUnicode)(Code) | | Construct a parameter for statement caching.
Parameters: name - the formal name of the parameter Parameters: pos - the offset of the ? symbol in the parsed SQL string Parameters: isRetVal - true if the parameter is a return value Parameters: isUnicode - true if the parameter is Unicode encoded |
ParamInfo | ParamInfo(int jdbcType, Object value, int flags)(Code) | | Construct an initialised parameter with extra attributes.
Parameters: jdbcType - the java.sql.Type constant describing this type Parameters: value - the initial parameter value Parameters: flags - the additional attributes eg OUTPUT, RETVAL, UNICODE etc. |
ParamInfo | ParamInfo(ColInfo ci, String name, Object value, int length)(Code) | | Construct a parameter based on a result set column.
Parameters: ci - the column descriptor Parameters: name - the name for this parameter or null Parameters: value - the column data value Parameters: length - the column data length |
clearInValue | void clearInValue()(Code) | | Clear the IN parameter value and status.
|
clearOutValue | void clearOutValue()(Code) | | Clear the OUT parameter value and status.
|
clone | public Object clone()(Code) | | Creates a shallow copy of this ParamInfo instance. Used by
the PreparedStatement batching implementation to duplicate
parameters.
|
getBytes | byte[] getBytes(String charset) throws IOException(Code) | | Get the byte array value of the parameter.
The data value as a byte[] or null. |
setOutValue | void setOutValue(Object value)(Code) | | Set the OUT parameter value.
Parameters: value - The data value. |
|
|