Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.jpa.conf
Class UnitDescriptorParser

    java.lang.Object
      org.apache.cayenne.jpa.conf.UnitDescriptorParser

    public class UnitDescriptorParser

extends Object

A parser of persistence descriptor files. Can be used in serial processing of multiple documents.

Author:
  Andrus Adamchik

Field Summary
`protected SAXParserFactory` | `parserFactory`

Constructor Summary
`UnitDescriptorParser()`
`UnitDescriptorParser(boolean validatesAgainstSchema)`

Method Summary
`Collection<JpaUnit>` | `getPersistenceUnits(InputSource in, URL persistenceUnitRootUrl)` Loads and returns a Collection of PersistenceUnitInfos from the XML descriptor.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### parserFactory

    protected SAXParserFactory parserFactory

Constructor Detail

### UnitDescriptorParser

    public UnitDescriptorParser()
                         throws SAXException,
                                ParserConfigurationException

Throws:
  `SAXException`
  `ParserConfigurationException`

### UnitDescriptorParser

    public UnitDescriptorParser(boolean validatesAgainstSchema)
                         throws SAXException

Throws:
  `SAXException`

Method Detail

### getPersistenceUnits

    public Collection<JpaUnit> getPersistenceUnits(InputSource in,
                                                   URL persistenceUnitRootUrl)
                                            throws SAXException,
                                                   IOException,
                                                   ParserConfigurationException

  Loads and returns a Collection of PersistenceUnitInfos from the XML descriptor.

  Throws:
    `SAXException`
    `IOException`
    `ParserConfigurationException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.