Update of /cvsroot/springnet/Spring.Net/doc/reference/src
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21662
Modified Files:
ado.xml dbprovider.xml
Log Message:
SPRNET-946 - Extend code example in chapter "19.4. Connection String management" of the reference documentation
add section titles to ado chapter.
Index: ado.xml
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/ado.xml,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** ado.xml 24 Jan 2008 17:32:36 -0000 1.23
--- ado.xml 28 May 2008 16:33:49 -0000 1.24
***************
*** 114,118 ****
</sect1>
! <sect1>
<title>Motivations</title>
--- 114,118 ----
</sect1>
! <sect1 id="ado-motivations" label="">
<title>Motivations</title>
***************
*** 289,293 ****
to <xref linkend="dbprovider" /></para>
! <sect2>
<title>Creating an instance of IDbProvider</title>
--- 289,293 ----
to <xref linkend="dbprovider" /></para>
! <sect2 id="ado-dbprovider-creating-instance">
<title>Creating an instance of IDbProvider</title>
***************
*** 306,310 ****
</sect1>
! <sect1>
<title>Namespaces</title>
--- 306,310 ----
</sect1>
! <sect1 id="ado-namespaces">
<title>Namespaces</title>
***************
*** 336,340 ****
</sect1>
! <sect1>
<title>Approaches to Data Access</title>
--- 336,340 ----
</sect1>
! <sect1 id="ado-data-access-approaches">
<title>Approaches to Data Access</title>
***************
*** 367,371 ****
</sect1>
! <sect1>
<title>Introduction to AdoTemplate</title>
--- 367,371 ----
</sect1>
! <sect1 id="ado-adotemplate-intro">
<title>Introduction to AdoTemplate</title>
***************
*** 407,411 ****
<para></para>
! <sect2>
<title>Execute Callback</title>
--- 407,411 ----
<para></para>
! <sect2 id="ado-execute-callback">
<title>Execute Callback</title>
***************
*** 645,649 ****
</sect2>
! <sect2>
<title>Quick Guide to AdoTemplate Methods</title>
--- 645,649 ----
</sect2>
! <sect2 id="ado-template-method-guide">
<title>Quick Guide to AdoTemplate Methods</title>
***************
*** 899,903 ****
</sect2>
! <sect2>
<title>Quick Guide to AdoTemplate Properties</title>
--- 899,903 ----
</sect2>
! <sect2 id="ado-adotemplate-properties-quicguide">
<title>Quick Guide to AdoTemplate Properties</title>
***************
*** 948,952 ****
</sect1>
! <sect1>
<title>Transaction Management</title>
--- 948,952 ----
</sect1>
! <sect1 id="ado-transaction-management">
<title>Transaction Management</title>
***************
*** 997,1001 ****
</sect1>
! <sect1>
<title>Exception Translation</title>
--- 997,1001 ----
</sect1>
! <sect1 id="ado-exception-translation">
<title>Exception Translation</title>
***************
*** 1010,1014 ****
</sect1>
! <sect1>
<title>Parameter Management</title>
--- 1010,1014 ----
</sect1>
! <sect1 id="ado-parameter-management">
<title>Parameter Management</title>
***************
*** 1021,1025 ****
more portable across providers.</para>
! <sect2>
<title>IDbParametersBuilder</title>
--- 1021,1025 ----
more portable across providers.</para>
! <sect2 id="ado-idbparametersbuilder">
<title>IDbParametersBuilder</title>
***************
*** 1064,1068 ****
</sect2>
! <sect2>
<title>IDbParameters</title>
--- 1064,1068 ----
</sect2>
! <sect2 id="ado-idbparameters">
<title>IDbParameters</title>
***************
*** 1178,1182 ****
</sect1>
! <sect1>
<title>Basic data access operations</title>
--- 1178,1182 ----
</sect1>
! <sect1 id="ado-basic-operations">
<title>Basic data access operations</title>
***************
*** 1185,1189 ****
named methods on the DbCommand object</para>
! <sect2>
<title>ExecuteNonQuery</title>
--- 1185,1189 ----
named methods on the DbCommand object</para>
! <sect2 id="ado-executenonquery">
<title>ExecuteNonQuery</title>
***************
*** 1202,1206 ****
</sect2>
! <sect2>
<title>ExecuteScalar</title>
--- 1202,1206 ----
</sect2>
! <sect2 id="ado-executescalar">
<title>ExecuteScalar</title>
***************
*** 1212,1216 ****
</sect1>
! <sect1>
<title>Queries and Lightweight Object Mapping</title>
--- 1212,1216 ----
</sect1>
! <sect1 id="ado-lightweight-orm">
<title>Queries and Lightweight Object Mapping</title>
***************
*** 1463,1467 ****
</sect2>
! <sect2>
<title>Query for a single object</title>
--- 1463,1467 ----
</sect2>
! <sect2 id="ado-query-for-single-object">
<title>Query for a single object</title>
***************
*** 1486,1490 ****
</sect2>
! <sect2>
<title>Query using a CommandCreator</title>
--- 1486,1490 ----
</sect2>
! <sect2 id="ado-queyr-commandcreator">
<title>Query using a CommandCreator</title>
***************
*** 1652,1656 ****
</sect1>
! <sect1>
<title>DataTable and DataSet</title>
--- 1652,1656 ----
</sect1>
! <sect1 id="ado-datatable-dataset">
<title>DataTable and DataSet</title>
***************
*** 1719,1723 ****
public delegate T DataAdapterDelegate<T>(IDbDataAdapter dataAdapter);</programlisting>
! <sect2>
<title>DataTables</title>
--- 1719,1723 ----
public delegate T DataAdapterDelegate<T>(IDbDataAdapter dataAdapter);</programlisting>
! <sect2 id="ado-datatable">
<title>DataTables</title>
***************
*** 1765,1769 ****
</sect2>
! <sect2>
<title>DataSets</title>
--- 1765,1769 ----
</sect2>
! <sect2 id="ado-dataset">
<title>DataSets</title>
***************
*** 1926,1930 ****
</sect1>
! <sect1>
<title>TableAdapters and participation in transactional context</title>
--- 1926,1930 ----
</sect1>
! <sect1 id="ado-tableadapter-tx">
<title>TableAdapters and participation in transactional context</title>
***************
*** 1988,1992 ****
</sect1>
! <sect1>
<title>Database operations as Objects</title>
--- 1988,1992 ----
</sect1>
! <sect1 id="ado-objects">
<title>Database operations as Objects</title>
***************
*** 2213,2224 ****
argument is an IDictionary it contains parameter key/value pairs. Return
values from stored procedures are contained under the key
! "<literal>RETURN_VALUE</literal>".</para>
<para>The standard in/out parameters for the stored procedure can be set
programmatically by adding to the parameter collection exposed by the
property DeclaredParameters. For each result sets that is returned by
! the stored procedures you can registering either an IResultSetExtractor,
! IRowCallback, or IRowMapper by name, which is used later to extract the
! mapped results from the returned IDictionary.</para>
<para>Lets take a look at an example. The following stored procedure
--- 2213,2227 ----
argument is an IDictionary it contains parameter key/value pairs. Return
values from stored procedures are contained under the key
! "<literal>RETURN_VALUE</literal>". </para>
<para>The standard in/out parameters for the stored procedure can be set
programmatically by adding to the parameter collection exposed by the
property DeclaredParameters. For each result sets that is returned by
! the stored procedures you can registering either an
! <classname>IResultSetExtractor</classname>,
! <classname>IRowCallback</classname>, or
! <classname>IRowMapper</classname> by name, which is used later to
! extract the mapped results from the returned
! <classname>IDictionary</classname>.</para>
<para>Lets take a look at an example. The following stored procedure
***************
*** 2253,2260 ****
you do not want to follow this loose shorthand convention, you can call
the method <literal>QueryByNamesParameters</literal> instead passing in
! a IDictionary of parameter key/value pairs. If you would like to have
! the return value of the stored procedure included in the returned
! dictionary, pass in <literal>true</literal> as a method parameter to
! <literal>DeriveParameters</literal>().</para>
<para>The <classname>StoredProcedure</classname> class is threadsafe
--- 2256,2265 ----
you do not want to follow this loose shorthand convention, you can call
the method <literal>QueryByNamesParameters</literal> instead passing in
! a IDictionary of parameter key/value pairs. <note>
! <para>If you would like to have the return value of the stored
! procedure included in the returned dictionary, pass in
! <literal>true</literal> as a method parameter to
! <literal>DeriveParameters</literal>().</para>
! </note></para>
<para>The <classname>StoredProcedure</classname> class is threadsafe
Index: dbprovider.xml
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/dbprovider.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** dbprovider.xml 29 Jan 2008 18:18:44 -0000 1.18
--- dbprovider.xml 28 May 2008 16:33:49 -0000 1.19
***************
*** 369,373 ****
--- 369,383 ----
</object>
+ <!-- configuration of what values to substitute for ${ } variables listed above -->
+ <object name="appConfigPropertyHolder"
+ type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core">
+ <property name="configSections" value="DatabaseConfiguration"/>
+ </object>
+
</objects></programlisting>
+
+ <para>Please refer to the Section <xref
+ linkend="objects-factory-placeholderconfigurer" /> for more
+ information.</para>
</section>
***************
*** 377,381 ****
<para>Spring provides some convenient implementations of the IDbProvider
interface that add addtional behavior on top of the standard
! implementation. </para>
<section id="dbprovider-usercredentials">
--- 387,391 ----
<para>Spring provides some convenient implementations of the IDbProvider
interface that add addtional behavior on top of the standard
! implementation.</para>
<section id="dbprovider-usercredentials">
|