java.lang.Object
io.ebean.core.type.ScalarTypeBase<Boolean>
io.ebeaninternal.server.type.ScalarTypeBoolean.BooleanBase
- All Implemented Interfaces:
ScalarDataReader<Boolean>,ScalarType<Boolean>,StringFormatter,StringParser,ScalarTypeBool,ScalarTypeLogicalType
- Direct Known Subclasses:
ScalarTypeBoolean.Native
- Enclosing class:
ScalarTypeBoolean
public abstract static class ScalarTypeBoolean.BooleanBase
extends ScalarTypeBase<Boolean>
implements ScalarTypeBool
-
Field Summary
Fields inherited from class io.ebean.core.type.ScalarTypeBase
jdbcNative, jdbcType, type -
Method Summary
Modifier and TypeMethodDescriptiondocType()abstract StringReturn the DB literal value for false.abstract StringReturn the DB literal value for true.intReturn the DB agnostic logical type.jsonRead(com.fasterxml.jackson.core.JsonParser parser) voidvoidwriteData(DataOutput dataOutput, Boolean val) Methods inherited from class io.ebean.core.type.ScalarTypeBase
jdbcNative, jdbcType, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebean.core.type.ScalarType
asVersion, binary, bind, format, isDirty, jdbcNative, jdbcType, jsonMapper, length, mutable, read, toBeanType, toJdbcType, type
-
Method Details
-
getLogicalType
public int getLogicalType()Description copied from interface:ScalarTypeLogicalTypeReturn the DB agnostic logical type.- Specified by:
getLogicalTypein interfaceScalarTypeLogicalType
-
getDbFalseLiteral
Return the DB literal value for false.- Specified by:
getDbFalseLiteralin interfaceScalarTypeBool
-
getDbTrueLiteral
Return the DB literal value for true.- Specified by:
getDbTrueLiteralin interfaceScalarTypeBool
-
formatValue
- Specified by:
formatValuein interfaceScalarType<Boolean>
-
parse
- Specified by:
parsein interfaceScalarType<Boolean>- Specified by:
parsein interfaceStringParser
-
readData
- Specified by:
readDatain interfaceScalarType<Boolean>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceScalarType<Boolean>- Throws:
IOException
-
jsonRead
- Specified by:
jsonReadin interfaceScalarType<Boolean>
-
jsonWrite
public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, Boolean value) throws IOException - Specified by:
jsonWritein interfaceScalarType<Boolean>- Throws:
IOException
-
docType
- Specified by:
docTypein interfaceScalarType<Boolean>
-