org.hibernate.ejb.packaging
Class PersistenceXmlLoader

java.lang.Object
  extended by org.hibernate.ejb.packaging.PersistenceXmlLoader

public final class PersistenceXmlLoader
extends java.lang.Object

Handler for persistence.xml files.

Author:
Bill Burke, Emmanuel Bernard

Nested Class Summary
static class PersistenceXmlLoader.ErrorLogger
           
 
Method Summary
static java.util.List<PersistenceMetadata> deploy(java.net.URL url, java.util.Map overrides, org.xml.sax.EntityResolver resolver)
          Method used by JBoss AS 4.0.5 for parsing
static java.util.List<PersistenceMetadata> deploy(java.net.URL url, java.util.Map overrides, org.xml.sax.EntityResolver resolver, javax.persistence.spi.PersistenceUnitTransactionType defaultTransactionType)
          Method used by JBoss EJB3 (4.2 and above) for parsing Object used by Hibernate OGM as well, consider this some kind of exposed service at the SPI level
static javax.persistence.spi.PersistenceUnitTransactionType getTransactionType(java.lang.String elementContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deploy

public static java.util.List<PersistenceMetadata> deploy(java.net.URL url,
                                                         java.util.Map overrides,
                                                         org.xml.sax.EntityResolver resolver)
                                                  throws java.lang.Exception
Method used by JBoss AS 4.0.5 for parsing

Throws:
java.lang.Exception

deploy

public static java.util.List<PersistenceMetadata> deploy(java.net.URL url,
                                                         java.util.Map overrides,
                                                         org.xml.sax.EntityResolver resolver,
                                                         javax.persistence.spi.PersistenceUnitTransactionType defaultTransactionType)
                                                  throws java.lang.Exception
Method used by JBoss EJB3 (4.2 and above) for parsing Object used by Hibernate OGM as well, consider this some kind of exposed service at the SPI level

Throws:
java.lang.Exception

getTransactionType

public static javax.persistence.spi.PersistenceUnitTransactionType getTransactionType(java.lang.String elementContent)


Copyright © 2011. All Rights Reserved.