Fabric3 JPA/Hibernate Extension

org.fabric3.jpa.model
Class PersistenceContextResourceReference

java.lang.Object
  extended by org.fabric3.model.type.ModelObject
      extended by org.fabric3.model.type.component.ResourceReferenceDefinition
          extended by 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

Field Summary
 
Fields inherited from class org.fabric3.model.type.ModelObject
roundTrip
 
Constructor Summary
PersistenceContextResourceReference(String name, String unitName, org.fabric3.model.type.contract.ServiceContract serviceContract, boolean multiThreaded)
          Constructor.
 
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
 

Constructor Detail

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 unit
multiThreaded - true if the resource is accessed from a multi-threaded implementation
Method Detail

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

Fabric3 JPA/Hibernate Extension

Copyright © 2007-2012 Metaform Systems.