org.jboss.ejb3.metadata.jpa.spec
Class PersistenceUnitMetaData

java.lang.Object
  extended by org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData
All Implemented Interfaces:
Serializable, org.jboss.metadata.javaee.support.MappableMetaData

public class PersistenceUnitMetaData
extends Object
implements org.jboss.metadata.javaee.support.MappableMetaData, Serializable

A wrapper around Hibernate's PersistenceMetadata.

Version:
$Revision: 72001 $
Author:
Carlo de Wolf
See Also:
Serialized Form

Constructor Summary
PersistenceUnitMetaData(PersistenceUnitsMetaData parent, org.hibernate.ejb.packaging.PersistenceMetadata old)
           
 
Method Summary
 String getKey()
           
 org.hibernate.ejb.packaging.PersistenceMetadata getLegacyMetadata()
          Deprecated. 
 String getName()
           
 URL getPersistenceUnitRootUrl()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceUnitMetaData

public PersistenceUnitMetaData(PersistenceUnitsMetaData parent,
                               org.hibernate.ejb.packaging.PersistenceMetadata old)
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface org.jboss.metadata.javaee.support.MappableMetaData

getLegacyMetadata

@Deprecated
public org.hibernate.ejb.packaging.PersistenceMetadata getLegacyMetadata()
Deprecated. 

Return the legacy metadata. Do not use, it will be removed soon.

Returns:

getName

public String getName()

getPersistenceUnitRootUrl

public URL getPersistenceUnitRootUrl()
Returns:
The URL for the jar file or directory that is the root of the persistence unit. (If the persistence unit is rooted in the WEB-INF/classes directory, this will be the URL of that directory.)
See Also:
javax.persistence.PersistenceUnitInfo#getPersistenceUnitRootUrl

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.