Package io.ebeaninternal.server.type
Class ScalarTypeJsonNode.Blob
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<com.fasterxml.jackson.databind.JsonNode>
-
- io.ebeaninternal.server.type.ScalarTypeJsonNode
-
- io.ebeaninternal.server.type.ScalarTypeJsonNode.Blob
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<com.fasterxml.jackson.databind.JsonNode>
,ScalarType<com.fasterxml.jackson.databind.JsonNode>
- Enclosing class:
- ScalarTypeJsonNode
public static class ScalarTypeJsonNode.Blob extends ScalarTypeJsonNode
Blob storage based implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.ebeaninternal.server.type.ScalarTypeJsonNode
ScalarTypeJsonNode.Blob, ScalarTypeJsonNode.Clob, ScalarTypeJsonNode.Varchar
-
-
Constructor Summary
Constructors Constructor Description Blob(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DataBind dataBind, com.fasterxml.jackson.databind.JsonNode value)
Convert (if necessary) and bind the value to the preparedStatement.com.fasterxml.jackson.databind.JsonNode
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical bean property value.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeJsonNode
convertFromMillis, formatValue, getDocType, isDateTimeCapable, isDirty, isMutable, jsonRead, jsonWrite, parse, parse, readData, toBeanType, toJdbcType, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
asVersion, format, getJdbcType, getLength, getType, isBinaryType, isJdbcNative, loadIgnore
-
-
-
-
Constructor Detail
-
Blob
public Blob(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
read
public com.fasterxml.jackson.databind.JsonNode read(DataReader dataReader) throws SQLException
Description copied from interface:ScalarType
Read the value from the resultSet and convert if necessary to the logical bean property value.- Specified by:
read
in interfaceScalarDataReader<com.fasterxml.jackson.databind.JsonNode>
- Specified by:
read
in interfaceScalarType<com.fasterxml.jackson.databind.JsonNode>
- Overrides:
read
in classScalarTypeJsonNode
- Throws:
SQLException
-
bind
public void bind(DataBind dataBind, com.fasterxml.jackson.databind.JsonNode value) throws SQLException
Description copied from interface:ScalarType
Convert (if necessary) and bind the value to the preparedStatement.value may need to be converted from the logical bean property type to the JDBC type.
- Specified by:
bind
in interfaceScalarType<com.fasterxml.jackson.databind.JsonNode>
- Overrides:
bind
in classScalarTypeJsonNode
- Throws:
SQLException
-
-