Uses of Class
org.eclipse.persistence.jpa.rs.PersistenceContext
Package
Description
-
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs
Modifier and TypeFieldDescriptionprotected final Map
<String, Set<PersistenceContext>> PersistenceFactoryBase.dynamicPersistenceContexts
Modifier and TypeMethodDescriptionPersistenceFactoryBase.bootstrapPersistenceContext
(String name, EntityManagerFactory emf, URI baseURI, String version, boolean replace) Bootstrap a PersistenceContext based on an pre-existing EntityManagerFactory.PersistenceContextFactory.get
(String persistenceUnit, URI defaultURI, String version, Map<String, Object> initializationProperties) PersistenceFactoryBase.get
(String persistenceUnitName, URI defaultURI, String version, Map<String, Object> initializationProperties) Gets existing persistence context or create new based on given parameters if it doesn't exist.PersistenceFactoryBase.getDynamicPersistenceContext
(String name, String version) Gets cached persistence context by its name and JPARS version.Modifier and TypeMethodDescriptionprotected void
PersistenceFactoryBase.addReplacePersistenceContext
(PersistenceContext persistenceContext) -
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs.features
Modifier and TypeMethodDescriptionFeatureResponseBuilder.buildAttributeResponse
(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object results, UriInfo uriInfo) Builds the attribute response.FeatureResponseBuilderImpl.buildAttributeResponse
(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object result, UriInfo uriInfo) FeatureResponseBuilder.buildReadAllQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, UriInfo uriInfo) Builds the read all query response.FeatureResponseBuilderImpl.buildReadAllQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, UriInfo uriInfo) FeatureResponseBuilder.buildReportQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<ReportItem> items, UriInfo uriInfo) Builds the report query response.FeatureResponseBuilderImpl.buildReportQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<ReportItem> items, UriInfo uriInfo) FeatureResponseBuilder.buildSingleEntityResponse
(PersistenceContext context, Map<String, Object> queryParams, Object result, UriInfo uriInfo) Builds the single entity response.FeatureResponseBuilderImpl.buildSingleEntityResponse
(PersistenceContext context, Map<String, Object> queryParams, Object result, UriInfo uriInfo) FeatureResponseBuilder.buildSingleResultQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, Object result, List<ReportItem> items, UriInfo uriInfo) Builds the single result query response.FeatureResponseBuilderImpl.buildSingleResultQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, Object result, List<ReportItem> items, UriInfo uriInfo) -
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs.features.core.selflinks
Modifier and TypeMethodDescriptionSelfLinksResponseBuilder.buildAttributeResponse
(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object item, UriInfo uriInfo) SelfLinksResponseBuilder.buildReadAllQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, UriInfo uriInfo) SelfLinksResponseBuilder.buildReportQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<ReportItem> items, UriInfo uriInfo) SelfLinksResponseBuilder.buildSingleEntityResponse
(PersistenceContext context, Map<String, Object> queryParams, Object result, UriInfo uriInfo) SelfLinksResponseBuilder.buildSingleResultQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, Object result, List<ReportItem> items, UriInfo uriInfo) -
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs.features.paging
Modifier and TypeMethodDescriptionPagingResponseBuilder.buildAttributeResponse
(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object results, UriInfo uriInfo) PagingResponseBuilder.buildReadAllQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, UriInfo uriInfo) PagingResponseBuilder.buildReportQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<ReportItem> items, UriInfo uriInfo) ModifierConstructorDescriptionPageableQueryValidator
(PersistenceContext context, String queryName, UriInfo uri) Creates a validator. -
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs.resources.common
Modifier and TypeMethodDescriptionprotected PersistenceContext
AbstractResource.getPersistenceContext
(String persistenceUnit, String entityType, URI baseURI, String version, Map<String, Object> initializationProperties) Gets the persistence context. -
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs.util
Modifier and TypeMethodDescriptionstatic String
HrefHelper.buildEntityDescribesHref
(PersistenceContext context, String entityName) Returns a href to single entity resource without primary key.static String
HrefHelper.buildEntityFieldHref
(PersistenceContext context, String entityName, String entityId, String fieldName) Builds a link to an entity field.static String
HrefHelper.buildEntityHref
(PersistenceContext context, String entityName, String entityId) Returns a href to single entity resource.static String
HrefHelper.buildEntityMetadataHref
(PersistenceContext context, String entityName) Returns a href to entity resource metadata.static Object
IdHelper.buildId
(PersistenceContext app, String entityName, String idString) static String
HrefHelper.buildMetadataCatalogHref
(PersistenceContext context) Returns a href to metadata catalog.static Object
IdHelper.buildObjectShell
(PersistenceContext context, String entityType, Object id) build a shell of an object based on a primary key.static String
HrefHelper.buildQueryDescribesHref
(PersistenceContext context, String queryName) Returns a href to single entity resource without primary key.static String
HrefHelper.buildQueryHref
(PersistenceContext context, String queryName, String queryParams) Returns a href to query resource.static String
HrefHelper.buildQueryMetadataHref
(PersistenceContext context, String queryName) Returns a href to query resource.static Marshaller
StreamingOutputMarshaller.createMarshaller
(PersistenceContext context, MediaType mediaType) static void
JPARSLogger.exiting
(String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exitingstatic void
JPARSLogger.exiting
(SessionLog sessionLog, String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exitingstatic StringBuilder
HrefHelper.getEntityRoot
(PersistenceContext context, String entityName) Returns StringBuilder containing entity root: http(s)://root:port/persistence/version/context/entity/entityNamestatic StringBuilder
HrefHelper.getMetadataRoot
(PersistenceContext context) Returns StringBuilder containing metadata-catalog root: http(s)://root:port/persistence/version/context/metadata-catalogstatic StringBuilder
HrefHelper.getQueryRoot
(PersistenceContext context, String queryName) Returns StringBuilder containing query root: http(s)://root:port/persistence/version/context/query/queryNamestatic StringBuilder
HrefHelper.getRoot
(PersistenceContext context) Returns StringBuilder containing application root: http(s)://root:port/persistence/version/contextstatic String
IdHelper.stringifyId
(Object entity, String typeName, PersistenceContext app) ModifierConstructorDescriptionCreates a new CollectionWrapperBuilder.ObjectGraphBuilder
(PersistenceContext context) Creates an object graph builder.StreamingOutputMarshaller
(PersistenceContext context, Object result, MediaType acceptedType) StreamingOutputMarshaller
(PersistenceContext context, Object result, List<MediaType> acceptedTypes) Creates a new StreamingOutputMarshaller.StreamingOutputMarshaller
(PersistenceContext context, Object result, List<MediaType> acceptedTypes, FieldsFilter filter) This constructor is used for fields filtering. -
Uses of PersistenceContext in org.eclipse.persistence.jpa.rs.util.xmladapters
Modifier and TypeFieldDescriptionprotected PersistenceContext
LinkAdapter.context
protected PersistenceContext
ReferenceAdapterV2.context
protected PersistenceContext
RestCollectionAdapter.context
ModifierConstructorDescriptionLinkAdapter
(String baseURI, PersistenceContext context) ReferenceAdapter
(String baseURI, PersistenceContext context) Instantiates a new reference adapter.ReferenceAdapterV2
(PersistenceContext context) Instantiates a new reference adapter.RelationshipLinkAdapter
(String baseURI, PersistenceContext context) RestCollectionAdapter
(PersistenceContext context) Instantiates a new RestCollectionAdapter.