|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.internal.databaseaccess.DatasourceAccessor oracle.toplink.sdk.SDKAccessor oracle.toplink.xml.XMLFileAccessor
oracle.toplink.ox
public class XMLFileAccessor
XMLFileAccessor
is an implementation
of the XMLAccessor
interface that uses the
native O/S file system to store XML documents:
XMLFileAccessorFilePolicy
s. A file policy can be used to
define what files are used for a specific root element name.
If necessary, this Accessor
will dynamically load a
DefaultXMLTranslator
, either by using a
JARClassLoader
, to load the translator from specific set of JAR files,
or by using the current class loader, if no JAR files have been specified.
The static method DatabaseLogin.setXMLParserJARFileNames()
is used to set the paths to the JAR files to be used for custom class loading.
XMLCall
,
XMLFileLogin
,
JARClassLoader
,
DatabaseLogin
Constructor Summary | |
---|---|
XMLFileAccessor()
Deprecated. Default constructor. |
Method Summary | |
---|---|
void |
addFilePolicy(java.lang.String rootElementName,
XMLFileAccessorFilePolicy filePolicy)
Deprecated. Set the file policy for the specified root element name. |
void |
connect(Login login,
oracle.toplink.internal.sessions.AbstractSession session)
Deprecated. Establish a connection to the "data store". |
Record |
convert(Record row,
oracle.toplink.internal.sessions.AbstractSession session)
Deprecated. Everything in XML must be strings. |
void |
createStreamSource(java.lang.String rootElementName)
Deprecated. Create a source for data streams for the XML documents with the specified root element name. |
java.lang.Integer |
deleteStream(java.lang.String rootElementName,
Record row,
java.util.Vector orderedPrimaryKeyElements)
Deprecated. Delete the data for the specified root element and primary key. |
void |
disconnect(oracle.toplink.internal.sessions.AbstractSession session)
Deprecated. Drop the connection to the "data store". |
void |
dropStreamSource(java.lang.String rootElementName)
Deprecated. Drop the source for data streams for the XML documents with the specified root element name. |
XMLFileAccessorFilePolicy |
getDefaultFilePolicy()
Deprecated. Return the default file policy. |
java.io.Reader |
getExistenceCheckStream(java.lang.String rootElementName,
Record row,
java.util.Vector orderedPrimaryKeyElements)
Deprecated. 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,
Record row,
java.util.Vector orderedPrimaryKeyElements)
Deprecated. Return a write stream that will overwrite the data for the specified root element and primary key. |
XMLFileAccessorFilePolicy |
getFilePolicy(java.lang.String rootElementName)
Deprecated. Return the file policy for the specified root element name. |
java.io.Writer |
getNewWriteStream(java.lang.String rootElementName,
Record row,
java.util.Vector orderedPrimaryKeyElements)
Deprecated. Return a new write stream for the specified root element and primary key. |
java.io.Reader |
getReadStream(java.lang.String rootElementName,
Record row,
java.util.Vector orderedPrimaryKeyElements)
Deprecated. Return a read stream on the data for the specified root element and primary key. |
java.util.Enumeration |
getReadStreams(java.lang.String rootElementName)
Deprecated. 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 foreignKeyRows,
java.util.Vector orderedForeignKeyElements)
Deprecated. Return an enumeration on a collection of streams, one for every specified foreign key. |
XMLTranslator |
getXMLTranslator()
Deprecated. Return the default XML translator for all data store calls. |
void |
setDefaultFilePolicy(XMLFileAccessorFilePolicy defaultFilePolicy)
Deprecated. Set the default file policy. |
void |
setXMLTranslator(XMLTranslator translator)
Deprecated. Set the default XML translator for all data store calls. |
Methods inherited from class oracle.toplink.sdk.SDKAccessor |
---|
basicBeginTransaction, basicCommitTransaction, basicExecuteCall, basicRollbackTransaction, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLFileAccessor()
Method Detail |
---|
public void addFilePolicy(java.lang.String rootElementName, XMLFileAccessorFilePolicy filePolicy)
public void connect(Login login, oracle.toplink.internal.sessions.AbstractSession session) throws XMLDataStoreException
connect
in interface oracle.toplink.internal.databaseaccess.Accessor
DatasourceAccessor
in class oracle.toplink.internal.databaseaccess.DatasourceAccessor
XMLDataStoreException
public Record convert(Record row, oracle.toplink.internal.sessions.AbstractSession session)
convert
in interface XMLAccessor
public void createStreamSource(java.lang.String rootElementName) throws XMLDataStoreException
createStreamSource
in interface XMLAccessor
XMLDataStoreException
public java.lang.Integer deleteStream(java.lang.String rootElementName, Record row, java.util.Vector orderedPrimaryKeyElements) throws XMLDataStoreException
deleteStream
in interface XMLAccessor
XMLDataStoreException
public void disconnect(oracle.toplink.internal.sessions.AbstractSession session) throws XMLDataStoreException
disconnect
in interface oracle.toplink.internal.databaseaccess.Accessor
DatasourceAccessor
in class oracle.toplink.internal.databaseaccess.DatasourceAccessor
XMLDataStoreException
public void dropStreamSource(java.lang.String rootElementName) throws XMLDataStoreException
dropStreamSource
in interface XMLAccessor
XMLDataStoreException
public XMLFileAccessorFilePolicy getDefaultFilePolicy()
public java.io.Reader getExistenceCheckStream(java.lang.String rootElementName, Record row, java.util.Vector orderedPrimaryKeyElements) throws XMLDataStoreException
getExistenceCheckStream
in interface XMLAccessor
XMLDataStoreException
public java.io.Writer getExistingWriteStream(java.lang.String rootElementName, Record row, java.util.Vector orderedPrimaryKeyElements) throws XMLDataStoreException
getExistingWriteStream
in interface XMLAccessor
XMLDataStoreException
public XMLFileAccessorFilePolicy getFilePolicy(java.lang.String rootElementName)
public java.io.Writer getNewWriteStream(java.lang.String rootElementName, Record row, java.util.Vector orderedPrimaryKeyElements) throws XMLDataStoreException
getNewWriteStream
in interface XMLAccessor
XMLDataStoreException
public java.io.Reader getReadStream(java.lang.String rootElementName, Record row, java.util.Vector orderedPrimaryKeyElements) throws XMLDataStoreException
getReadStream
in interface XMLAccessor
XMLDataStoreException
public java.util.Enumeration getReadStreams(java.lang.String rootElementName) throws XMLDataStoreException
getReadStreams
in interface XMLAccessor
XMLDataStoreException
public java.util.Enumeration getReadStreams(java.lang.String rootElementName, java.util.Vector foreignKeyRows, java.util.Vector orderedForeignKeyElements) throws XMLDataStoreException
getReadStreams
in interface XMLAccessor
XMLDataStoreException
public XMLTranslator getXMLTranslator()
getXMLTranslator
in interface XMLAccessor
public void setDefaultFilePolicy(XMLFileAccessorFilePolicy defaultFilePolicy)
public void setXMLTranslator(XMLTranslator translator)
setXMLTranslator
in interface XMLAccessor
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |