Class ScalarTypeBytesBase
java.lang.Object
io.ebean.core.type.ScalarTypeBase<byte[]>
io.ebeaninternal.server.type.ScalarTypeBytesBase
- All Implemented Interfaces:
ScalarDataReader<byte[]>, ScalarType<byte[]>, StringFormatter, StringParser
Base type for binary types.
-
Field Summary
Fields inherited from class ScalarTypeBase
jdbcNative, jdbcType, type -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()voidbind(DataBinder binder, byte[] value) byte[]convertToBytes(Object value) docType()formatValue(byte[] t) byte[]jsonRead(com.fasterxml.jackson.core.JsonParser parser) voidjsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, byte[] value) byte[]byte[]byte[]toBeanType(Object value) toJdbcType(Object value) voidwriteData(DataOutput dataOutput, byte[] v) Methods inherited from class ScalarTypeBase
jdbcNative, jdbcType, typeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ScalarType
asVersion, format, isDirty, jsonMapper, length, mutable, read
-
Method Details
-
binary
public boolean binary() -
convertToBytes
-
bind
- Throws:
SQLException
-
toJdbcType
-
toBeanType
-
formatValue
-
parse
-
readData
- Throws:
IOException
-
writeData
- Throws:
IOException
-
jsonWrite
public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, byte[] value) throws IOException - Throws:
IOException
-
jsonRead
- Throws:
IOException
-
docType
-