Class ScalarTypeBytesBase

java.lang.Object
io.ebean.core.type.ScalarTypeBase<byte[]>
io.ebeaninternal.server.type.ScalarTypeBytesBase
All Implemented Interfaces:
io.ebean.core.type.ScalarDataReader<byte[]>, io.ebean.core.type.ScalarType<byte[]>, io.ebean.text.StringFormatter, io.ebean.text.StringParser

public abstract class ScalarTypeBytesBase extends io.ebean.core.type.ScalarTypeBase<byte[]>
Base type for binary types.
  • Method Details

    • binary

      public boolean binary()
    • convertToBytes

      public byte[] convertToBytes(Object value)
    • bind

      public void bind(io.ebean.core.type.DataBinder binder, byte[] value) throws SQLException
      Throws:
      SQLException
    • toJdbcType

      public Object toJdbcType(Object value)
    • toBeanType

      public byte[] toBeanType(Object value)
    • formatValue

      public String formatValue(byte[] t)
    • parse

      public byte[] parse(String value)
    • readData

      public byte[] readData(DataInput dataInput) throws IOException
      Throws:
      IOException
    • writeData

      public void writeData(DataOutput dataOutput, byte[] v) throws IOException
      Throws:
      IOException
    • jsonWrite

      public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, byte[] value) throws IOException
      Throws:
      IOException
    • jsonRead

      public byte[] jsonRead(com.fasterxml.jackson.core.JsonParser parser) throws IOException
      Throws:
      IOException
    • docType

      public io.ebean.core.type.DocPropertyType docType()