public final class PersistenceContextResourceReference
extends org.fabric3.api.model.type.component.ResourceReference
| Constructor and Description |
|---|
PersistenceContextResourceReference(java.lang.String name,
java.lang.String unitName,
org.fabric3.api.model.type.contract.ServiceContract serviceContract,
boolean multiThreaded)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUnitName()
Returns the persistence unit name.
|
boolean |
isMultiThreaded()
Returns true if the EntityManager will be accessed from a mutli-thread implementation.
|
public PersistenceContextResourceReference(java.lang.String name,
java.lang.String unitName,
org.fabric3.api.model.type.contract.ServiceContract serviceContract,
boolean multiThreaded)
name - Name of the resource.unitName - Persistence unit name.serviceContract - the service contract for the persistence unitmultiThreaded - true if the resource is accessed from a multi-threaded implementationpublic final java.lang.String getUnitName()
public boolean isMultiThreaded()