net.sf.farrago.test
Enum FarragoJdbcTest.TestJavaType
java.lang.Object
java.lang.Enum<FarragoJdbcTest.TestJavaType>
net.sf.farrago.test.FarragoJdbcTest.TestJavaType
- All Implemented Interfaces:
- Serializable, Comparable<FarragoJdbcTest.TestJavaType>
- Enclosing class:
- FarragoJdbcTest
protected static enum FarragoJdbcTest.TestJavaType
- extends Enum<FarragoJdbcTest.TestJavaType>
Defines a Java type.
Each type has a correponding set of get/set methods, for example
"Boolean" has ResultSet.getBoolean(int)
and PreparedStatement.setBoolean(int,boolean)
.
Boolean
public static final FarragoJdbcTest.TestJavaType Boolean
Byte
public static final FarragoJdbcTest.TestJavaType Byte
Short
public static final FarragoJdbcTest.TestJavaType Short
Int
public static final FarragoJdbcTest.TestJavaType Int
Long
public static final FarragoJdbcTest.TestJavaType Long
Float
public static final FarragoJdbcTest.TestJavaType Float
Double
public static final FarragoJdbcTest.TestJavaType Double
BigDecimal
public static final FarragoJdbcTest.TestJavaType BigDecimal
String
public static final FarragoJdbcTest.TestJavaType String
Bytes
public static final FarragoJdbcTest.TestJavaType Bytes
Date
public static final FarragoJdbcTest.TestJavaType Date
Time
public static final FarragoJdbcTest.TestJavaType Time
Timestamp
public static final FarragoJdbcTest.TestJavaType Timestamp
Object
public static final FarragoJdbcTest.TestJavaType Object
AsciiStream
public static final FarragoJdbcTest.TestJavaType AsciiStream
UnicodeStream
public static final FarragoJdbcTest.TestJavaType UnicodeStream
BinaryStream
public static final FarragoJdbcTest.TestJavaType BinaryStream
CharacterStream
public static final FarragoJdbcTest.TestJavaType CharacterStream
Ref
public static final FarragoJdbcTest.TestJavaType Ref
Blob
public static final FarragoJdbcTest.TestJavaType Blob
Clob
public static final FarragoJdbcTest.TestJavaType Clob
Array
public static final FarragoJdbcTest.TestJavaType Array
setMethod
private final Method setMethod
values
public static final FarragoJdbcTest.TestJavaType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(FarragoJdbcTest.TestJavaType c : FarragoJdbcTest.TestJavaType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static FarragoJdbcTest.TestJavaType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name