|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
public abstract class AbstractResource
Field Summary | |
---|---|
protected PersistenceContextFactory |
factory
|
static java.lang.String |
SERVICE_VERSION_1_0
|
static java.lang.String |
SERVICE_VERSION_FORMAT
|
Constructor Summary | |
---|---|
AbstractResource()
|
Method Summary | |
---|---|
protected PersistenceContextFactory |
buildPersistenceContextFactory(java.lang.ClassLoader loader)
|
protected java.util.List<JAXBElement> |
createShellJAXBElementList(java.util.List<org.eclipse.persistence.internal.queries.ReportItem> reportItems,
java.lang.Object record)
Creates the shell jaxb element list. |
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 |
protected PersistenceContext |
getPersistenceContext(java.lang.String persistenceUnit,
java.net.URI baseURI,
java.lang.String version,
java.util.Map<java.lang.String,java.lang.Object> initializationProperties)
|
PersistenceContextFactory |
getPersistenceFactory()
Gets the persistence factory. |
PersistenceContextFactory |
getPersistenceFactory(java.lang.ClassLoader loader)
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 |
protected java.lang.String |
getRelationshipPartner(java.util.Map<java.lang.String,java.lang.String> matrixParams,
java.util.Map<java.lang.String,java.lang.Object> queryParams)
|
protected static boolean |
isValidVersion(java.lang.String version)
|
protected java.lang.String |
marshallMetadata(java.lang.Object metadata,
java.lang.String mediaType)
|
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 |
---|
public static final java.lang.String SERVICE_VERSION_FORMAT
protected PersistenceContextFactory factory
public static final java.lang.String SERVICE_VERSION_1_0
Constructor Detail |
---|
public AbstractResource()
Method Detail |
---|
public void setPersistenceFactory(PersistenceContextFactory factory)
factory
- the new persistence factorypublic PersistenceContextFactory getPersistenceFactory()
public PersistenceContextFactory getPersistenceFactory(java.lang.ClassLoader loader)
protected PersistenceContextFactory buildPersistenceContextFactory(java.lang.ClassLoader loader)
protected static java.util.Map<java.lang.String,java.lang.String> getMatrixParameters(javax.ws.rs.core.UriInfo info, java.lang.String segment)
info
- the infosegment
- the segment
MatrixParameters
protected static java.util.Map<java.lang.String,java.lang.Object> getQueryParameters(javax.ws.rs.core.UriInfo info)
info
- the info
QueryParameters
protected java.util.List<JAXBElement> createShellJAXBElementList(java.util.List<org.eclipse.persistence.internal.queries.ReportItem> reportItems, java.lang.Object record)
reportItems
- the report items
protected static boolean isValidVersion(java.lang.String version)
protected PersistenceContext getPersistenceContext(java.lang.String persistenceUnit, java.net.URI baseURI, java.lang.String version, java.util.Map<java.lang.String,java.lang.Object> initializationProperties)
protected java.lang.String getRelationshipPartner(java.util.Map<java.lang.String,java.lang.String> matrixParams, java.util.Map<java.lang.String,java.lang.Object> queryParams)
protected java.lang.String marshallMetadata(java.lang.Object metadata, java.lang.String mediaType) throws JAXBException
JAXBException
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |