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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parserFactory
protected SAXParserFactory parserFactory
UnitDescriptorParser
public UnitDescriptorParser()
throws SAXException,
ParserConfigurationException
- Throws:
SAXException
ParserConfigurationException
UnitDescriptorParser
public UnitDescriptorParser(boolean validatesAgainstSchema)
throws SAXException
- Throws:
SAXException
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
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.