java.lang.Object
io.ebeaninternal.server.type.ScalarTypeBytesEncrypted
- All Implemented Interfaces:
ScalarDataReader<byte[]>,ScalarType<byte[]>,StringFormatter,StringParser
Encrypted ScalarType that wraps a byte[] types.
-
Constructor Summary
ConstructorsConstructorDescriptionScalarTypeBytesEncrypted(ScalarTypeBytesBase baseType, DataEncryptSupport dataEncryptSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()voidbind(DataBinder binder, byte[] value) docType()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(DataReader reader) byte[]byte[]toBeanType(Object value) toJdbcType(Object value) Class<byte[]> type()voidwriteData(DataOutput dataOutput, byte[] value) 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, isDirty, jsonMapper, mutable
-
Constructor Details
-
ScalarTypeBytesEncrypted
public ScalarTypeBytesEncrypted(ScalarTypeBytesBase baseType, DataEncryptSupport dataEncryptSupport)
-
-
Method Details
-
binary
public boolean binary()- Specified by:
binaryin interfaceScalarType<byte[]>
-
bind
- Specified by:
bindin interfaceScalarType<byte[]>- Throws:
SQLException
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceScalarType<byte[]>
-
length
public int length()- Specified by:
lengthin interfaceScalarType<byte[]>
-
type
- Specified by:
typein interfaceScalarType<byte[]>
-
jdbcNative
public boolean jdbcNative()- Specified by:
jdbcNativein interfaceScalarType<byte[]>
-
jsonWrite
public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, byte[] value) throws IOException - Specified by:
jsonWritein interfaceScalarType<byte[]>- Throws:
IOException
-
jsonRead
- Specified by:
jsonReadin interfaceScalarType<byte[]>- Throws:
IOException
-
docType
- Specified by:
docTypein interfaceScalarType<byte[]>
-
formatValue
- Specified by:
formatValuein interfaceScalarType<byte[]>
-
parse
- Specified by:
parsein interfaceScalarType<byte[]>- Specified by:
parsein interfaceStringParser
-
read
- Specified by:
readin interfaceScalarDataReader<byte[]>- Specified by:
readin interfaceScalarType<byte[]>- Throws:
SQLException
-
toBeanType
- Specified by:
toBeanTypein interfaceScalarType<byte[]>
-
toJdbcType
- Specified by:
toJdbcTypein interfaceScalarType<byte[]>
-
readData
- Specified by:
readDatain interfaceScalarType<byte[]>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceScalarType<byte[]>- Throws:
IOException
-