oracle.toplink.tools.workbench
Class XMLProjectReader
java.lang.Object
oracle.toplink.tools.workbench.XMLProjectReader
- public class XMLProjectReader
- extends java.lang.Object
Purpose: Allow for a TopLink Builder generated deployment XML project file to be read. The Builder XML file stores the TopLink descriptor (meta-data) information which describe the database mappings. This reader returns an instance of Project to be used to initialize a TopLink session.
- Since:
- TopLink 3.0
Method Summary |
static Project |
read(java.io.Reader reader)
PUBLIC: Given a Reader on an XML database, and the name of a project, this returns a TopLink Project object. |
static Project |
read(java.lang.String fileName)
PUBLIC: Given a path representing the directory of an XML database, and the name of a project, this returns a TopLink Project object. |
static Project |
read(java.lang.String projectFileName, java.lang.ClassLoader loader)
PUBLIC: Given a File Name and a class loader, this returns a TopLink Project object. |
static Project |
readWithClassLoader(java.lang.String fileName, java.lang.ClassLoader cl)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLProjectReader
public XMLProjectReader()
read
public static Project read(java.lang.String fileName)
- PUBLIC: Given a path representing the directory of an XML database, and the name of a project, this returns a TopLink Project object. If the project is not found, or if there is more than one project in the database of that name, the method throws a BuilderException. Note: this method can only be used for 3.0 projects or later.
readWithClassLoader
public static Project readWithClassLoader(java.lang.String fileName,
java.lang.ClassLoader cl)
read
public static Project read(java.io.Reader reader)
- PUBLIC: Given a Reader on an XML database, and the name of a project, this returns a TopLink Project object. If the project is not found, or if there is more than one project in the database of that name, the method throws a BuilderException. Note: this method can only be used for 3.0 projects or later.
read
public static Project read(java.lang.String projectFileName,
java.lang.ClassLoader loader)
- PUBLIC: Given a File Name and a class loader, this returns a TopLink Project object. If the project is not found, or if there is more than one project in the database of that name, the method throws a BuilderException. Note: this method can only be used for 3.0 projects or later.