public enum BooleanFromResultSet extends Enum<BooleanFromResultSet> implements IFromResultSet<Boolean,BooleanColumnBuilder>
ResultSet into a
BooleanColumnBuilder:
| Enum Constant and Description |
|---|
BOOLEAN_FROM_INT
|
BOOLEAN_FROM_STRING
Reads a string value from the
ResultSet using
ResultSet.getString(int). |
| Modifier and Type | Method and Description |
|---|---|
ColumnType<Boolean> |
getColumnType()
Returns
ColumnType.BOOLEAN |
static BooleanFromResultSet |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BooleanFromResultSet[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetpublic static final BooleanFromResultSet BOOLEAN_FROM_STRING
ResultSet using
ResultSet.getString(int). The string value is considered to be
true iff it is "Y" or "true", ignoring case.public static final BooleanFromResultSet BOOLEAN_FROM_INT
int value from the ResultSet using
ResultSet.getInt(int). The int value is considered to be
true iff it is not zero.public static BooleanFromResultSet[] values()
for (BooleanFromResultSet c : BooleanFromResultSet.values()) System.out.println(c);
public static BooleanFromResultSet 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 ColumnType<Boolean> getColumnType()
ColumnType.BOOLEANgetColumnType in interface IFromResultSet<Boolean,BooleanColumnBuilder>ColumnType.BOOLEANCopyright © 2020. All rights reserved.