org.fabric3.jpa.model
Class HibernateSessionResourceReference
java.lang.Object
org.fabric3.model.type.ModelObject
org.fabric3.model.type.component.ResourceReferenceDefinition
org.fabric3.jpa.model.HibernateSessionResourceReference
- All Implemented Interfaces:
- Serializable
public final class HibernateSessionResourceReference
- extends org.fabric3.model.type.component.ResourceReferenceDefinition
Represents a Hibernate Session treated as a resource.
- Version:
- $Rev: 7652 $ $Date: 2009-09-20 16:02:49 +0200 (Sun, 20 Sep 2009) $
- 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 |
HibernateSessionResourceReference
public HibernateSessionResourceReference(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.