com.vladmihalcea.hibernate.type.json.internal
Class JsonNodeTypeDescriptor

java.lang.Object
  extended by org.hibernate.type.descriptor.java.AbstractTypeDescriptor<com.fasterxml.jackson.databind.JsonNode>
      extended by com.vladmihalcea.hibernate.type.json.internal.JsonNodeTypeDescriptor
All Implemented Interfaces:
Serializable, org.hibernate.type.descriptor.java.JavaTypeDescriptor<com.fasterxml.jackson.databind.JsonNode>

public class JsonNodeTypeDescriptor
extends org.hibernate.type.descriptor.java.AbstractTypeDescriptor<com.fasterxml.jackson.databind.JsonNode>

Author:
Vlad Mihalcea
See Also:
Serialized Form

Field Summary
static JsonNodeTypeDescriptor INSTANCE
           
 
Constructor Summary
JsonNodeTypeDescriptor()
           
JsonNodeTypeDescriptor(ObjectMapperWrapper objectMapperWrapper)
           
 
Method Summary
 boolean areEqual(com.fasterxml.jackson.databind.JsonNode one, com.fasterxml.jackson.databind.JsonNode another)
           
 com.fasterxml.jackson.databind.JsonNode fromString(String string)
           
 String toString(com.fasterxml.jackson.databind.JsonNode value)
           
<X> X
unwrap(com.fasterxml.jackson.databind.JsonNode value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)
           
<X> com.fasterxml.jackson.databind.JsonNode
wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
           
 
Methods inherited from class org.hibernate.type.descriptor.java.AbstractTypeDescriptor
extractHashCode, extractLoggableRepresentation, getComparator, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final JsonNodeTypeDescriptor INSTANCE
Constructor Detail

JsonNodeTypeDescriptor

public JsonNodeTypeDescriptor()

JsonNodeTypeDescriptor

public JsonNodeTypeDescriptor(ObjectMapperWrapper objectMapperWrapper)
Method Detail

areEqual

public boolean areEqual(com.fasterxml.jackson.databind.JsonNode one,
                        com.fasterxml.jackson.databind.JsonNode another)
Specified by:
areEqual in interface org.hibernate.type.descriptor.java.JavaTypeDescriptor<com.fasterxml.jackson.databind.JsonNode>
Overrides:
areEqual in class org.hibernate.type.descriptor.java.AbstractTypeDescriptor<com.fasterxml.jackson.databind.JsonNode>

toString

public String toString(com.fasterxml.jackson.databind.JsonNode value)

fromString

public com.fasterxml.jackson.databind.JsonNode fromString(String string)

unwrap

public <X> X unwrap(com.fasterxml.jackson.databind.JsonNode value,
                    Class<X> type,
                    org.hibernate.type.descriptor.WrapperOptions options)

wrap

public <X> com.fasterxml.jackson.databind.JsonNode wrap(X value,
                                                        org.hibernate.type.descriptor.WrapperOptions options)


Copyright © 2021. All rights reserved.