blob: c1c487bf9583405bf41a662af21cecc03afc8876 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="it">
<head>
<!-- Generated by javadoc (1.8.0_171) on Thu Jun 14 10:06:04 CEST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LoggingConnectionDecorator (OpenJPA Parent POM 3.0.0 API)</title>
<meta name="date" content="2018-06-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="LoggingConnectionDecorator (OpenJPA Parent POM 3.0.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LoggingConnectionDecorator.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/openjpa/lib/jdbc/JDBCListener.html" title="interface in org.apache.openjpa.lib.jdbc"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.LoggingConnection.html" title="class in org.apache.openjpa.lib.jdbc"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html" target="_top">Frames</a></li>
<li><a href="LoggingConnectionDecorator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.openjpa.lib.jdbc</div>
<h2 title="Class LoggingConnectionDecorator" class="title">Class LoggingConnectionDecorator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/openjpa/lib/jdbc/ConnectionDecorator.html" title="interface in org.apache.openjpa.lib.jdbc">ConnectionDecorator</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">LoggingConnectionDecorator</span>
extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../org/apache/openjpa/lib/jdbc/ConnectionDecorator.html" title="interface in org.apache.openjpa.lib.jdbc">ConnectionDecorator</a></pre>
<div class="block">A <a href="../../../../../org/apache/openjpa/lib/jdbc/ConnectionDecorator.html" title="interface in org.apache.openjpa.lib.jdbc"><code>ConnectionDecorator</code></a> that creates logging connections and
<a href="../../../../../org/apache/openjpa/lib/jdbc/ReportingSQLException.html" title="class in org.apache.openjpa.lib.jdbc"><code>ReportingSQLException</code></a>s.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Marc Prud'hommeaux</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.LoggingConnection.html" title="class in org.apache.openjpa.lib.jdbc">LoggingConnectionDecorator.LoggingConnection</a></span></code>
<div class="block">Logging connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.SQLWarningHandler.html" title="interface in org.apache.openjpa.lib.jdbc">LoggingConnectionDecorator.SQLWarningHandler</a></span></code>
<div class="block">Interface that allows customization of what to do when
<a href="http://docs.oracle.com/javase/8/docs/api/java/sql/SQLWarning.html?is-external=true" title="class or interface in java.sql"><code>SQLWarning</code></a>s occur.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#LoggingConnectionDecorator--">LoggingConnectionDecorator</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#decorate-java.sql.Connection-">decorate</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a>&nbsp;conn)</code>
<div class="block">Decorate the given connection if desired.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/openjpa/lib/jdbc/DataSourceLogs.html" title="class in org.apache.openjpa.lib.jdbc">DataSourceLogs</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#getLogs--">getLogs</a></span>()</code>
<div class="block">The log to write to.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#getPrettyPrint--">getPrettyPrint</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#getPrettyPrintLineLength--">getPrettyPrintLineLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#getPrintParameters--">getPrintParameters</a></span>()</code>
<div class="block">
Whether parameter values will be printed in exception messages or in trace.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#getWarningAction--">getWarningAction</a></span>()</code>
<div class="block">What to do with SQL warnings.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.SQLWarningHandler.html" title="interface in org.apache.openjpa.lib.jdbc">LoggingConnectionDecorator.SQLWarningHandler</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#getWarningHandler--">getWarningHandler</a></span>()</code>
<div class="block">What to do with SQL warnings.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setPrettyPrint-boolean-">setPrettyPrint</a></span>(boolean&nbsp;prettyPrint)</code>
<div class="block">If set to <code>true</code>, pretty-print SQL by running it
through <a href="../../../../../org/apache/openjpa/lib/jdbc/SQLFormatter.html#prettyPrint-java.lang.Object-"><code>SQLFormatter.prettyPrint(java.lang.Object)</code></a>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setPrettyPrintLineLength-int-">setPrettyPrintLineLength</a></span>(int&nbsp;length)</code>
<div class="block">The number of characters to print per line when
pretty-printing of SQL is enabled.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setPrintParameters-boolean-">setPrintParameters</a></span>(boolean&nbsp;printParameters)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setWarningAction-java.lang.String-">setWarningAction</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;warningAction)</code>
<div class="block">What to do with SQL warnings.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setWarningHandler-org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.SQLWarningHandler-">setWarningHandler</a></span>(<a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.SQLWarningHandler.html" title="interface in org.apache.openjpa.lib.jdbc">LoggingConnectionDecorator.SQLWarningHandler</a>&nbsp;warningHandler)</code>
<div class="block">What to do with SQL warnings.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="LoggingConnectionDecorator--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LoggingConnectionDecorator</h4>
<pre>public&nbsp;LoggingConnectionDecorator()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setPrettyPrint-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPrettyPrint</h4>
<pre>public&nbsp;void&nbsp;setPrettyPrint(boolean&nbsp;prettyPrint)</pre>
<div class="block">If set to <code>true</code>, pretty-print SQL by running it
through <a href="../../../../../org/apache/openjpa/lib/jdbc/SQLFormatter.html#prettyPrint-java.lang.Object-"><code>SQLFormatter.prettyPrint(java.lang.Object)</code></a>. If
<code>false</code>, don't pretty-print, and output SQL logs in
a single line. Pretty-printed SQL can be easier for a human to
read, but is harder to parse with tools like grep.</div>
</li>
</ul>
<a name="getPrettyPrint--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrettyPrint</h4>
<pre>public&nbsp;boolean&nbsp;getPrettyPrint()</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setPrettyPrint-boolean-"><code>setPrettyPrint(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="setPrettyPrintLineLength-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPrettyPrintLineLength</h4>
<pre>public&nbsp;void&nbsp;setPrettyPrintLineLength(int&nbsp;length)</pre>
<div class="block">The number of characters to print per line when
pretty-printing of SQL is enabled. Defaults to 60 to provide
some space for any ant-related characters on the left of a
standard 80-character display.</div>
</li>
</ul>
<a name="getPrettyPrintLineLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrettyPrintLineLength</h4>
<pre>public&nbsp;int&nbsp;getPrettyPrintLineLength()</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html#setPrettyPrintLineLength-int-"><code>setPrettyPrintLineLength(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPrintParameters--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrintParameters</h4>
<pre>public&nbsp;boolean&nbsp;getPrintParameters()</pre>
<div class="block"><p>
Whether parameter values will be printed in exception messages or in trace. This is different from
trackParameters which controls whether OpenJPA will track parameters internally (visible while debugging and used
in batching).
</p></div>
</li>
</ul>
<a name="setPrintParameters-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPrintParameters</h4>
<pre>public&nbsp;void&nbsp;setPrintParameters(boolean&nbsp;printParameters)</pre>
</li>
</ul>
<a name="setWarningAction-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWarningAction</h4>
<pre>public&nbsp;void&nbsp;setWarningAction(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;warningAction)</pre>
<div class="block">What to do with SQL warnings.</div>
</li>
</ul>
<a name="getWarningAction--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWarningAction</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getWarningAction()</pre>
<div class="block">What to do with SQL warnings.</div>
</li>
</ul>
<a name="setWarningHandler-org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.SQLWarningHandler-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWarningHandler</h4>
<pre>public&nbsp;void&nbsp;setWarningHandler(<a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.SQLWarningHandler.html" title="interface in org.apache.openjpa.lib.jdbc">LoggingConnectionDecorator.SQLWarningHandler</a>&nbsp;warningHandler)</pre>
<div class="block">What to do with SQL warnings.</div>
</li>
</ul>
<a name="getWarningHandler--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWarningHandler</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.SQLWarningHandler.html" title="interface in org.apache.openjpa.lib.jdbc">LoggingConnectionDecorator.SQLWarningHandler</a>&nbsp;getWarningHandler()</pre>
<div class="block">What to do with SQL warnings.</div>
</li>
</ul>
<a name="getLogs--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogs</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/openjpa/lib/jdbc/DataSourceLogs.html" title="class in org.apache.openjpa.lib.jdbc">DataSourceLogs</a>&nbsp;getLogs()</pre>
<div class="block">The log to write to.</div>
</li>
</ul>
<a name="decorate-java.sql.Connection-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>decorate</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a>&nbsp;decorate(<a href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a>&nbsp;conn)
throws <a href="http://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/openjpa/lib/jdbc/ConnectionDecorator.html#decorate-java.sql.Connection-">ConnectionDecorator</a></code></span></div>
<div class="block">Decorate the given connection if desired.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/openjpa/lib/jdbc/ConnectionDecorator.html#decorate-java.sql.Connection-">decorate</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/openjpa/lib/jdbc/ConnectionDecorator.html" title="interface in org.apache.openjpa.lib.jdbc">ConnectionDecorator</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LoggingConnectionDecorator.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/openjpa/lib/jdbc/JDBCListener.html" title="interface in org.apache.openjpa.lib.jdbc"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.LoggingConnection.html" title="class in org.apache.openjpa.lib.jdbc"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.html" target="_top">Frames</a></li>
<li><a href="LoggingConnectionDecorator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2006&#x2013;2018 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>