public class EnumToStringType extends EnumStringType
Enum.toString()
. You can also use the
EnumIntegerType
. If you want to use the Enum.name()
instead, see the EnumStringType
.DEFAULT_WIDTH
Modifier | Constructor and Description |
---|---|
protected |
EnumToStringType(SqlType sqlType,
Class<?>[] classes)
Here for others to subclass.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getEnumName(Enum<?> enumVal) |
static EnumToStringType |
getSingleton() |
getDefaultWidth, javaToSqlArg, makeConfigObject, parseDefaultString, resultToSqlArg, sqlArgToJava
enumVal, isValidForField
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getPrimaryClass, getSqlOtherType, getSqlType, isAppropriateId, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidForVersion, isValidGeneratedType, moveToNextValue, resultStringToJava
isStreamType, resultToJava
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStreamType, resultToJava
public static EnumToStringType getSingleton()
protected String getEnumName(Enum<?> enumVal)
getEnumName
in class EnumStringType
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.