org.ow2.jonas.deployment.common
Class PersistenceUnitRefDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.PersistenceUnitRefDesc
All Implemented Interfaces:
IPersistenceUnitRefDesc

public class PersistenceUnitRefDesc
extends Object
implements IPersistenceUnitRefDesc

Class used to represent persistence-unit-ref elements in J2EE deployment descriptors.

Author:
Adriana Danes

Constructor Summary
PersistenceUnitRefDesc(PersistenceUnitRef persistenceUnitRef)
          Construct a descriptor for an persistence-unit-ref tag.
 
Method Summary
 String getDescription()
          Get the optional description.
 String getName()
          Get the optional persistence unit name.
 String getRefName()
          Get the persistence unit reference name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceUnitRefDesc

public PersistenceUnitRefDesc(PersistenceUnitRef persistenceUnitRef)
                       throws DeploymentDescException
Construct a descriptor for an persistence-unit-ref tag.

Parameters:
persistenceUnitRef - the persistence-unit-ref resulting of the xml parsing.
Throws:
DeploymentDescException - when missing information for creating the PersistenceUnitRefDesc
Method Detail

getDescription

public String getDescription()
Description copied from interface: IPersistenceUnitRefDesc
Get the optional description.

Specified by:
getDescription in interface IPersistenceUnitRefDesc
Returns:
persistence unit reference description

getName

public String getName()
Description copied from interface: IPersistenceUnitRefDesc
Get the optional persistence unit name.

Specified by:
getName in interface IPersistenceUnitRefDesc
Returns:
persistence unit name

getRefName

public String getRefName()
Description copied from interface: IPersistenceUnitRefDesc
Get the persistence unit reference name.

Specified by:
getRefName in interface IPersistenceUnitRefDesc
Returns:
persistence unit reference name


Copyright © 2010 OW2 Consortium. All Rights Reserved.