Dbscr-connection.html Sample

This topic inludes the source code for the Dbscr-connection.html Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/ExtensionDevKit/ControlDevKit/DBScripter/docs/help/doc/en/partners/DBScripter/javadoc-tag/jc/

Sample Source Code

<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html><!-- InstanceBegin template="/Templates/Tag.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>@jc:dbscr-connection Annotation</title>
<!-- InstanceEndEditable --> 

<!--(Meta)==========================================================-->
<meta http-equiv=Content-Type content="text/html; charset=$CHARSET;">
<meta name=workshop content=WWKSHOP>
<!-- InstanceBeginEditable name="metatags" -->
<!-- In the component metatag, please indicate whether this topic is for Integration, Workshop, or Portal. -->
<meta name="component" content>
<!-- In the description metatag, please provide a BRIEF description of the topic contents. -->
<meta name="description" content>
<!-- In the component metatag, please list keywords that will help a user search for this topic. -->
<meta name="keywords" content>

<!-- InstanceEndEditable -->

<!--(Links)=========================================================-->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="../../../../workshop.css" rel="stylesheet" type="text/css">
<a href="../../../../core/index.html" id="index"></a>
<script language="JavaScript" src="../../../../core/topicInfo.js"></script>
<script language="JavaScript" src="../../../../core/CookieClass.js"></script>
<script language="JavaScript" src="../../../../core/displayContent.js"></script>
</head>

<!--(Body)==========================================================-->
<body>
<script language="JavaScript">
displayInFrames();
</script>
<!-- InstanceBeginEditable name="body" --> 
<div id="topictitle">
  <h1 class="Title">@jc:dbscr-connection Annotation</h1>
</div>
<div id="topictext">
  <p>Specifies the database connection parameters for a DBScriptRunner control.</p>
  <h2>Syntax</h2>
  <p class="syntax">@jc:dbscr-connection</p>
  <p class="syntaxindent">data-source-jndi-name=&quot;<span class="syntaxpartname">&lt;jndi-name&gt;</span>&quot;</p>
  <p class="syntaxindent">batch-size=&quot;<span class="syntaxpartname">&lt;int&gt;</span>&quot;</p>
  <h2>Attributes</h2>
  <p class="attribute"><a name="data-source-jndi-name"></a>data-source-jndi-name</p>
  <p class="partdesc">Specifies the JNDI name of the datasource to be used by this DBScriptRunner control.</p>
  <p class="partdesc">Default: <span class="langinline">none</span>.</p>
  <p class="attribute"><a name="batch-size"></a>batch-size</p>
  <p class="partdesc">The number of INSERT statements the control will batch in one SQL command execution (if the driver reports that it supports batches).</p>
  <p class="partdesc">Default: <span class="langinline">1</span>.</p>
  <h2>Remarks</h2>
  <p>The following rules apply to this annotation's use:</p>
</div>
<ul>
  <li>
    <div>
      A single <span class="langinline">@jc:dbscr-connection</span> annotation may
      appear within a single Javadoc comment block.
    </div>
  </li>
  <li>
    <div>
      Required in front of the interface in a DBScriptRunner control JCX file.
    </div>
  </li>
</ul>
<div>
  <!-- class=content -->
  <p class="relatedtopics">Related Topics</p>
  <p><a href="../../navDBScriptRunner.html">DBScriptRunner Control</a></p>
  <p><a href="dbscript.html">@jc:dbscript Annotation</a></p>
  <!-- class=content -->
</div>
<!-- InstanceEndEditable -->
<script language="JavaScript">
writeTopicInfo();
</script>
</body>
<!-- InstanceEnd --></html>