db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r465416 - /db/derby/docs/branches/10.2/src/tools/rtoolsijproprefdatasource.dita
Date Wed, 18 Oct 2006 23:24:29 GMT
Author: fuzzylogic
Date: Wed Oct 18 16:24:29 2006
New Revision: 465416

URL: http://svn.apache.org/viewvc?view=rev&rev=465416
Log:
DERBY-1968: Fix long line in doc for ij.dataSource. Merge of 465415 from
doc trunk.

Committed for Kim Haase <camilla.haase@sun.com>

Modified:
    db/derby/docs/branches/10.2/src/tools/rtoolsijproprefdatasource.dita

Modified: db/derby/docs/branches/10.2/src/tools/rtoolsijproprefdatasource.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/branches/10.2/src/tools/rtoolsijproprefdatasource.dita?view=diff&rev=465416&r1=465415&r2=465416
==============================================================================
--- db/derby/docs/branches/10.2/src/tools/rtoolsijproprefdatasource.dita (original)
+++ db/derby/docs/branches/10.2/src/tools/rtoolsijproprefdatasource.dita Wed Oct 18 16:24:29
2006
@@ -32,22 +32,30 @@
 a datasource, <ph conref="toolsconrefs.dita#prod/productshortname"></ph> does
 not use the DriverManager mechanism to establish connections.</p> </section>
 <refsyn><title>Syntax</title>To establish a connection using <codeph>ij.dataSource</codeph>,
-you need to set the <codeph>ij.dataSource.databaseName</codeph> and to create
-the database specify the <codeph>ij.dataSource.createDatabase</codeph> property
-as well.<codeblock><b>ij.dataSource=<i>dataSourcename</i></b>
<b>ij.dataSource.databaseName=<i>databasename</i></b> <b>[ij.dataSource.createDatabase=create]</b
-></codeblock></refsyn>
-<example><title>Example</title> <codeblock><b>
-<i>#
+you need to set the <codeph>ij.dataSource.databaseName</codeph> property. If
you want to create
+the database, specify the <codeph>ij.dataSource.createDatabase</codeph> property
+as well.
+<codeblock>ij.dataSource=<varname>dataSourcename</varname>
+ij.dataSource.databaseName=<varname>databasename</varname>
+[ij.dataSource.createDatabase=create]</codeblock></refsyn>
+<example><title>Example</title> 
+<p>In the following example, <codeph>ij</codeph> connects to a database
named 
+<codeph>sample</codeph> using an <codeph>EmbeddedDataSource</codeph>.
The 
+<codeph>sample</codeph> database is created if it does not already exist.
+</p>
+<codeblock>
+<varname>#
 # If your application runs on JDK 1.6 or higher, then you should
 # specify the JDBC4 variant of this DataSource:
 # org.apache.derby.jdbc.EmbeddedDataSource40.
-#</i>
+#</varname><b>
 java -Dij.dataSource=org.apache.derby.jdbc.EmbeddedDataSource
 -Dij.dataSource.databaseName=sample -Dij.dataSource.createDatabase=create
   org.apache.derby.tools.ij</b>
 ij version 10.2
 CONNECTION0*
-* = current connection</codeblock> </example>
+* = current connection
+ij> </codeblock> </example>
 <section>For more information about DataSources, refer to the JDBC documentation
 and "Using <ph conref="toolsconrefs.dita#prod/productshortname"></ph> as a
 J2EE Resource Manager" in the <cite><ph conref="toolsconrefs.dita#pub/citdevelop"></ph></cite>.</section>



Mime
View raw message