com.ibm.pdq.runtime.statement
Class JavaType

java.lang.Object
  extended by java.lang.Enum
      extended by com.ibm.pdq.runtime.statement.JavaType
All Implemented Interfaces:
Serializable, Comparable

public final class JavaType
extends Enum

The JavaType is an enum that represents the various Java Types (which are implementations of Type) that may be used.

See Also:
Type, Serialized Form

Field Summary

Field Summary
Data TypeField Name and Description
static JavaType ARRAY
Represent any Java Type that is an array.
static JavaType BEAN
Represents a pureQuery Bean.
static JavaType BIGDECIMAL
Represents the Java Type BigDecimal.
static JavaType BLOB
Represents the Java Type Blob.
static JavaType BOOLEAN
Represents the Java Type Boolean.
static JavaType BYTE
Represents the Java Type Byte.
static JavaType BYTE_ARRAY
Represents the Java Type Byte[].
static JavaType CHARACTER
Represents the Java Type Character.
static JavaType CLOB
Represents the Java Type Clob.
static JavaType COLLECTION
Represents the Java Type Collection.
static JavaType DATE
Represents the Java Type Date.
static JavaType DIRECT_JDBC_SETTABLE
Represents any Java Type that can be used in a JDBC RowSet setXXX method (such as RowSet.setArray(int, java.sql.Array), RowSet.setBoolean(int, boolean), or RowSet.setString(int, String)).
static JavaType DOUBLE
Represents the Java Type Double.
static JavaType FLOAT
Represents the Java Type Float.
static JavaType INPUTSTREAM
Represents the Java Type InputStream.
static JavaType INTEGER
Represents the Java Type Integer.
static JavaType ITERABLE
Represents the Java Type Iterable.
static JavaType ITERATOR
Represents the Java Type Iterator.
static JavaType LIST
Represents the Java Type List.
static JavaType LONG
Represents the Java Type Long.
static JavaType MAP
Represents either the Java Type Map or the Java Type HashMap.
static JavaType OBJECT
Represents the Java Type Object.
static JavaType READER
Represents the Java Type Reader.
static JavaType SET
Represents the Java Type Set.
static JavaType SHORT
Represents the Java Type Short.
static JavaType SIMPLE
Represents any Java Type that is not any type of a collection.
static JavaType SIMPLE_BOOLEAN
Represents the Java primitive Type boolean.
static JavaType SIMPLE_BYTE
Represents the Java primitive Type byte.
static JavaType SIMPLE_BYTE_ARRAY
Represents the Java primitive Type byte[].
static JavaType SIMPLE_CHAR
Represents the Java primitive Type char.
static JavaType SIMPLE_DOUBLE
Represents the Java primitive Type double.
static JavaType SIMPLE_FLOAT
Represents the Java primitive Type float.
static JavaType SIMPLE_INTEGER
Represents the Java primitive Type int.
static JavaType SIMPLE_LONG
Represents the Java primitive Type long.
static JavaType SIMPLE_SHORT
Represents the Java primitive Type short.
static JavaType STRING
Represents the Java Type String.
static JavaType TIME
Represents the Java Type Time.
static JavaType TIMESTAMP
Represents the Java Type Timestamp.
static JavaType UNKNOWN
Indicates an unrecognized Java Type.
static JavaType UNKNOWN_UNTIL_RUNTIME
Indicates that the Java Type cannot be determined until runtime.
static JavaType VOID
Represents the Java return Type of void.

Method Summary

Method Summary
Return Data TypeMethod Name and Description
static JavaType valueOf(String name)
static JavaType[] values()

Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

ARRAY

public static final JavaType ARRAY
Represent any Java Type that is an array.

BEAN

public static final JavaType BEAN
Represents a pureQuery Bean.

BIGDECIMAL

public static final JavaType BIGDECIMAL
Represents the Java Type BigDecimal.

BLOB

public static final JavaType BLOB
Represents the Java Type Blob.

BOOLEAN

public static final JavaType BOOLEAN
Represents the Java Type Boolean. Note that this is not the same as the Java primitive Type boolean.

BYTE

public static final JavaType BYTE
Represents the Java Type Byte. Note that this is not the same as the Java primitive Type byte.

BYTE_ARRAY

public static final JavaType BYTE_ARRAY
Represents the Java Type Byte[]. Note that the base class of this array is not the same as the Java primitive Type byte.

CHARACTER

public static final JavaType CHARACTER
Represents the Java Type Character. Note that this is not the same as the Java primitive Type char.

CLOB

public static final JavaType CLOB
Represents the Java Type Clob.

COLLECTION

public static final JavaType COLLECTION
Represents the Java Type Collection.

DATE

public static final JavaType DATE
Represents the Java Type Date.

DIRECT_JDBC_SETTABLE

public static final JavaType DIRECT_JDBC_SETTABLE
Represents any Java Type that can be used in a JDBC RowSet setXXX method (such as RowSet.setArray(int, java.sql.Array), RowSet.setBoolean(int, boolean), or RowSet.setString(int, String)).

DOUBLE

public static final JavaType DOUBLE
Represents the Java Type Double. Note that this is not the same as the Java primitive Type double.

FLOAT

public static final JavaType FLOAT
Represents the Java Type Float. Note that this is not the same as the Java primitive Type float.

INPUTSTREAM

public static final JavaType INPUTSTREAM
Represents the Java Type InputStream.

INTEGER

public static final JavaType INTEGER
Represents the Java Type Integer. Note that this is not the same as the Java primitive Type int.

ITERABLE

public static final JavaType ITERABLE
Represents the Java Type Iterable.

ITERATOR

public static final JavaType ITERATOR
Represents the Java Type Iterator.

LIST

public static final JavaType LIST
Represents the Java Type List.

LONG

public static final JavaType LONG
Represents the Java Type Long. Note that this is not the same as the Java primitive Type long.

MAP

public static final JavaType MAP
Represents either the Java Type Map or the Java Type HashMap.

OBJECT

public static final JavaType OBJECT
Represents the Java Type Object. Note that this only represents exactly Object (and therefore it does not represent classes that extend Object).

READER

public static final JavaType READER
Represents the Java Type Reader.

SET

public static final JavaType SET
Represents the Java Type Set.

SHORT

public static final JavaType SHORT
Represents the Java Type Short. Note that this is not the same as the Java primitive Type short.

SIMPLE

public static final JavaType SIMPLE
Represents any Java Type that is not any type of a collection. Therefore, for example, the Type will not be an instance of Iterator, Iterable, or List, and it will not be an array.

SIMPLE_BOOLEAN

public static final JavaType SIMPLE_BOOLEAN
Represents the Java primitive Type boolean.

SIMPLE_BYTE

public static final JavaType SIMPLE_BYTE
Represents the Java primitive Type byte.

SIMPLE_BYTE_ARRAY

public static final JavaType SIMPLE_BYTE_ARRAY
Represents the Java primitive Type byte[].

SIMPLE_CHAR

public static final JavaType SIMPLE_CHAR
Represents the Java primitive Type char.

SIMPLE_DOUBLE

public static final JavaType SIMPLE_DOUBLE
Represents the Java primitive Type double.

SIMPLE_FLOAT

public static final JavaType SIMPLE_FLOAT
Represents the Java primitive Type float.

SIMPLE_INTEGER

public static final JavaType SIMPLE_INTEGER
Represents the Java primitive Type int.

SIMPLE_LONG

public static final JavaType SIMPLE_LONG
Represents the Java primitive Type long.

SIMPLE_SHORT

public static final JavaType SIMPLE_SHORT
Represents the Java primitive Type short.

STRING

public static final JavaType STRING
Represents the Java Type String.

TIME

public static final JavaType TIME
Represents the Java Type Time.

TIMESTAMP

public static final JavaType TIMESTAMP
Represents the Java Type Timestamp.

UNKNOWN

public static final JavaType UNKNOWN
Indicates an unrecognized Java Type.

UNKNOWN_UNTIL_RUNTIME

public static final JavaType UNKNOWN_UNTIL_RUNTIME
Indicates that the Java Type cannot be determined until runtime. The type may be, for example, a Type that will be described in a Map at runtime.

VOID

public static final JavaType VOID
Represents the Java return Type of void.

Method Detail

valueOf

public static JavaType valueOf(String name)

values

public static final JavaType[] values()