public class BooleanCharType extends BooleanType
DatabaseField.dataType() specifier.
@DatabaseField(format = "YN", dataType = DataType.BOOLEAN_CHAR)Thanks much to stew.
| Constructor and Description |
|---|
BooleanCharType() |
| Modifier and Type | Method and Description |
|---|---|
static BooleanCharType |
getSingleton() |
Object |
javaToSqlArg(FieldType fieldType,
Object obj)
Convert a Java object and return the appropriate argument to a SQL insert or update statement.
|
Object |
makeConfigObject(FieldType fieldType)
This makes a configuration object for the data-type or returns null if none.
|
Object |
parseDefaultString(FieldType fieldType,
String defaultStr)
Convert a default string object and return the appropriate argument to a SQL insert or update statement.
|
Object |
resultStringToJava(FieldType fieldType,
String stringValue,
int columnPos)
Convert a string result value to the related Java field.
|
Object |
resultToSqlArg(FieldType fieldType,
DatabaseResults results,
int columnPos)
Return the SQL argument object extracted from the results associated with column in position columnPos.
|
Object |
sqlArgToJava(FieldType fieldType,
Object sqlArg,
int columnPos)
Return the object converted from the SQL arg to java.
|
isPrimitiveisAppropriateId, isEscapedValueconvertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getDefaultWidth, getPrimaryClass, getSqlOtherType, getSqlType, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isSelfGeneratedId, isValidForField, isValidForVersion, isValidGeneratedType, moveToNextValueisStreamType, resultToJavaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisStreamType, resultToJavapublic static BooleanCharType getSingleton()
public Object parseDefaultString(FieldType fieldType, String defaultStr)
FieldConverterparseDefaultString in interface FieldConverterparseDefaultString in class BooleanObjectTypepublic Object javaToSqlArg(FieldType fieldType, Object obj)
FieldConverterjavaToSqlArg in interface FieldConverterjavaToSqlArg in class BaseFieldConverterpublic Object resultToSqlArg(FieldType fieldType, DatabaseResults results, int columnPos) throws SQLException
FieldConverterresultToSqlArg in interface FieldConverterresultToSqlArg in class BooleanObjectTypefieldType - Associated FieldType which may be null.SQLException - If there is a problem accessing the results data.public Object sqlArgToJava(FieldType fieldType, Object sqlArg, int columnPos)
FieldConvertersqlArgToJava in interface FieldConvertersqlArgToJava in class BaseFieldConverterfieldType - Associated FieldType which may be null.sqlArg - SQL argument converted with FieldConverter.resultToSqlArg(FieldType, DatabaseResults, int) which will not be
null.public Object resultStringToJava(FieldType fieldType, String stringValue, int columnPos)
FieldConverterresultStringToJava in interface FieldConverterresultStringToJava in class BaseDataTypepublic Object makeConfigObject(FieldType fieldType) throws SQLException
DataPersisterFieldType.getDataTypeConfigObj().makeConfigObject in interface DataPersistermakeConfigObject in class BaseDataTypeSQLException - If there are problems creating the config object. Needed for subclasses.This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.