Modifier and Type | Field and Description |
---|---|
static int |
DIFF_RENDERER_ORDER |
Constructor and Description |
---|
DiffRendererImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
String |
renderDiff(Object before,
Object after,
org.hibernate.type.Type type)
Create a unified diff representation of the before and after state of a field change
|
String |
renderField(Object field,
org.hibernate.type.Type type)
Based on the field value and the type, render the String representation of the field value
|
boolean |
supportsDiff()
Whether or not the
Renderer supports the creation of unified diffs. |
boolean |
supportsType(Object field,
org.hibernate.type.Type type)
Whether or not the
Renderer support the given field value and Type . |
public static final int DIFF_RENDERER_ORDER
public String renderField(Object field, org.hibernate.type.Type type)
Renderer
renderField
in interface Renderer
public String renderDiff(Object before, Object after, org.hibernate.type.Type type)
Renderer
renderDiff
in interface Renderer
public boolean supportsType(Object field, org.hibernate.type.Type type)
Renderer
Renderer
support the given field value and Type
.supportsType
in interface Renderer
public boolean supportsDiff()
Renderer
Renderer
supports the creation of unified diffs.supportsDiff
in interface Renderer
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2021. All rights reserved.