Package io.ebeaninternal.server.type
Class ScalarTypeJsonNodePostgres
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<com.fasterxml.jackson.databind.JsonNode>
-
- io.ebeaninternal.server.type.ScalarTypeJsonNode
-
- io.ebeaninternal.server.type.ScalarTypeJsonNodePostgres
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<com.fasterxml.jackson.databind.JsonNode>
,ScalarType<com.fasterxml.jackson.databind.JsonNode>
- Direct Known Subclasses:
ScalarTypeJsonNodePostgres.JSON
,ScalarTypeJsonNodePostgres.JSONB
public abstract class ScalarTypeJsonNodePostgres extends ScalarTypeJsonNode
Support for mapping JsonNode to Postgres DB types JSON and JSONB.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScalarTypeJsonNodePostgres.JSON
ScalarType mapping JsonNode to Postgres JSON database type.static class
ScalarTypeJsonNodePostgres.JSONB
ScalarType mapping JsonNode to Postgres JSONB database type.-
Nested classes/interfaces inherited from class io.ebeaninternal.server.type.ScalarTypeJsonNode
ScalarTypeJsonNode.Blob, ScalarTypeJsonNode.Clob, ScalarTypeJsonNode.Varchar
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DataBind bind, com.fasterxml.jackson.databind.JsonNode value)
Convert (if necessary) and bind the value to the preparedStatement.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeJsonNode
convertFromMillis, formatValue, getDocType, isDateTimeCapable, isDirty, isMutable, jsonRead, jsonWrite, parse, parse, read, readData, toBeanType, toJdbcType, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
asVersion, format, getJdbcType, getLength, getType, isBinaryType, isJdbcNative, loadIgnore
-
-
-
-
Method Detail
-
bind
public void bind(DataBind bind, 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
-
-