|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.db.BaseDatabaseType.BooleanNumberFieldConverter
protected static class BaseDatabaseType.BooleanNumberFieldConverter
Conversion to/from the Boolean Java field as a number because some databases like the true/false.
| Constructor Summary | |
|---|---|
protected |
BaseDatabaseType.BooleanNumberFieldConverter()
|
| Method Summary | |
|---|---|
int |
getJdbcTypeVal()
Return the SQL type that is stored in the database for this argument. |
boolean |
isStreamType()
Return whether or not this is a SQL "stream" object. |
Object |
javaToArg(Object javaObject)
Convert a Java object and return the appropriate argument to a SQL insert or update statement. |
Object |
parseDefaultString(String defaultStr)
Convert a default string object and return the appropriate argument to a SQL insert or update statement. |
Object |
resultToJava(FieldType fieldType,
Results results,
int columnPos)
Return the object extracted from the results associated with column in position columnPos. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseDatabaseType.BooleanNumberFieldConverter()
| Method Detail |
|---|
public int getJdbcTypeVal()
FieldConverterTypes
constants.
getJdbcTypeVal in interface FieldConverter
public Object parseDefaultString(String defaultStr)
throws SQLException
FieldConverter
parseDefaultString in interface FieldConverterSQLException
public Object javaToArg(Object javaObject)
throws SQLException
FieldConverter
javaToArg in interface FieldConverterSQLException
public Object resultToJava(FieldType fieldType,
Results results,
int columnPos)
throws SQLException
FieldConverter
resultToJava in interface FieldConverterSQLException - If there is a problem accessing the results data.public boolean isStreamType()
FieldConverter
isStreamType in interface FieldConverter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||