Class ObjectGraphBuilder
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.util.ObjectGraphBuilder
-
public class ObjectGraphBuilder extends java.lang.Object
Builds object graph for JPARS 2.0. Object graph defines the structure of the returned data. It hides some fields which are not suppose to be returned to the client.- Author:
- Dmitry Kornilov
- Since:
- EclipseLink 2.6.0
-
-
Constructor Summary
Constructors Constructor Description ObjectGraphBuilder(PersistenceContext context)
Creates an object graph builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectGraph
createObjectGraph(java.lang.Object object, FieldsFilter filter)
Builds object graph for specified object using given filter.
-
-
-
Constructor Detail
-
ObjectGraphBuilder
public ObjectGraphBuilder(PersistenceContext context)
Creates an object graph builder.- Parameters:
context
- the persistence context
-
-
Method Detail
-
createObjectGraph
public ObjectGraph createObjectGraph(java.lang.Object object, FieldsFilter filter)
Builds object graph for specified object using given filter.- Parameters:
object
- the object to build object graph for. Mandatory.filter
- the filter (included or excluded fields) to use. Optional.- Returns:
- constructed object graph.
-
-