com.j256.ormlite.field.types
Class BaseEnumType
java.lang.Object
com.j256.ormlite.field.types.BaseDataType
com.j256.ormlite.field.types.BaseEnumType
- All Implemented Interfaces:
- DataPersister, FieldConverter
- Direct Known Subclasses:
- EnumIntegerType, EnumStringType
public abstract class BaseEnumType
- extends BaseDataType
Base class for the enum classes to provide a utility method.
- Author:
- graywatson
Methods inherited from class com.j256.ormlite.field.types.BaseDataType |
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getDefaultWidth, getSqlType, isAppropriateId, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelectArgRequired, isSelfGeneratedId, isStreamType, isValidForVersion, isValidGeneratedType, javaToSqlArg, makeConfigObject, moveToNextValue, parseDefaultString, resultToJava, sqlArgToJava |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseEnumType
protected BaseEnumType(SqlType sqlType,
Class<?>[] classes)
enumVal
protected static Enum<?> enumVal(FieldType fieldType,
Object val,
Enum<?> enumVal,
Enum<?> unknownEnumVal)
throws SQLException
- Throws:
SQLException
isValidForField
public boolean isValidForField(Field field)
- Description copied from interface:
DataPersister
- Return true if the field is appropriate for this persister.
- Specified by:
isValidForField
in interface DataPersister
- Specified by:
isValidForField
in class BaseDataType
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.