EclipseLink 2.5.0, build 'v20130110-d839ca4' API Reference

org.eclipse.persistence.jpa.rs
Class AbstractResource

java.lang.Object
  extended by org.eclipse.persistence.jpa.rs.AbstractResource
Direct Known Subclasses:
EntityResource, PersistenceResource, PersistenceUnitResource, QueryResource, SingleResultQueryResource

public abstract class AbstractResource
extends java.lang.Object

Author:
gonural

Field Summary
protected  PersistenceContextFactory factory
           
 
Constructor Summary
AbstractResource()
           
 
Method Summary
protected  PersistenceContextFactory buildPersistenceContextFactory()
           
protected static java.util.Map<java.lang.String,java.lang.String> getMatrixParameters(javax.ws.rs.core.UriInfo info, java.lang.String segment)
          Get a map of the matrix parameters associated with the URI path segment of the current request In JPA-RS, things that user sets (such as parameters of named queries, etc.) are treated as matrix parameters List of valid matrix parameters for JPA-RS is defined in MatrixParameters
 PersistenceContextFactory getPersistenceFactory()
          Gets the persistence factory.
protected static java.util.Map<java.lang.String,java.lang.Object> getQueryParameters(javax.ws.rs.core.UriInfo info)
          Get the URI query parameters of the current request In JPA-RS, predefined attributes (such as eclipselink query hints) are treated as query parameters List of valid query parameters for JPA-RS is defined in QueryParameters
 void setPersistenceFactory(PersistenceContextFactory factory)
          Sets the persistence factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected PersistenceContextFactory factory
Constructor Detail

AbstractResource

public AbstractResource()
Method Detail

setPersistenceFactory

public void setPersistenceFactory(PersistenceContextFactory factory)
Sets the persistence factory.

Parameters:
factory - the new persistence factory

getPersistenceFactory

public PersistenceContextFactory getPersistenceFactory()
Gets the persistence factory.

Returns:
the persistence factory

buildPersistenceContextFactory

protected PersistenceContextFactory buildPersistenceContextFactory()

getMatrixParameters

protected static java.util.Map<java.lang.String,java.lang.String> getMatrixParameters(javax.ws.rs.core.UriInfo info,
                                                                                      java.lang.String segment)
Get a map of the matrix parameters associated with the URI path segment of the current request In JPA-RS, things that user sets (such as parameters of named queries, etc.) are treated as matrix parameters List of valid matrix parameters for JPA-RS is defined in MatrixParameters

Parameters:
info - the info
segment - the segment
Returns:
the matrix parameters
See Also:
MatrixParameters

getQueryParameters

protected static java.util.Map<java.lang.String,java.lang.Object> getQueryParameters(javax.ws.rs.core.UriInfo info)
Get the URI query parameters of the current request In JPA-RS, predefined attributes (such as eclipselink query hints) are treated as query parameters List of valid query parameters for JPA-RS is defined in QueryParameters

Parameters:
info - the info
Returns:
the query parameters
See Also:
QueryParameters

EclipseLink 2.5.0, build 'v20130110-d839ca4' API Reference