public static enum JdbcMapInsert.BasicType extends java.lang.Enum<JdbcMapInsert.BasicType>
Enum Constant and Description |
---|
BigDecimal |
BigInteger
There doesn't appear to be an equivalent JDBC method for setting a
BigInteger on a prepared statement so this uses
PreparedStatement.setObject(int, Object) so behaviour will largely depend on the provider. |
Boolean
Converts to a boolean value via
BooleanUtils.toBooleanObject(String) . |
Date
Converts to
Date via Date.valueOf(String) |
Double |
Float |
Integer |
Long |
String |
Time
Converts to
Time via Time.valueOf(String) . |
Timestamp
Converts to
Timestamp via Timestamp.valueOf(String) . |
Modifier and Type | Method and Description |
---|---|
static JdbcMapInsert.BasicType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JdbcMapInsert.BasicType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JdbcMapInsert.BasicType String
PreparedStatement.setString(int, String)
public static final JdbcMapInsert.BasicType Integer
PreparedStatement.setInt(int, int)
public static final JdbcMapInsert.BasicType Long
PreparedStatement.setLong(int, long)
public static final JdbcMapInsert.BasicType Boolean
BooleanUtils.toBooleanObject(String)
.PreparedStatement.setBoolean(int, boolean)
public static final JdbcMapInsert.BasicType BigInteger
BigInteger
on a prepared statement so this uses
PreparedStatement.setObject(int, Object)
so behaviour will largely depend on the provider.public static final JdbcMapInsert.BasicType BigDecimal
PreparedStatement.setBigDecimal(int, java.math.BigDecimal)
public static final JdbcMapInsert.BasicType Float
PreparedStatement.setFloat(int, float)
public static final JdbcMapInsert.BasicType Double
PreparedStatement.setDouble(int, double)
public static final JdbcMapInsert.BasicType Date
Date
via Date.valueOf(String)
PreparedStatement.setDate(int, java.sql.Date)
public static final JdbcMapInsert.BasicType Timestamp
Timestamp
via Timestamp.valueOf(String)
.PreparedStatement.setTimestamp(int, java.sql.Timestamp)
public static final JdbcMapInsert.BasicType Time
Time
via Time.valueOf(String)
.PreparedStatement.setTime(int, java.sql.Time)
public static JdbcMapInsert.BasicType[] values()
for (JdbcMapInsert.BasicType c : JdbcMapInsert.BasicType.values()) System.out.println(c);
public static JdbcMapInsert.BasicType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null