Class ScalarTypeUUIDBinary

java.lang.Object
io.ebean.core.type.ScalarTypeBase<UUID>
io.ebeaninternal.server.type.ScalarTypeUUIDBinary
All Implemented Interfaces:
io.ebean.core.type.ScalarDataReader<UUID>, io.ebean.core.type.ScalarType<UUID>, io.ebean.text.StringFormatter, io.ebean.text.StringParser, ScalarTypeLogicalType

public final class ScalarTypeUUIDBinary extends io.ebean.core.type.ScalarTypeBase<UUID>
  • Method Details

    • length

      public int length()
    • toJdbcType

      public Object toJdbcType(Object value)
      Specified by:
      toJdbcType in interface io.ebean.core.type.ScalarType<UUID>
    • toBeanType

      public UUID toBeanType(Object value)
      Specified by:
      toBeanType in interface io.ebean.core.type.ScalarType<UUID>
    • bind

      public void bind(io.ebean.core.type.DataBinder binder, UUID value) throws SQLException
      Throws:
      SQLException
    • read

      public UUID read(io.ebean.core.type.DataReader reader) throws SQLException
      Throws:
      SQLException
    • getLogicalType

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

      public String format(Object value)
      Specified by:
      format in interface io.ebean.core.type.ScalarType<UUID>
      Specified by:
      format in interface io.ebean.text.StringFormatter
    • formatValue

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

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

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

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

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

      public UUID jsonRead(com.fasterxml.jackson.core.JsonParser parser) throws IOException
      Specified by:
      jsonRead in interface io.ebean.core.type.ScalarType<UUID>
      Throws:
      IOException
    • docType

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