Class ScalarTypeBytesEncrypted

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

public final class ScalarTypeBytesEncrypted extends Object implements io.ebean.core.type.ScalarType<byte[]>
Encrypted ScalarType that wraps a byte[] types.
  • Constructor Details

  • Method Details

    • binary

      public boolean binary()
      Specified by:
      binary in interface io.ebean.core.type.ScalarType<byte[]>
    • bind

      public void bind(io.ebean.core.type.DataBinder binder, byte[] value) throws SQLException
      Specified by:
      bind in interface io.ebean.core.type.ScalarType<byte[]>
      Throws:
      SQLException
    • jdbcType

      public int jdbcType()
      Specified by:
      jdbcType in interface io.ebean.core.type.ScalarType<byte[]>
    • length

      public int length()
      Specified by:
      length in interface io.ebean.core.type.ScalarType<byte[]>
    • type

      public Class<byte[]> type()
      Specified by:
      type in interface io.ebean.core.type.ScalarType<byte[]>
    • jdbcNative

      public boolean jdbcNative()
      Specified by:
      jdbcNative in interface io.ebean.core.type.ScalarType<byte[]>
    • jsonWrite

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

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

      public io.ebean.core.type.DocPropertyType docType()
      Specified by:
      docType in interface io.ebean.core.type.ScalarType<byte[]>
    • formatValue

      public String formatValue(byte[] v)
      Specified by:
      formatValue in interface io.ebean.core.type.ScalarType<byte[]>
    • parse

      public byte[] parse(String value)
      Specified by:
      parse in interface io.ebean.core.type.ScalarType<byte[]>
      Specified by:
      parse in interface io.ebean.text.StringParser
    • read

      public byte[] read(io.ebean.core.type.DataReader reader) throws SQLException
      Specified by:
      read in interface io.ebean.core.type.ScalarDataReader<byte[]>
      Specified by:
      read in interface io.ebean.core.type.ScalarType<byte[]>
      Throws:
      SQLException
    • toBeanType

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

      public Object toJdbcType(Object value)
      Specified by:
      toJdbcType in interface io.ebean.core.type.ScalarType<byte[]>
    • readData

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

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