@Status(stage=PRODUCTION, unitTests=COMPLETE) @Reviews(value=@Review(by="Kees Schotanus",at="2009-04-11")) public enum CType extends Enum<CType>
Types
.Modifier and Type | Method and Description |
---|---|
static Object |
getBindVariable(Array value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(BigDecimal value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(BigInteger value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Blob value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Boolean value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Byte value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(byte[] value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Character value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Clob value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Date value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Double value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Float value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Integer value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Long value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(NClob value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Ref value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(RowId value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Short value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(SQLXML value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(String value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Struct value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Time value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
static Object |
getBindVariable(Timestamp value)
Helper method to either return the supplied value or the corresponding
JDBC Type when the supplied value is null.
|
int |
getType()
Gets the wrapped primitive JDBC type.
|
static CType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CType ARRAY
Types.ARRAY
.public static final CType BIGINT
Types.BIGINT
.public static final CType BINARY
Types.BINARY
.public static final CType BLOB
Types.BLOB
.public static final CType BOOLEAN
Types.BOOLEAN
.public static final CType CHAR
Types.CHAR
.public static final CType CLOB
Types.CLOB
.public static final CType DATALINK
Types.DATALINK
.public static final CType DATE
Types.DATE
.public static final CType DECIMAL
Types.DECIMAL
.public static final CType DISTINCT
Types.DISTINCT
.public static final CType DOUBLE
Types.DOUBLE
.public static final CType FLOAT
Types.FLOAT
.public static final CType INTEGER
Types.INTEGER
.public static final CType JAVA_OBJECT
Types.JAVA_OBJECT
.public static final CType LONGNVARCHAR
Types.LONGNVARCHAR
.public static final CType LONGVARBINARY
Types.LONGVARBINARY
.public static final CType LONGVARCHAR
Types.LONGVARCHAR
.public static final CType NCHAR
Types.NCHAR
.public static final CType NCLOB
Types.NCLOB
.public static final CType NULL
Types.NULL
.public static final CType NUMERIC
Types.NUMERIC
.public static final CType NVARCHAR
Types.NVARCHAR
.public static final CType OTHER
Types.OTHER
.public static final CType REAL
Types.REAL
.public static final CType REF_CURSOR
Types.REF_CURSOR
.public static final CType ROWID
Types.ROWID
.public static final CType SMALLINT
Types.SMALLINT
.public static final CType SQLXML
Types.SQLXML
.public static final CType STRUCT
Types.STRUCT
.public static final CType TIME
Types.TIME
.public static final CType TIME_WITH_TIMEZONE
Types.TIME_WITH_TIMEZONE
.public static final CType TIMESTAMP
Types.TIMESTAMP
.public static final CType TIMESTAMP_WITH_TIMEZONE
Types.TIMESTAMP_WITH_TIMEZONE
.public static final CType TINYINT
Types.TINYINT
.public static final CType VARBINARY
Types.VARBINARY
.public static final CType VARCHAR
Types.VARCHAR
.public static CType[] values()
for (CType c : CType.values()) System.out.println(c);
public static CType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getType()
public static Object getBindVariable(Array value)
value
- The SQL parameter value.ARRAY
.public static Object getBindVariable(BigDecimal value)
value
- The SQL parameter value.NUMERIC
.public static Object getBindVariable(BigInteger value)
value
- The SQL parameter value.NUMERIC
.public static Object getBindVariable(Blob value)
value
- The SQL parameter value.BLOB
.public static Object getBindVariable(Boolean value)
value
- The SQL parameter value.BOOLEAN
.public static Object getBindVariable(Byte value)
value
- The SQL parameter value.TINYINT
.public static Object getBindVariable(byte[] value)
value
- The SQL parameter value.VARBINARY
.public static Object getBindVariable(Character value)
value
- The SQL parameter value.CHAR
.public static Object getBindVariable(Clob value)
value
- The SQL parameter value.CLOB
.public static Object getBindVariable(Date value)
value
- The SQL parameter value.DATE
.public static Object getBindVariable(Double value)
value
- The SQL parameter value.DOUBLE
.public static Object getBindVariable(Float value)
value
- The SQL parameter value.REAL
.public static Object getBindVariable(Integer value)
value
- The SQL parameter value.INTEGER
.public static Object getBindVariable(Long value)
value
- The SQL parameter value.BIGINT
.public static Object getBindVariable(NClob value)
value
- The SQL parameter value.NCLOB
.public static Object getBindVariable(Ref value)
value
- The SQL parameter value.REF
.public static Object getBindVariable(RowId value)
value
- The SQL parameter value.ROWID
.public static Object getBindVariable(Short value)
value
- The SQL parameter value.SMALLINT
.public static Object getBindVariable(SQLXML value)
value
- The SQL parameter value.SQLXML
.public static Object getBindVariable(String value)
value
- The SQL parameter value.VARCHAR
.public static Object getBindVariable(Struct value)
value
- The SQL parameter value.STRUCT
.public static Object getBindVariable(Time value)
value
- The SQL parameter value.TIME
.public static Object getBindVariable(Timestamp value)
value
- The SQL parameter value.TIMESTAMP
.Copyright © 2008–2018. All rights reserved.