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 Summary
ConstructorsConstructorDescriptionScalarTypeBytesEncrypted(ScalarTypeBytesBase baseType, DataEncryptSupport dataEncryptSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()voidbind(io.ebean.core.type.DataBinder binder, byte[] value) io.ebean.core.type.DocPropertyTypedocType()formatValue(byte[] v) booleanintjdbcType()byte[]jsonRead(com.fasterxml.jackson.core.JsonParser parser) voidjsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, byte[] value) intlength()byte[]byte[]read(io.ebean.core.type.DataReader reader) byte[]byte[]toBeanType(Object value) toJdbcType(Object value) Class<byte[]> type()voidwriteData(DataOutput dataOutput, byte[] value) 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, isDirty, jsonMapper, mutable
-
Constructor Details
-
ScalarTypeBytesEncrypted
public ScalarTypeBytesEncrypted(ScalarTypeBytesBase baseType, DataEncryptSupport dataEncryptSupport)
-
-
Method Details
-
binary
public boolean binary()- Specified by:
binaryin interfaceio.ebean.core.type.ScalarType<byte[]>
-
bind
- Specified by:
bindin interfaceio.ebean.core.type.ScalarType<byte[]>- Throws:
SQLException
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceio.ebean.core.type.ScalarType<byte[]>
-
length
public int length()- Specified by:
lengthin interfaceio.ebean.core.type.ScalarType<byte[]>
-
type
- Specified by:
typein interfaceio.ebean.core.type.ScalarType<byte[]>
-
jdbcNative
public boolean jdbcNative()- Specified by:
jdbcNativein interfaceio.ebean.core.type.ScalarType<byte[]>
-
jsonWrite
public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, byte[] value) throws IOException - Specified by:
jsonWritein interfaceio.ebean.core.type.ScalarType<byte[]>- Throws:
IOException
-
jsonRead
- Specified by:
jsonReadin interfaceio.ebean.core.type.ScalarType<byte[]>- Throws:
IOException
-
docType
public io.ebean.core.type.DocPropertyType docType()- Specified by:
docTypein interfaceio.ebean.core.type.ScalarType<byte[]>
-
formatValue
- Specified by:
formatValuein interfaceio.ebean.core.type.ScalarType<byte[]>
-
parse
- Specified by:
parsein interfaceio.ebean.core.type.ScalarType<byte[]>- Specified by:
parsein interfaceio.ebean.text.StringParser
-
read
- Specified by:
readin interfaceio.ebean.core.type.ScalarDataReader<byte[]>- Specified by:
readin interfaceio.ebean.core.type.ScalarType<byte[]>- Throws:
SQLException
-
toBeanType
- Specified by:
toBeanTypein interfaceio.ebean.core.type.ScalarType<byte[]>
-
toJdbcType
-
readData
- Specified by:
readDatain interfaceio.ebean.core.type.ScalarType<byte[]>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceio.ebean.core.type.ScalarType<byte[]>- Throws:
IOException
-