Class ScalarTypeEncryptedWrapper<T>

java.lang.Object
io.ebeaninternal.server.type.ScalarTypeEncryptedWrapper<T>
All Implemented Interfaces:
io.ebean.core.type.ScalarDataReader<T>, io.ebean.core.type.ScalarType<T>, io.ebean.text.StringFormatter, io.ebean.text.StringParser, LocalEncryptedType

public final class ScalarTypeEncryptedWrapper<T> extends Object implements io.ebean.core.type.ScalarType<T>, LocalEncryptedType
  • Constructor Details

  • Method Details

    • localEncrypt

      public Object localEncrypt(Object value)
      Description copied from interface: LocalEncryptedType
      Encrypt and return the un-encrypted value.
      Specified by:
      localEncrypt in interface LocalEncryptedType
    • binary

      public boolean binary()
      Specified by:
      binary in interface io.ebean.core.type.ScalarType<T>
    • mutable

      public boolean mutable()
      Specified by:
      mutable in interface io.ebean.core.type.ScalarType<T>
    • isDirty

      public boolean isDirty(Object value)
      Specified by:
      isDirty in interface io.ebean.core.type.ScalarType<T>
    • readData

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

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

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

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

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

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

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

      public boolean jdbcNative()
      Specified by:
      jdbcNative in interface io.ebean.core.type.ScalarType<T>
    • formatValue

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

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

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

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

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

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

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