@Typed public class PersistenceUnitDescriptorParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_PATH |
Constructor and Description |
---|
PersistenceUnitDescriptorParser() |
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
classLoader() |
protected String |
extractBaseUrl(URL fileUrl,
String resource) |
protected List<EntityDescriptor> |
extractMappings(Element element,
String baseUrl,
String unitName) |
protected Map<String,String> |
extractProperties(Element element) |
protected String |
extractUnitName(Node node) |
protected List<PersistenceUnitDescriptor> |
lookupUnits(Descriptor descriptor) |
protected Descriptor |
read(String baseUrl,
String resource) |
List<PersistenceUnitDescriptor> |
readAll() |
protected List<Descriptor> |
readAllFromClassPath(String resource) |
protected Descriptor |
readFromClassPath(String resource) |
protected Descriptor |
readFromUrl(URL url) |
protected void |
readMappingFiles(String baseUrl,
String unitName,
List<EntityDescriptor> entities,
List<MappedSuperclassDescriptor> superClasses,
NodeList list) |
public static final String RESOURCE_PATH
public List<PersistenceUnitDescriptor> readAll() throws IOException
IOException
protected List<PersistenceUnitDescriptor> lookupUnits(Descriptor descriptor)
protected List<EntityDescriptor> extractMappings(Element element, String baseUrl, String unitName)
protected void readMappingFiles(String baseUrl, String unitName, List<EntityDescriptor> entities, List<MappedSuperclassDescriptor> superClasses, NodeList list)
protected List<Descriptor> readAllFromClassPath(String resource) throws IOException
IOException
protected Descriptor readFromClassPath(String resource) throws IOException
IOException
protected Descriptor readFromUrl(URL url) throws IOException
IOException
protected Descriptor read(String baseUrl, String resource) throws IOException
IOException
protected ClassLoader classLoader()
Copyright © 2020 The Apache Software Foundation. All rights reserved.