org.fabric3.jpa.model
Class PersistenceUnitResourceReference
java.lang.Object
org.fabric3.model.type.ModelObject
org.fabric3.model.type.component.ResourceReferenceDefinition
org.fabric3.jpa.model.PersistenceUnitResourceReference
- All Implemented Interfaces:
- Serializable
public final class PersistenceUnitResourceReference
- 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 |
| 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 |
PersistenceUnitResourceReference
public PersistenceUnitResourceReference(String name,
String unitName,
org.fabric3.model.type.contract.ServiceContract serviceContract)
- Initializes the resource name and persistence unit name.
- Parameters:
name - Name of the resource.unitName - Persistence unit name.serviceContract - the service contract for the persistence unit
getUnitName
public final String getUnitName()
- Gets the persistence unit name.
- Returns:
- Persistence unit name.
Copyright © 2007-2012 Metaform Systems.