org.fabric3.jpa.model
Class PersistenceContextResourceReference
java.lang.Object
org.fabric3.model.type.ModelObject
org.fabric3.model.type.component.ResourceReferenceDefinition
org.fabric3.jpa.model.PersistenceContextResourceReference
- All Implemented Interfaces:
- Serializable
public final class PersistenceContextResourceReference
- extends org.fabric3.model.type.component.ResourceReferenceDefinition
Represents an entity manager factory treated as a resource.
- Version:
- $Rev: 11083 $ $Date: 2012-06-21 10:38:50 +0000 (Thu, 21 Jun 2012) $
- See Also:
- Serialized Form
| Fields inherited from class org.fabric3.model.type.ModelObject |
roundTrip |
|
Method Summary |
String |
getUnitName()
Returns the persistence unit name. |
boolean |
isMultiThreaded()
Returns true if the EntityManager will be accessed from a mutli-thread implementation. |
| Methods inherited from class org.fabric3.model.type.component.ResourceReferenceDefinition |
getName, getServiceContract, isOptional |
| Methods inherited from class org.fabric3.model.type.ModelObject |
addComment, addText, attributeSpecified, enableRoundTrip, getElementStack, getSpecifiedAttributes, pushElement, removeElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceContextResourceReference
public PersistenceContextResourceReference(String name,
String unitName,
org.fabric3.model.type.contract.ServiceContract serviceContract,
boolean multiThreaded)
- Constructor.
- Parameters:
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 implementation
getUnitName
public final String getUnitName()
- Returns the persistence unit name.
- Returns:
- the persistence unit name.
isMultiThreaded
public boolean isMultiThreaded()
- Returns true if the EntityManager will be accessed from a mutli-thread implementation.
- Returns:
- true if the EntityManager will be accessed from a mutli-thread implementation
Copyright © 2007-2012 Metaform Systems.