Package org.apache.derby.client.am
Class ClientPreparedStatement.PossibleTypes
- java.lang.Object
-
- org.apache.derby.client.am.ClientPreparedStatement.PossibleTypes
-
- Enclosing class:
- ClientPreparedStatement
private static class ClientPreparedStatement.PossibleTypes extends java.lang.ObjectPossibleTypes 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
Fields Modifier and Type Field Description static ClientPreparedStatement.PossibleTypesDEFAULT_POSSIBLE_TYPES_FOR_NULLThis is possibleTypes of null value which can be assigned to other typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_BINARY_NULLThis is possibleTypes of null value which can be assigned to BINARY typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_BLOB_NULLThis is possibleTypes of null value which can be assigned to BLOB typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_CLOB_NULLThis is possibleTypes of null value which can be assigned to CLOB typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_DATE_NULLThis is possibleTypes of null value which can be assigned to DATE typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_GENERIC_CHARACTERS_NULLThis is possibleTypes of null value which can be assigned to generic character typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_GENERIC_SCALAR_NULLThis is possibleTypes of null value which can be assigned to generic scalar typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_LONGVARBINARY_NULLThis is possibleTypes of null value which can be assigned to LONGVARBINARY typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_TIME_NULLThis is possibleTypes of null value which can be assigned to TIME typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_TIMESTAMP_NULLThis is possibleTypes of null value which can be assigned to TIMESTAMP typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_FOR_VARBINARY_NULLThis is possibleTypes of null value which can be assigned to VARBINARY typed variable.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_ASCIISTREAMThis is possibleTypes of variable which can be set by setAsciiStream method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_BINARYSTREAMThis is possibleTypes of variable which can be set by setBinaryStream method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_BLOBThis is possibleTypes of variable which can be set by setBlob method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_BYTESThis is possibleTypes of variable which can be set by setBytes method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_CHARACTERSTREAMThis is possibleTypes of variable which can be set by setCharacterStream method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_CLOBThis is possibleTypes of variable which can be set by setClob method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_DATEThis is possibleTypes of variable which can be set by setDate method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_GENERIC_SCALARThis is possibleTypes of variable which can be set by set method for generic scalar.private static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_STRINGThis is possibleTypes of variable which can be set by setString method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_TIMEThis is possibleTypes of variable which can be set by setTime method.static ClientPreparedStatement.PossibleTypesPOSSIBLE_TYPES_IN_SET_TIMESTAMPThis is possibleTypes of variable which can be set by setTimestamp method.private int[]possibleTypes
-
Constructor Summary
Constructors Modifier Constructor Description privatePossibleTypes(int[] types)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleancheckType(int type)This method return true if the type is possible.(package private) static ClientPreparedStatement.PossibleTypesgetPossibleTypesForNull(int typeOfVariable)This method return possibleTypes of null value in variable typed as typeOfVariable.(package private) static SqlExceptionthrow22005Exception(LogWriter logWriter, int valType, int paramType)
-
-
-
Field Detail
-
possibleTypes
private final int[] possibleTypes
-
POSSIBLE_TYPES_IN_SET_GENERIC_SCALAR
public static final ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.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 ClientPreparedStatement.PossibleTypes DEFAULT_POSSIBLE_TYPES_FOR_NULL
This is possibleTypes of null value which can be assigned to other typed variable.
-
-
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 ClientPreparedStatement.PossibleTypes getPossibleTypesForNull(int typeOfVariable)
This method return possibleTypes of null value in variable typed as typeOfVariable.
-
-