java.lang.Object
io.ebeaninternal.server.type.ScalarTypeEncryptedWrapper<T>
- All Implemented Interfaces:
ScalarDataReader<T>,ScalarType<T>,StringFormatter,StringParser,LocalEncryptedType
public final class ScalarTypeEncryptedWrapper<T>
extends Object
implements ScalarType<T>, LocalEncryptedType
-
Constructor Summary
ConstructorsConstructorDescriptionScalarTypeEncryptedWrapper(ScalarType<T> wrapped, ScalarTypeBytesBase byteArrayType, DataEncryptSupport dataEncryptSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()voidbind(DataBinder binder, T value) docType()formatValue(T v) booleanbooleanintjdbcType()jsonRead(com.fasterxml.jackson.core.JsonParser parser) voidintlength()localEncrypt(Object value) Encrypt and return the un-encrypted value.booleanmutable()read(DataReader reader) toBeanType(Object value) toJdbcType(Object value) type()voidwriteData(DataOutput dataOutput, T v) Methods inherited from class java.lang.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(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 interfaceScalarType<T>
-
mutable
public boolean mutable()- Specified by:
mutablein interfaceScalarType<T>
-
isDirty
- Specified by:
isDirtyin interfaceScalarType<T>
-
readData
- Specified by:
readDatain interfaceScalarType<T>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceScalarType<T>- Throws:
IOException
-
read
- Specified by:
readin interfaceScalarDataReader<T>- Specified by:
readin interfaceScalarType<T>- Throws:
SQLException
-
bind
- Specified by:
bindin interfaceScalarType<T>- Throws:
SQLException
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceScalarType<T>
-
length
public int length()- Specified by:
lengthin interfaceScalarType<T>
-
type
- Specified by:
typein interfaceScalarType<T>
-
jdbcNative
public boolean jdbcNative()- Specified by:
jdbcNativein interfaceScalarType<T>
-
formatValue
- Specified by:
formatValuein interfaceScalarType<T>
-
parse
- Specified by:
parsein interfaceScalarType<T>- Specified by:
parsein interfaceStringParser
-
toBeanType
- Specified by:
toBeanTypein interfaceScalarType<T>
-
toJdbcType
- Specified by:
toJdbcTypein interfaceScalarType<T>
-
jsonRead
- Specified by:
jsonReadin interfaceScalarType<T>- Throws:
IOException
-
jsonWrite
- Specified by:
jsonWritein interfaceScalarType<T>- Throws:
IOException
-
docType
- Specified by:
docTypein interfaceScalarType<T>
-