Enum ResultSetGetter
- java.lang.Object
-
- java.lang.Enum<ResultSetGetter>
-
- org.apache.torque.templates.typemapping.ResultSetGetter
-
- All Implemented Interfaces:
Serializable,Comparable<ResultSetGetter>
public enum ResultSetGetter extends Enum<ResultSetGetter>
All available result set getter methods. $Id: ResultSetGetter.java 1839288 2018-08-27 09:48:33Z tv $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYgetArray Method.ASCII_STREAMgetAsciiStream Method.BIG_DECIMALgetBigDecimal Method.BINARY_STREAMgetBinaryStream Method.BLOBgetBlob Method.BOOLEANgetBoolean Method.BYTEgetByte Method.BYTESgetBytes Method.CHARACTER_STREAMgetCharacterStream Method.CLOBgetClob Method.DATEgetDate Method.DOUBLEgetDouble Method.FLOATgetFloat Method.INTgetInt Method.LONGgetLong Method.OBJECTgetObject Method.REFgetRef Method.SHORTgetShort Method.STRINGgetString Method.TIMEgetTime Method.TIMESTAMPgetTimestamp Method.UNICODE_STREAMgetUnicodeStream Method.URLgetURL Method.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultSetGettergetByMethodName(String methodName)Retursn the ResultSetGetter with the given method name.StringgetMethod()Returns the method name.StringtoString()Returns the method name.static ResultSetGettervalueOf(String name)Returns the enum constant of this type with the specified name.static ResultSetGetter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final ResultSetGetter ARRAY
getArray Method.
-
ASCII_STREAM
public static final ResultSetGetter ASCII_STREAM
getAsciiStream Method.
-
BIG_DECIMAL
public static final ResultSetGetter BIG_DECIMAL
getBigDecimal Method.
-
BINARY_STREAM
public static final ResultSetGetter BINARY_STREAM
getBinaryStream Method.
-
BLOB
public static final ResultSetGetter BLOB
getBlob Method.
-
BOOLEAN
public static final ResultSetGetter BOOLEAN
getBoolean Method.
-
BYTE
public static final ResultSetGetter BYTE
getByte Method.
-
BYTES
public static final ResultSetGetter BYTES
getBytes Method.
-
CHARACTER_STREAM
public static final ResultSetGetter CHARACTER_STREAM
getCharacterStream Method.
-
CLOB
public static final ResultSetGetter CLOB
getClob Method.
-
DATE
public static final ResultSetGetter DATE
getDate Method.
-
DOUBLE
public static final ResultSetGetter DOUBLE
getDouble Method.
-
FLOAT
public static final ResultSetGetter FLOAT
getFloat Method.
-
INT
public static final ResultSetGetter INT
getInt Method.
-
LONG
public static final ResultSetGetter LONG
getLong Method.
-
OBJECT
public static final ResultSetGetter OBJECT
getObject Method.
-
REF
public static final ResultSetGetter REF
getRef Method.
-
SHORT
public static final ResultSetGetter SHORT
getShort Method.
-
STRING
public static final ResultSetGetter STRING
getString Method.
-
TIME
public static final ResultSetGetter TIME
getTime Method.
-
TIMESTAMP
public static final ResultSetGetter TIMESTAMP
getTimestamp Method.
-
UNICODE_STREAM
public static final ResultSetGetter UNICODE_STREAM
getUnicodeStream Method.
-
URL
public static final ResultSetGetter URL
getURL Method.
-
-
Method Detail
-
values
public static ResultSetGetter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResultSetGetter c : ResultSetGetter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResultSetGetter 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 nameNullPointerException- if the argument is null
-
getMethod
public String getMethod()
Returns the method name.- Returns:
- the method name, not null.
-
toString
public String toString()
Returns the method name.- Overrides:
toStringin classEnum<ResultSetGetter>- Returns:
- the method name, not null.
-
getByMethodName
public static ResultSetGetter getByMethodName(String methodName)
Retursn the ResultSetGetter with the given method name.- Parameters:
methodName- the method name.- Returns:
- the matching ResultSetGetter, not null.
- Throws:
IllegalArgumentException- if no matching ResultSetGetter exists.
-
-