/** * Parse resources at the given location. Searches for a * PersistenceUnitInfo with the requested name, or an OpenJPA unit if * no name given (preferring an unnamed OpenJPA unit to a named one). */ private PersistenceUnitInfoImpl parseResources(ConfigurationParser parser, List<URL> urls, String name, ClassLoader loader) throws IOException { List<PersistenceUnitInfoImpl> pinfos = new ArrayList<PersistenceUnitInfoImpl>(); for (URL url : urls) { parser.parse(url); pinfos.addAll((List<PersistenceUnitInfoImpl>) parser.getResults()); } return findUnit(pinfos, name, loader); }
/** * Parse resources at the given location. Searches for a * PersistenceUnitInfo with the requested name, or an OpenJPA unit if * no name given (preferring an unnamed OpenJPA unit to a named one). */ private PersistenceUnitInfoImpl parseResources(ConfigurationParser parser, List<URL> urls, String name, ClassLoader loader) throws IOException { List<PersistenceUnitInfoImpl> pinfos = new ArrayList<PersistenceUnitInfoImpl>(); for (URL url : urls) { parser.parse(url); pinfos.addAll((List<PersistenceUnitInfoImpl>) parser.getResults()); } return findUnit(pinfos, name, loader); }
/** * Parse resources at the given location. Searches for a * PersistenceUnitInfo with the requested name, or an OpenJPA unit if * no name given (preferring an unnamed OpenJPA unit to a named one). */ private PersistenceUnitInfoImpl parseResources(ConfigurationParser parser, List<URL> urls, String name, ClassLoader loader) throws IOException { List<PersistenceUnitInfoImpl> pinfos = new ArrayList<PersistenceUnitInfoImpl>(); for (URL url : urls) { parser.parse(url); pinfos.addAll((List<PersistenceUnitInfoImpl>) parser.getResults()); } return findUnit(pinfos, name, loader); }
/** * Parse resources at the given location. Searches for a * PersistenceUnitInfo with the requested name, or an OpenJPA unit if * no name given (preferring an unnamed OpenJPA unit to a named one). */ private PersistenceUnitInfoImpl parseResources(ConfigurationParser parser, List<URL> urls, String name, ClassLoader loader) throws IOException { List<PersistenceUnitInfoImpl> pinfos = new ArrayList<PersistenceUnitInfoImpl>(); for (URL url : urls) { parser.parse(url); pinfos.addAll((List<PersistenceUnitInfoImpl>) parser.getResults()); } return findUnit(pinfos, name, loader); }
/** * Parse resources at the given location. Searches for a * PersistenceUnitInfo with the requested name, or an OpenJPA unit if * no name given (preferring an unnamed OpenJPA unit to a named one). */ private PersistenceUnitInfoImpl parseResources(ConfigurationParser parser, List<URL> urls, String name, ClassLoader loader) throws IOException { List<PersistenceUnitInfoImpl> pinfos = new ArrayList<PersistenceUnitInfoImpl>(); for (URL url : urls) { parser.parse(url); pinfos.addAll((List<PersistenceUnitInfoImpl>) parser.getResults()); } return findUnit(pinfos, name, loader); }
@Override public ConfigurationProvider load(File file, String anchor) throws IOException { if (!file.getName().endsWith(".xml")) return null; ConfigurationParser parser = new ConfigurationParser(null); parser.parse(file); return load(findUnit((List<PersistenceUnitInfoImpl>) parser.getResults(), anchor, null), null); }
@Override public ConfigurationProvider load(File file, String anchor) throws IOException { if (!file.getName().endsWith(".xml")) return null; ConfigurationParser parser = new ConfigurationParser(null); parser.parse(file); return load(findUnit((List<PersistenceUnitInfoImpl>) parser.getResults(), anchor, null), null); }
@Override public ConfigurationProvider load(File file, String anchor) throws IOException { if (!file.getName().endsWith(".xml")) return null; ConfigurationParser parser = new ConfigurationParser(null); parser.parse(file); return load(findUnit((List<PersistenceUnitInfoImpl>) parser.getResults(), anchor, null), null); }
@Override public ConfigurationProvider load(File file, String anchor) throws IOException { if (!file.getName().endsWith(".xml")) return null; ConfigurationParser parser = new ConfigurationParser(null); parser.parse(file); return load(findUnit((List<PersistenceUnitInfoImpl>) parser.getResults(), anchor, null), null); }
@Override public ConfigurationProvider load(File file, String anchor) throws IOException { if (!file.getName().endsWith(".xml")) return null; ConfigurationParser parser = new ConfigurationParser(null); parser.parse(file); return load(findUnit((List<PersistenceUnitInfoImpl>) parser.getResults(), anchor, null), null); }