class ParamInfo
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description | 
|---|---|
| (package private) CharsetInfo | charsetInfoCharacter set descriptor (if different from default) | 
| (package private) byte[] | collationTDS 8 Collation string. | 
| (package private) static int | INPUTFlag as an input parameter. | 
| (package private) boolean | isOutputParameter is an output parameter | 
| (package private) boolean | isRetValParameter is used as  SP return value | 
| (package private) boolean | isSetIN parameter has been set | 
| (package private) boolean | isSetOutOUT parameter value is set. | 
| (package private) boolean | isUnicodeParameter should be sent as unicode | 
| (package private) int | jdbcTypeJDBC type constant from java.sql.Types | 
| (package private) int | lengthLength of InputStream | 
| (package private) int | markerPosParameter offset in target SQL statement | 
| (package private) java.lang.String | nameFormal parameter name eg @P1 | 
| (package private) static int | OUTPUTFlag as an output parameter. | 
| (package private) java.lang.Object | outValueOUT Parameter value. | 
| (package private) int | precisionParameter decimal precision | 
| (package private) static int | RETVALFlag as an return value parameter. | 
| (package private) int | scaleParameter decimal scale | 
| (package private) java.lang.String | sqlTypeSQL type name eg varchar(10) | 
| (package private) int | tdsTypeInternal TDS data type | 
| (package private) static int | UNICODEFlag as a unicode parameter. | 
| (package private) java.lang.Object | valueCurrent parameter value | 
| Constructor and Description | 
|---|
| ParamInfo(ColInfo ci,
         java.lang.String name,
         java.lang.Object value,
         int length)Construct a parameter based on a result set column. | 
| ParamInfo(int pos,
         boolean isUnicode)Construct a parameter with parameter marker offset. | 
| ParamInfo(int jdbcType,
         java.lang.Object value,
         int flags)Construct an initialised parameter with extra attributes. | 
| ParamInfo(java.lang.String name,
         int pos,
         boolean isRetVal,
         boolean isUnicode)Construct a parameter for statement caching. | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) void | clearInValue()Clear the IN parameter value and status. | 
| (package private) void | clearOutValue()Clear the OUT parameter value and status. | 
| java.lang.Object | clone()Creates a shallow copy of this  ParamInfoinstance. | 
| (package private) byte[] | getBytes(java.lang.String charset)Get the byte array value of the parameter. | 
| (package private) java.lang.Object | getOutValue()Get the output parameter value. | 
| (package private) java.lang.String | getString(java.lang.String charset)Get the string value of the parameter. | 
| private static java.lang.String | loadFromReader(java.io.Reader in,
              int length)Create a String from a Reader stream. | 
| private static byte[] | loadFromStream(java.io.InputStream in,
              int length)Load a byte array from an InputStream | 
| (package private) void | setOutValue(java.lang.Object value)Set the OUT parameter value. | 
static final int INPUT
static final int OUTPUT
static final int RETVAL
static final int UNICODE
int tdsType
int jdbcType
java.lang.String name
java.lang.String sqlType
int markerPos
java.lang.Object value
int precision
int scale
int length
boolean isOutput
boolean isRetVal
boolean isSet
boolean isUnicode
byte[] collation
CharsetInfo charsetInfo
boolean isSetOut
java.lang.Object outValue
ParamInfo(int pos,
         boolean isUnicode)
pos - the offset of the ? symbol in the target SQL stringisUnicode - true if the parameter is Unicode encodedParamInfo(java.lang.String name,
         int pos,
         boolean isRetVal,
         boolean isUnicode)
name - the formal name of the parameterpos - the offset of the ? symbol in the parsed SQL stringisRetVal - true if the parameter is a return valueisUnicode - true if the parameter is Unicode encodedParamInfo(int jdbcType,
         java.lang.Object value,
         int flags)
jdbcType - the java.sql.Type constant describing this typevalue - the initial parameter valueflags - the additional attributes eg OUTPUT, RETVAL, UNICODE etc.ParamInfo(ColInfo ci, java.lang.String name, java.lang.Object value, int length)
ci - the column descriptorname - the name for this parameter or nullvalue - the column data valuelength - the column data lengthjava.lang.Object getOutValue()
                       throws java.sql.SQLException
Objectjava.sql.SQLException - if the parameter has not been setvoid setOutValue(java.lang.Object value)
value - The data value.void clearOutValue()
void clearInValue()
java.lang.String getString(java.lang.String charset)
                     throws java.io.IOException
String or null.java.io.IOExceptionbyte[] getBytes(java.lang.String charset)
          throws java.io.IOException
byte[] or null.java.io.IOExceptionprivate static byte[] loadFromStream(java.io.InputStream in,
                    int length)
                              throws java.io.IOException
in - The InputStream to read from.length - The length of the stream.byte[].java.io.IOExceptionprivate static java.lang.String loadFromReader(java.io.Reader in,
                              int length)
                                        throws java.io.IOException
in - The Reader object with the data.length - Number of characters to read.String.java.io.IOExceptionpublic java.lang.Object clone()
ParamInfo instance. Used by
 the PreparedStatement batching implementation to duplicate
 parameters.clone in class java.lang.ObjectGenerated on June 8 2013