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
  • Method Details

    • getLogicalType

      public int getLogicalType()
      Description copied from interface: ScalarTypeLogicalType
      Return the DB agnostic logical type.
      Specified by:
      getLogicalType in interface ScalarTypeLogicalType
    • getDbFalseLiteral

      public abstract String getDbFalseLiteral()
      Return the DB literal value for false.
      Specified by:
      getDbFalseLiteral in interface ScalarTypeBool
    • getDbTrueLiteral

      public abstract String getDbTrueLiteral()
      Return the DB literal value for true.
      Specified by:
      getDbTrueLiteral in interface ScalarTypeBool
    • formatValue

      public String formatValue(Boolean t)
      Specified by:
      formatValue in interface io.ebean.core.type.ScalarType<Boolean>
    • parse

      public Boolean parse(String value)
      Specified by:
      parse in interface io.ebean.core.type.ScalarType<Boolean>
      Specified by:
      parse in interface io.ebean.text.StringParser
    • readData

      public Boolean readData(DataInput dataInput) throws IOException
      Specified by:
      readData in interface io.ebean.core.type.ScalarType<Boolean>
      Throws:
      IOException
    • writeData

      public void writeData(DataOutput dataOutput, Boolean val) throws IOException
      Specified by:
      writeData in interface io.ebean.core.type.ScalarType<Boolean>
      Throws:
      IOException
    • jsonRead

      public Boolean jsonRead(com.fasterxml.jackson.core.JsonParser parser)
      Specified by:
      jsonRead in interface io.ebean.core.type.ScalarType<Boolean>
    • jsonWrite

      public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, Boolean value) throws IOException
      Specified by:
      jsonWrite in interface io.ebean.core.type.ScalarType<Boolean>
      Throws:
      IOException
    • docType

      public io.ebean.core.type.DocPropertyType docType()
      Specified by:
      docType in interface io.ebean.core.type.ScalarType<Boolean>