2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:48:51 +00:00
|
|
|
<!-- $Revision$ -->
|
2005-09-04 19:39:32 +00:00
|
|
|
|
2012-01-07 16:18:34 +00:00
|
|
|
<reference xml:id="ref.sdodasrel" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2008-05-30 17:25:13 +00:00
|
|
|
<title>SDO-DAS-Relational &Functions;</title>
|
2005-07-19 09:48:30 +00:00
|
|
|
|
2005-07-20 14:52:40 +00:00
|
|
|
<partintro>
|
2007-12-26 00:07:08 +00:00
|
|
|
<!-- FIXME: The rest should be reworked to follow our OOskeletons -->
|
2005-07-20 14:52:40 +00:00
|
|
|
<!-- class definition section -->
|
2012-01-07 16:18:34 +00:00
|
|
|
<section xml:id="sdodasrel.classes">
|
2005-07-19 09:48:30 +00:00
|
|
|
&reftitle.classes;
|
2005-07-20 14:52:40 +00:00
|
|
|
<para>
|
2005-07-21 13:05:46 +00:00
|
|
|
The Relational DAS provides two classes: the Relational DAS itself and
|
|
|
|
the subclass of Exception that can be thrown. The Relational DAS has
|
|
|
|
four publicly useful calls: the constructor,
|
2005-07-20 14:52:40 +00:00
|
|
|
the
|
|
|
|
<function>createRootDataObject</function>
|
|
|
|
call to obtain the root object of an empty data graph,
|
|
|
|
the
|
|
|
|
<function>executeQuery</function>
|
2005-07-26 14:02:08 +00:00
|
|
|
call to obtain a data graph containing data from a relational database,
|
2005-07-20 14:52:40 +00:00
|
|
|
and the
|
2005-10-04 15:11:18 +00:00
|
|
|
<function>applyChanges</function>
|
2005-07-21 13:05:46 +00:00
|
|
|
call to write changes made to a data graph back to the relational
|
|
|
|
database.
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
2005-07-19 09:48:30 +00:00
|
|
|
|
2005-07-20 14:52:40 +00:00
|
|
|
|
2012-01-07 16:18:34 +00:00
|
|
|
<section xml:id="sdodasrel.sdo-das-relational">
|
2005-07-20 14:52:40 +00:00
|
|
|
<title>
|
|
|
|
<classname>SDO_DAS_Relational</classname>
|
|
|
|
</title>
|
|
|
|
<para>
|
2005-07-21 13:05:46 +00:00
|
|
|
The only object other than an SDO_DAS_Relational_Exception with which
|
|
|
|
the application is expected to interact.
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
2012-01-07 16:18:34 +00:00
|
|
|
<section xml:id="sdodasrel.sdo-das-relational.methods">
|
2005-07-20 14:52:40 +00:00
|
|
|
&reftitle.methods;
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-07 16:12:10 +00:00
|
|
|
<link linkend="sdo-das-relational.construct">
|
2005-07-21 13:05:46 +00:00
|
|
|
__construct
|
|
|
|
</link>
|
|
|
|
- construct the Relational DAS with a model derived from the
|
|
|
|
passed metadata
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-07 16:12:10 +00:00
|
|
|
<link linkend="sdo-das-relational.createrootdataobject">
|
2005-07-21 13:05:46 +00:00
|
|
|
createRootDataObject
|
|
|
|
</link>
|
|
|
|
- obtain an otherwise empty data graph containing just the special
|
|
|
|
root object
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-07 16:12:10 +00:00
|
|
|
<link linkend="sdo-das-relational.executequery">
|
2005-07-21 13:05:46 +00:00
|
|
|
executeQuery
|
|
|
|
</link>
|
2005-07-29 18:14:31 +00:00
|
|
|
- execute an SQL query passed as a literal string and return
|
|
|
|
the results as a normalised data graph
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-07 16:12:10 +00:00
|
|
|
<link linkend="sdo-das-relational.executepreparedquery">
|
2005-07-29 18:14:31 +00:00
|
|
|
executePreparedQuery
|
|
|
|
</link>
|
|
|
|
- execute an SQL query passed as a prepared statement, with a
|
|
|
|
list of values to substitute for placeholders, and return the
|
|
|
|
results as a normalised data graph
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-07 16:12:10 +00:00
|
|
|
<link linkend="sdo-das-relational.applychanges">
|
2005-07-21 13:05:46 +00:00
|
|
|
applyChanges
|
|
|
|
</link>
|
|
|
|
- examine the change summary in the data graph and apply those
|
|
|
|
changes back to the database, subject to an assumption
|
|
|
|
of optimistic concurrency
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
2012-01-07 16:18:34 +00:00
|
|
|
<section xml:id="sdodasrel.sdo-das-relational-exception">
|
2005-07-20 14:52:40 +00:00
|
|
|
<title>
|
|
|
|
<classname>SDO_DAS_Relational_Exception</classname>
|
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
Is a subclass of PHP's
|
2005-07-23 11:08:37 +00:00
|
|
|
<classname>Exception</classname>.
|
2005-07-20 14:52:40 +00:00
|
|
|
It adds no behaviour to
|
2005-07-23 11:08:37 +00:00
|
|
|
<classname>Exception</classname>.
|
2005-07-21 13:05:46 +00:00
|
|
|
Thrown, with useful descriptive text, to signal errors in the
|
|
|
|
metadata or unexpected failures to perform SQL operations.
|
2005-07-20 14:52:40 +00:00
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
</partintro>
|
|
|
|
|
|
|
|
<!-- This seems to create the table of contents -->
|
2012-01-07 16:12:10 +00:00
|
|
|
&reference.sdodasrel.entities.sdo-das-relational;
|
2005-07-19 09:48:30 +00:00
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-07-19 09:48:30 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
2007-12-26 00:07:08 +00:00
|
|
|
|