Top Description Constructors Methods
org.eclipse.persistence.sessions.factories

public Class XMLProjectWriter

extends Object
Class Inheritance
Imports
java.io.*, java.nio.charset.StandardCharsets, org.eclipse.persistence.exceptions.*, org.eclipse.persistence.internal.sessions.factories.MissingDescriptorListener, .ObjectPersistenceWorkbenchXMLProject, org.eclipse.persistence.oxm.*, org.eclipse.persistence.sessions.*

Purpose: Write the deployment XML (object persistence meta-data) for the TopLink project instance to a file. Note the TopLink deployment XML format has change as of the OracleAS TopLink 10g (10.0.3) release to use XML schema.

Author
James Sutherland
Since
TopLink 3.0

Constructor Summary

AccessConstructor and Description
private
XMLProjectWriter()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public static void
write(Project
the project instance to write
project
,
String
file to write to (including path)
fileName
)

PUBLIC: Given the file name (including path), and a project, this writes out the deployment XML file storing the project's descriptor and mapping information.

public static void
write(Project
the project instance to write
project
,
Writer
writer to writer to
writer
)

PUBLIC: Given the writer, and a project, this writes out the deployment XML file storing the project's descriptor and mapping information.

public static void
write(String fileName, Project project)

INTERNAL: This should not be used.

public static void
write(String fileName, Project project, Writer writer)

INTERNAL: This should not be used.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XMLProjectWriterback to summary
private XMLProjectWriter()

Default constructor.

Method Detail

writeback to summary
public static void write(Project project, String fileName)

PUBLIC: Given the file name (including path), and a project, this writes out the deployment XML file storing the project's descriptor and mapping information.

Parameters
project:Project

the project instance to write

fileName:String

file to write to (including path)

writeback to summary
public static void write(Project project, Writer writer)

PUBLIC: Given the writer, and a project, this writes out the deployment XML file storing the project's descriptor and mapping information.

Parameters
project:Project

the project instance to write

writer:Writer

writer to writer to

writeback to summary
public static void write(String fileName, Project project)

INTERNAL: This should not be used.

See Also
write(Project, String)
writeback to summary
public static void write(String fileName, Project project, Writer writer)

INTERNAL: This should not be used.

See Also
write(Project, Writer), write(Project, String)