Class ScalarTypeBytesBase
java.lang.Object
io.ebean.core.type.ScalarTypeBase<byte[]>
io.ebeaninternal.server.type.ScalarTypeBytesBase
- All Implemented Interfaces:
io.ebean.core.type.ScalarDataReader<byte[]>, io.ebean.core.type.ScalarType<byte[]>, io.ebean.text.StringFormatter, io.ebean.text.StringParser
public abstract class ScalarTypeBytesBase
extends io.ebean.core.type.ScalarTypeBase<byte[]>
Base type for binary types.
-
Field Summary
Fields inherited from class io.ebean.core.type.ScalarTypeBase
jdbcNative, jdbcType, type -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()voidbind(io.ebean.core.type.DataBinder binder, byte[] value) byte[]convertToBytes(Object value) io.ebean.core.type.DocPropertyTypedocType()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 io.ebean.core.type.ScalarTypeBase
jdbcNative, jdbcType, typeMethods 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, 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
public io.ebean.core.type.DocPropertyType docType()
-