Class ScalarTypeBoolean.BooleanBase
java.lang.Object
io.ebean.core.type.ScalarTypeBase<Boolean>
io.ebeaninternal.server.type.ScalarTypeBoolean.BooleanBase
- All Implemented Interfaces:
io.ebean.core.type.ScalarDataReader<Boolean>, io.ebean.core.type.ScalarType<Boolean>, io.ebean.text.StringFormatter, io.ebean.text.StringParser, ScalarTypeBool, ScalarTypeLogicalType
- Direct Known Subclasses:
ScalarTypeBoolean.Native
- Enclosing class:
ScalarTypeBoolean
public abstract static class ScalarTypeBoolean.BooleanBase
extends io.ebean.core.type.ScalarTypeBase<Boolean>
implements ScalarTypeBool
-
Field Summary
Fields inherited from class io.ebean.core.type.ScalarTypeBase
jdbcNative, jdbcType, type -
Method Summary
Modifier and TypeMethodDescriptionio.ebean.core.type.DocPropertyTypedocType()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 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
-
parse
-
readData
- Specified by:
readDatain interfaceio.ebean.core.type.ScalarType<Boolean>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceio.ebean.core.type.ScalarType<Boolean>- Throws:
IOException
-
jsonRead
-
jsonWrite
public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, Boolean value) throws IOException - Specified by:
jsonWritein interfaceio.ebean.core.type.ScalarType<Boolean>- Throws:
IOException
-
docType
public io.ebean.core.type.DocPropertyType docType()- Specified by:
docTypein interfaceio.ebean.core.type.ScalarType<Boolean>
-