Class ClientPreparedStatement.PossibleTypes

  • Enclosing class:
    ClientPreparedStatement

    private static class ClientPreparedStatement.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 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_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_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.
    • Constructor Detail

      • PossibleTypes

        private PossibleTypes​(int[] types)
    • Method Detail

      • checkType

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

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