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 Summary
ConstructorsConstructorDescriptionScalarTypeEncryptedWrapper(io.ebean.core.type.ScalarType<T> wrapped, ScalarTypeBytesBase byteArrayType, DataEncryptSupport dataEncryptSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()voidio.ebean.core.type.DocPropertyTypedocType()formatValue(T v) booleanbooleanintjdbcType()jsonRead(com.fasterxml.jackson.core.JsonParser parser) voidintlength()localEncrypt(Object value) Encrypt and return the un-encrypted value.booleanmutable()read(io.ebean.core.type.DataReader reader) toBeanType(Object value) toJdbcType(Object value) type()voidwriteData(DataOutput dataOutput, T v) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebean.core.type.ScalarType
asVersion, format, jsonMapper
-
Constructor Details
-
ScalarTypeEncryptedWrapper
public ScalarTypeEncryptedWrapper(io.ebean.core.type.ScalarType<T> wrapped, ScalarTypeBytesBase byteArrayType, DataEncryptSupport dataEncryptSupport)
-
-
Method Details
-
localEncrypt
Description copied from interface:LocalEncryptedTypeEncrypt and return the un-encrypted value.- Specified by:
localEncryptin interfaceLocalEncryptedType
-
binary
public boolean binary()- Specified by:
binaryin interfaceio.ebean.core.type.ScalarType<T>
-
mutable
public boolean mutable()- Specified by:
mutablein interfaceio.ebean.core.type.ScalarType<T>
-
isDirty
-
readData
- Specified by:
readDatain interfaceio.ebean.core.type.ScalarType<T>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceio.ebean.core.type.ScalarType<T>- Throws:
IOException
-
read
- Specified by:
readin interfaceio.ebean.core.type.ScalarDataReader<T>- Specified by:
readin interfaceio.ebean.core.type.ScalarType<T>- Throws:
SQLException
-
bind
- Specified by:
bindin interfaceio.ebean.core.type.ScalarType<T>- Throws:
SQLException
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceio.ebean.core.type.ScalarType<T>
-
length
public int length()- Specified by:
lengthin interfaceio.ebean.core.type.ScalarType<T>
-
type
-
jdbcNative
public boolean jdbcNative()- Specified by:
jdbcNativein interfaceio.ebean.core.type.ScalarType<T>
-
formatValue
-
parse
-
toBeanType
-
toJdbcType
-
jsonRead
- Specified by:
jsonReadin interfaceio.ebean.core.type.ScalarType<T>- Throws:
IOException
-
jsonWrite
- Specified by:
jsonWritein interfaceio.ebean.core.type.ScalarType<T>- Throws:
IOException
-
docType
public io.ebean.core.type.DocPropertyType docType()- Specified by:
docTypein interfaceio.ebean.core.type.ScalarType<T>
-