|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.xml.XMLFileStreamPolicy
This implementation of the XMLStreamPolicy
interface simply wraps the supplied file (or files) in the appropriate stream (or enumeration of streams).
XMLCall
, XMLAccessor
, XMLFileAccessor
, Serialized FormField Summary | |
static int |
MAX_READ_BUFFER_SIZE Performance tweak: The maximum size of the read buffer used when reading XML files. |
static int |
MAX_WRITE_BUFFER_SIZE |
static int |
MIN_WRITE_BUFFER_SIZE Performance tweak: The minimum and maximum sizes of the write buffer used when writing XML files. |
Constructor Summary | |
XMLFileStreamPolicy(java.util.Enumeration files) Construct a policy for the specified files. |
|
XMLFileStreamPolicy(java.io.File file) Construct a policy for the specified file. |
|
XMLFileStreamPolicy(java.lang.String fileName) Construct a policy for the specified file. |
Method Summary | |
java.lang.Integer |
deleteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Delete the data for the specified root element and primary key. |
java.io.Reader |
getExistenceCheckStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) If it exists, return a read stream on the data for the specified root element and primary key. |
java.io.Writer |
getExistingWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return a write stream that will overwrite the data for the specified root element and primary key. |
java.io.Writer |
getNewWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return a new write stream for the specified root element and primary key. |
java.io.Reader |
getReadStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return a read stream on the data for the specified root element and primary key. |
java.util.Enumeration |
getReadStreams(java.lang.String rootElementName, oracle.toplink.internal.databaseaccess.Accessor accessor) Return an enumeration on a collection of read streams, one for *every* document with the specified root element. |
java.util.Enumeration |
getReadStreams(java.lang.String rootElementName, java.util.Vector foreignKeys, java.util.Vector orderedForeignKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) Return an enumeration on a collection of streams, one for every specified foreign key. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int MAX_READ_BUFFER_SIZE
public static int MIN_WRITE_BUFFER_SIZE
public static int MAX_WRITE_BUFFER_SIZE
Constructor Detail |
public XMLFileStreamPolicy(java.io.File file)
public XMLFileStreamPolicy(java.lang.String fileName)
public XMLFileStreamPolicy(java.util.Enumeration files)
Method Detail |
public java.lang.Integer deleteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
deleteStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Reader getExistenceCheckStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getExistenceCheckStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Writer getExistingWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getExistingWriteStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Writer getNewWriteStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getNewWriteStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.io.Reader getReadStream(java.lang.String rootElementName, DatabaseRow row, java.util.Vector orderedPrimaryKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getReadStream
in interface XMLStreamPolicy
XMLDataStoreException
public java.util.Enumeration getReadStreams(java.lang.String rootElementName, java.util.Vector foreignKeys, java.util.Vector orderedForeignKeyElements, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getReadStreams
in interface XMLStreamPolicy
XMLDataStoreException
public java.util.Enumeration getReadStreams(java.lang.String rootElementName, oracle.toplink.internal.databaseaccess.Accessor accessor) throws XMLDataStoreException
getReadStreams
in interface XMLStreamPolicy
XMLDataStoreException
public java.lang.String toString()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |