final class EntityProcessorContextImpl extends java.lang.Object implements EntityProcessorContext
entity processor context implementation.EntityProcessorContext.Type| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<?> |
clazz |
private java.lang.reflect.Field |
field |
private EntityGraph |
graph |
private java.lang.reflect.Method |
method |
private EntityProcessorContext.Type |
type |
| Constructor and Description |
|---|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.Class<?> clazz,
EntityGraph graph)
Create entity processor context for processing entity classes.
|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.Class<?> clazz,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
EntityGraph graph)
Create entity processor context for processing entity accessors.
|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
EntityGraph graph)
Create entity processor context for processing entity properties.
|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.reflect.Method method,
EntityGraph graph)
Create entity processor context for processing entity accessors.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getEntityClass()
Get entity class to be processed.
|
EntityGraph |
getEntityGraph()
Get entity graph to be modified by the processing.
|
java.lang.reflect.Field |
getField()
Get field to be processed.
|
java.lang.reflect.Method |
getMethod()
Get method to be processed.
|
EntityProcessorContext.Type |
getType()
Get the
type of this context. |
private final EntityProcessorContext.Type type
private final java.lang.Class<?> clazz
private final java.lang.reflect.Field field
private final java.lang.reflect.Method method
private final EntityGraph graph
public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.Class<?> clazz, EntityGraph graph)
type - Type#CLASS_READER or Type#CLASS_WRITER.clazz - entity class.graph - entity-filtering graph associated with entity class.public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.reflect.Field field, java.lang.reflect.Method method, EntityGraph graph)
type - Type#PROPERTY_READER or Type#PROPERTY_WRITER.field - entity property field.method - entity property accessor.graph - entity-filtering graph associated with entity class.public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.reflect.Method method, EntityGraph graph)
type - Type#METHOD_READER or Type#METHOD_WRITER.method - entity property accessor.graph - entity-filtering graph associated with entity class.public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.Class<?> clazz, java.lang.reflect.Field field, java.lang.reflect.Method method, EntityGraph graph)
type - type on entity processor context.clazz - entity class.field - entity property field.method - entity property method.graph - entity-filtering graph associated with entity class.public EntityProcessorContext.Type getType()
EntityProcessorContexttype of this context.getType in interface EntityProcessorContextpublic java.lang.Class<?> getEntityClass()
EntityProcessorContextEntityProcessorContext.Type.CLASS_WRITER and
EntityProcessorContext.Type.CLASS_READER context types.getEntityClass in interface EntityProcessorContextnull if the class is not available.public java.lang.reflect.Field getField()
EntityProcessorContextEntityProcessorContext.Type.PROPERTY_WRITER and
EntityProcessorContext.Type.PROPERTY_READER context types.getField in interface EntityProcessorContextnull if the field is not available.public java.lang.reflect.Method getMethod()
EntityProcessorContextEntityProcessorContext.Type.PROPERTY_WRITER, EntityProcessorContext.Type.PROPERTY_READER,
EntityProcessorContext.Type.METHOD_WRITER, EntityProcessorContext.Type.METHOD_READER context types.getMethod in interface EntityProcessorContextnull if the method is not available.public EntityGraph getEntityGraph()
EntityProcessorContextgetEntityGraph in interface EntityProcessorContext