org.apache.derby.client.am
Class PreparedStatement.PossibleTypes

java.lang.Object
  extended by org.apache.derby.client.am.PreparedStatement.PossibleTypes
Enclosing class:
PreparedStatement

private static class PreparedStatement.PossibleTypes
extends java.lang.Object

PossibleTypes is information which is set of types. A given type is evaluated as *possible* at checkType method if same type was found in the set.


Field Summary
static PreparedStatement.PossibleTypes DEFAULT_POSSIBLE_TYPES_FOR_NULL
          This is possibleTypes of null value which can be assigned to other typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_BINARY_NULL
          This is possibleTypes of null value which can be assigned to BINARY typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_BLOB_NULL
          This is possibleTypes of null value which can be assigned to BLOB typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_CLOB_NULL
          This is possibleTypes of null value which can be assigned to CLOB typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_DATE_NULL
          This is possibleTypes of null value which can be assigned to DATE typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_GENERIC_CHARACTERS_NULL
          This is possibleTypes of null value which can be assigned to generic character typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_GENERIC_SCALAR_NULL
          This is possibleTypes of null value which can be assigned to generic scalar typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_LONGVARBINARY_NULL
          This is possibleTypes of null value which can be assigned to LONGVARBINARY typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_TIME_NULL
          This is possibleTypes of null value which can be assigned to TIME typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_TIMESTAMP_NULL
          This is possibleTypes of null value which can be assigned to TIMESTAMP typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_VARBINARY_NULL
          This is possibleTypes of null value which can be assigned to VARBINARY typed variable.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_ASCIISTREAM
          This is possibleTypes of variable which can be set by setAsciiStream method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_BINARYSTREAM
          This is possibleTypes of variable which can be set by setBinaryStream method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_BLOB
          This is possibleTypes of variable which can be set by setBlob method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_BYTES
          This is possibleTypes of variable which can be set by setBytes method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM
          This is possibleTypes of variable which can be set by setCharacterStream method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_CLOB
          This is possibleTypes of variable which can be set by setClob method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_DATE
          This is possibleTypes of variable which can be set by setDate method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_GENERIC_SCALAR
          This is possibleTypes of variable which can be set by set method for generic scalar.
private static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_STRING
          This is possibleTypes of variable which can be set by setString method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_TIME
          This is possibleTypes of variable which can be set by setTime method.
static PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_TIMESTAMP
          This is possibleTypes of variable which can be set by setTimestamp method.
private  int[] possibleTypes
           
 
Constructor Summary
private PreparedStatement.PossibleTypes(int[] types)
           
 
Method Summary
(package private)  boolean checkType(int type)
          This method return true if the type is possible.
(package private) static PreparedStatement.PossibleTypes getPossibleTypesForNull(int typeOfVariable)
          This method return possibleTypes of null value in variable typed as typeOfVariable.
(package private) static SqlException throw22005Exception(LogWriter logWriter, int valType, int paramType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

possibleTypes

private final int[] possibleTypes

POSSIBLE_TYPES_IN_SET_GENERIC_SCALAR

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_GENERIC_SCALAR
This is possibleTypes of variable which can be set by set method for generic scalar.


POSSIBLE_TYPES_IN_SET_DATE

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_DATE
This is possibleTypes of variable which can be set by setDate method.


POSSIBLE_TYPES_IN_SET_TIME

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_TIME
This is possibleTypes of variable which can be set by setTime method.


POSSIBLE_TYPES_IN_SET_TIMESTAMP

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_TIMESTAMP
This is possibleTypes of variable which can be set by setTimestamp method.


POSSIBLE_TYPES_IN_SET_STRING

private static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_STRING
This is possibleTypes of variable which can be set by setString method.


POSSIBLE_TYPES_IN_SET_BYTES

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_BYTES
This is possibleTypes of variable which can be set by setBytes method.


POSSIBLE_TYPES_IN_SET_BINARYSTREAM

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_BINARYSTREAM
This is possibleTypes of variable which can be set by setBinaryStream method.


POSSIBLE_TYPES_IN_SET_ASCIISTREAM

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_ASCIISTREAM
This is possibleTypes of variable which can be set by setAsciiStream method.


POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM
This is possibleTypes of variable which can be set by setCharacterStream method.


POSSIBLE_TYPES_IN_SET_BLOB

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_BLOB
This is possibleTypes of variable which can be set by setBlob method.


POSSIBLE_TYPES_IN_SET_CLOB

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_IN_SET_CLOB
This is possibleTypes of variable which can be set by setClob method.


POSSIBLE_TYPES_FOR_GENERIC_SCALAR_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_GENERIC_SCALAR_NULL
This is possibleTypes of null value which can be assigned to generic scalar typed variable.


POSSIBLE_TYPES_FOR_GENERIC_CHARACTERS_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_GENERIC_CHARACTERS_NULL
This is possibleTypes of null value which can be assigned to generic character typed variable.


POSSIBLE_TYPES_FOR_VARBINARY_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_VARBINARY_NULL
This is possibleTypes of null value which can be assigned to VARBINARY typed variable.


POSSIBLE_TYPES_FOR_BINARY_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_BINARY_NULL
This is possibleTypes of null value which can be assigned to BINARY typed variable.


POSSIBLE_TYPES_FOR_LONGVARBINARY_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_LONGVARBINARY_NULL
This is possibleTypes of null value which can be assigned to LONGVARBINARY typed variable.


POSSIBLE_TYPES_FOR_DATE_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_DATE_NULL
This is possibleTypes of null value which can be assigned to DATE typed variable.


POSSIBLE_TYPES_FOR_TIME_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_TIME_NULL
This is possibleTypes of null value which can be assigned to TIME typed variable.


POSSIBLE_TYPES_FOR_TIMESTAMP_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_TIMESTAMP_NULL
This is possibleTypes of null value which can be assigned to TIMESTAMP typed variable.


POSSIBLE_TYPES_FOR_CLOB_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_CLOB_NULL
This is possibleTypes of null value which can be assigned to CLOB typed variable.


POSSIBLE_TYPES_FOR_BLOB_NULL

public static final PreparedStatement.PossibleTypes POSSIBLE_TYPES_FOR_BLOB_NULL
This is possibleTypes of null value which can be assigned to BLOB typed variable.


DEFAULT_POSSIBLE_TYPES_FOR_NULL

public static final PreparedStatement.PossibleTypes DEFAULT_POSSIBLE_TYPES_FOR_NULL
This is possibleTypes of null value which can be assigned to other typed variable.

Constructor Detail

PreparedStatement.PossibleTypes

private PreparedStatement.PossibleTypes(int[] types)
Method Detail

checkType

boolean checkType(int type)
This method return true if the type is possible.


throw22005Exception

static SqlException throw22005Exception(LogWriter logWriter,
                                        int valType,
                                        int paramType)
                                 throws SqlException
Throws:
SqlException

getPossibleTypesForNull

static PreparedStatement.PossibleTypes getPossibleTypesForNull(int typeOfVariable)
This method return possibleTypes of null value in variable typed as typeOfVariable.


Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.