Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.xml
Interface XMLTranslator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultXMLTranslator

public interface XMLTranslator
extends java.io.Serializable

This interface defines the protocol from translating an XML document to a database row and vice versa.

Since:
TOPLink/Java 3.0

Method Summary
 DatabaseRow read(java.io.Reader stream)
          Build a database row from the XML document contained in the specified stream.
 void write(java.io.Writer stream, DatabaseRow row)
          Write an XML document representing the specified database row on the specified stream.

 

Method Detail

read

public DatabaseRow read(java.io.Reader stream)
Build a database row from the XML document contained in the specified stream.

write

public void write(java.io.Writer stream,
                  DatabaseRow row)
Write an XML document representing the specified database row on the specified stream.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.