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

public Class XMLSessionConfigWriter

extends Object
Class Inheritance
Imports
java.io.FileOutputStream, .IOException, .OutputStreamWriter, .Writer, java.nio.charset.StandardCharsets, org.eclipse.persistence.exceptions.ValidationException, org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs, org.eclipse.persistence.oxm.XMLContext, .XMLMarshaller

INTERNAL: This class is used by the Mapping Workbench Session Configuration to write the session config to XML.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Given the file name (including path), and a SessionConfigs, this writes out the session XML file.

public static void
write(SessionConfigs
the SessionConfigs instance to write
eclipseLinkSessions
,
Writer
writer to writer to
writer
)

Given the writer, and a SessionConfigs, this writes out the session XML file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XMLSessionConfigWriterback to summary
private XMLSessionConfigWriter()

Method Detail

writeback to summary
public static void write(SessionConfigs eclipseLinkSessions, String fileName)

Given the file name (including path), and a SessionConfigs, this writes out the session XML file.

Parameters
eclipseLinkSessions:SessionConfigs

the SessionConfigs instance to write

fileName:String

file to write to (including path)

writeback to summary
public static void write(SessionConfigs eclipseLinkSessions, Writer writer)

Given the writer, and a SessionConfigs, this writes out the session XML file.

Parameters
eclipseLinkSessions:SessionConfigs

the SessionConfigs instance to write

writer:Writer

writer to writer to