public interface EntityProcessorContext
Entity processor context providing details about entity processing.
The context contains the EntityProcessorContext.Type which distinguishes between types of context. There are various properties in the
context (accessible by getters) and some of them might be relevant only to specific context types.| Modifier and Type | Interface and Description |
|---|---|
static class |
EntityProcessorContext.Type
The type of the context which describes in which entity processing phase the
EntityProcessor.process(EntityProcessorContext) is triggered. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getEntityClass()
Get entity class to be processed.
|
EntityGraph |
getEntityGraph()
Get entity graph to be modified by the processing.
|
Field |
getField()
Get field to be processed.
|
Method |
getMethod()
Get method to be processed.
|
EntityProcessorContext.Type |
getType()
Get the
type of this context. |
EntityProcessorContext.Type getType()
type of this context.Class<?> getEntityClass()
EntityProcessorContext.Type.CLASS_WRITER and
EntityProcessorContext.Type.CLASS_READER context types.null if the class is not available.Field getField()
EntityProcessorContext.Type.PROPERTY_WRITER and
EntityProcessorContext.Type.PROPERTY_READER context types.null if the field is not available.Method getMethod()
EntityProcessorContext.Type.PROPERTY_WRITER, EntityProcessorContext.Type.PROPERTY_READER,
EntityProcessorContext.Type.METHOD_WRITER, EntityProcessorContext.Type.METHOD_READER context types.null if the method is not available.EntityGraph getEntityGraph()
Copyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.