1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.26 $ -->
<reference xml:id="ref.sdo.das.rel" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>SDO-DAS-Relational &Functions;</title>
<partintro>
<!-- FIXME: The rest should be reworked to follow our OOskeletons -->
<!-- class definition section -->
<section xml:id='sdo.das.rel.classes'>
&reftitle.classes;
<para>
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,
the
<function>createRootDataObject</function>
call to obtain the root object of an empty data graph,
the
<function>executeQuery</function>
call to obtain a data graph containing data from a relational database,
and the
<function>applyChanges</function>
call to write changes made to a data graph back to the relational
database.
</para>
<section xml:id='sdo.das.rel.sdo-das-relational'>
<title>
<classname>SDO_DAS_Relational</classname>
</title>
<para>
The only object other than an SDO_DAS_Relational_Exception with which
the application is expected to interact.
</para>
<section xml:id='sdo.das.rel.sdo-das-relational.methods'>
&reftitle.methods;
<itemizedlist>
<listitem>
<para>
<link linkend='function.sdo-das-relational-construct'>
__construct
</link>
- construct the Relational DAS with a model derived from the
passed metadata
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-relational-createrootdataobject'>
createRootDataObject
</link>
- obtain an otherwise empty data graph containing just the special
root object
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-relational-executequery'>
executeQuery
</link>
- execute an SQL query passed as a literal string and return
the results as a normalised data graph
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-relational-executepreparedquery'>
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
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-relational-applychanges'>
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
</para>
</listitem>
</itemizedlist>
</section>
</section>
<section xml:id='sdo.das.rel.sdo-das-relational-exception'>
<title>
<classname>SDO_DAS_Relational_Exception</classname>
</title>
<para>
Is a subclass of PHP's
<classname>Exception</classname>.
It adds no behaviour to
<classname>Exception</classname>.
Thrown, with useful descriptive text, to signal errors in the
metadata or unexpected failures to perform SQL operations.
</para>
</section>
</section>
</partintro>
<!-- This seems to create the table of contents -->
&reference.sdodasrel.entities.functions;
</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
sgml-default-dtd-file:"../../../manual.ced"
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
-->
|