Fabric3 JPA/Hibernate Extension

org.fabric3.jpa.model
Class PersistenceUnitResourceReference

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

Field Summary
 
Fields inherited from class org.fabric3.model.type.ModelObject
roundTrip
 
Constructor Summary
PersistenceUnitResourceReference(String name, String unitName, org.fabric3.model.type.contract.ServiceContract serviceContract)
          Initializes the resource name and persistence unit name.
 
Method Summary
 String getUnitName()
          Gets the persistence unit name.
 
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

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
Method Detail

getUnitName

public final String getUnitName()
Gets the persistence unit name.

Returns:
Persistence unit name.

Fabric3 JPA/Hibernate Extension

Copyright © 2007-2012 Metaform Systems.