blob: 6081458572e19deb92043384fd184f8a0b41f0df [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>AvaticaUtils (Apache Calcite Avatica API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AvaticaUtils (Apache Calcite Avatica API)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AvaticaUtils.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" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.avatica</a></div>
<h2 title="Class AvaticaUtils" class="title">Class AvaticaUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.avatica.AvaticaUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">AvaticaUtils</span>
extends java.lang.Object</pre>
<div class="block">Avatica utilities.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static 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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static java.lang.Class</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#box(java.lang.Class)">box</a></span>&#8203;(java.lang.Class&nbsp;clazz)</code></th>
<td class="colLast">
<div class="block">Returns the boxed class.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#camelToUpper(java.lang.String)">camelToUpper</a></span>&#8203;(java.lang.String&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Converts a camelCase name into an upper-case underscore-separated name.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#discard(java.lang.Object)">discard</a></span>&#8203;(java.lang.Object&nbsp;o)</code></th>
<td class="colLast">
<div class="block">Does nothing with its argument.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static long[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#executeLargeBatch(java.sql.Statement)">executeLargeBatch</a></span>&#8203;(java.sql.Statement&nbsp;statement)</code></th>
<td class="colLast">
<div class="block">Invokes <code>Statement#executeLargeBatch</code>, falling back on
<code>Statement.executeBatch()</code> if the method does not exist
(before JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLargeMaxRows(java.sql.Statement)">getLargeMaxRows</a></span>&#8203;(java.sql.Statement&nbsp;statement)</code></th>
<td class="colLast">
<div class="block">Invokes <code>Statement#getLargeMaxRows</code>, falling back on
<code>Statement.getMaxRows()</code> if the method does not exist (before
JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLargeUpdateCount(java.sql.Statement)">getLargeUpdateCount</a></span>&#8203;(java.sql.Statement&nbsp;statement)</code></th>
<td class="colLast">
<div class="block">Invokes <code>Statement#getLargeUpdateCount</code>, falling back on
<code>Statement.getUpdateCount()</code> if the method does not exist (before
JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#instantiatePlugin(java.lang.Class,java.lang.String)">instantiatePlugin</a></span>&#8203;(java.lang.Class&lt;T&gt;&nbsp;pluginClass,
java.lang.String&nbsp;className)</code></th>
<td class="colLast">
<div class="block">Creates an instance of a plugin class.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.util.List&lt;?&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#primitiveList(java.lang.Object)">primitiveList</a></span>&#8203;(java.lang.Object&nbsp;array)</code></th>
<td class="colLast">
<div class="block">Adapts a primitive array into a <code>List</code>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readFully(java.io.InputStream)">readFully</a></span>&#8203;(java.io.InputStream&nbsp;inputStream)</code></th>
<td class="colLast">
<div class="block">Reads the contents of an input stream and returns as a string.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readFully(java.io.InputStream,org.apache.calcite.avatica.util.UnsynchronizedBuffer)">readFully</a></span>&#8203;(java.io.InputStream&nbsp;inputStream,
<a href="util/UnsynchronizedBuffer.html" title="class in org.apache.calcite.avatica.util">UnsynchronizedBuffer</a>&nbsp;buffer)</code></th>
<td class="colLast">
<div class="block">Reads the contents of an input stream and returns as a string.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readFullyToBytes(java.io.InputStream)">readFullyToBytes</a></span>&#8203;(java.io.InputStream&nbsp;inputStream)</code></th>
<td class="colLast">
<div class="block">Reads the contents of an input stream and returns as a string.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readFullyToBytes(java.io.InputStream,org.apache.calcite.avatica.util.UnsynchronizedBuffer)">readFullyToBytes</a></span>&#8203;(java.io.InputStream&nbsp;inputStream,
<a href="util/UnsynchronizedBuffer.html" title="class in org.apache.calcite.avatica.util">UnsynchronizedBuffer</a>&nbsp;buffer)</code></th>
<td class="colLast">
<div class="block">Reads the contents of an input stream and returns as a string.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#remark(T)">remark</a></span>&#8203;(T&nbsp;remark)</code></th>
<td class="colLast">
<div class="block">Use this method to flag temporary code.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLargeMaxRows(java.sql.Statement,long)">setLargeMaxRows</a></span>&#8203;(java.sql.Statement&nbsp;statement,
long&nbsp;n)</code></th>
<td class="colLast">
<div class="block">Invokes <code>Statement#setLargeMaxRows</code>, falling back on
<code>Statement.setMaxRows(int)</code> if the method does not exist (before
JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toCamelCase(java.lang.String)">toCamelCase</a></span>&#8203;(java.lang.String&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Converts an underscore-separated name into a camelCase name.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static long[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLongs(int%5B%5D)">toLongs</a></span>&#8203;(int[]&nbsp;ints)</code></th>
<td class="colLast">
<div class="block">Converts an array of <code>int</code> values to an array of <code>long</code>
values.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSaturatedInt(long)">toSaturatedInt</a></span>&#8203;(long&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Converts a <code>long</code> to <code>int</code>, rounding as little as possible
if the value is outside the legal range for an <code>int</code>.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toSaturatedInts(long%5B%5D)">toSaturatedInts</a></span>&#8203;(long[]&nbsp;longs)</code></th>
<td class="colLast">
<div class="block">Converts an array of <code>long</code> values to an array of <code>int</code>
values, truncating values outside the legal range for an <code>int</code>
to <code>Integer.MIN_VALUE</code> or <code>Integer.MAX_VALUE</code>.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unique(java.lang.String)">unique</a></span>&#8203;(java.lang.String&nbsp;base)</code></th>
<td class="colLast">
<div class="block">Generates a string that is unique in the execution of the JVM.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#upgrade(java.lang.String)">upgrade</a></span>&#8203;(java.lang.String&nbsp;remark)</code></th>
<td class="colLast">
<div class="block">Use this method to flag code that should be re-visited after upgrading
a component.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="discard(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>discard</h4>
<pre class="methodSignature">public static&nbsp;void&nbsp;discard&#8203;(java.lang.Object&nbsp;o)</pre>
<div class="block">Does nothing with its argument. Call this method when you have a value
you are not interested in, but you don't want the compiler to warn that
you are not using it.</div>
</li>
</ul>
<a id="remark(java.lang.Object)">
<!-- -->
</a><a id="remark(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remark</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;T&nbsp;remark&#8203;(T&nbsp;remark)</pre>
<div class="block">Use this method to flag temporary code.
<p>Example #1:
<blockquote><pre>
if (AvaticaUtils.remark("baz fixed") == null) {
baz();
}</pre></blockquote>
<p>Example #2:
<blockquote><pre>
/&#42;&#42; &#64;see AvaticaUtils#remark Remove before checking in &#42;/
void uselessMethod() {}
</pre></blockquote></div>
</li>
</ul>
<a id="upgrade(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>upgrade</h4>
<pre class="methodSignature">public static&nbsp;boolean&nbsp;upgrade&#8203;(java.lang.String&nbsp;remark)</pre>
<div class="block">Use this method to flag code that should be re-visited after upgrading
a component.
<p>If the intended change is that a class or member be removed, flag
instead using a <code>Deprecated</code> annotation followed by a comment such as
"to be removed before 2.0".</div>
</li>
</ul>
<a id="primitiveList(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>primitiveList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;?&gt;&nbsp;primitiveList&#8203;(java.lang.Object&nbsp;array)</pre>
<div class="block">Adapts a primitive array into a <code>List</code>. For example,
<code>asList(new double[2])</code> returns a <code>List&amp;lt;Double&amp;gt;</code>.</div>
</li>
</ul>
<a id="camelToUpper(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>camelToUpper</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;camelToUpper&#8203;(java.lang.String&nbsp;name)</pre>
<div class="block">Converts a camelCase name into an upper-case underscore-separated name.
For example, <code>camelToUpper("myJdbcDriver")</code> returns
"MY_JDBC_DRIVER".</div>
</li>
</ul>
<a id="toCamelCase(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toCamelCase</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;toCamelCase&#8203;(java.lang.String&nbsp;name)</pre>
<div class="block">Converts an underscore-separated name into a camelCase name.
For example, <code>uncamel("MY_JDBC_DRIVER")</code> returns "myJdbcDriver".</div>
</li>
</ul>
<a id="box(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>box</h4>
<pre class="methodSignature">public static&nbsp;java.lang.Class&nbsp;box&#8203;(java.lang.Class&nbsp;clazz)</pre>
<div class="block">Returns the boxed class. For example, <code>box(int.class)</code>
returns <code>java.lang.Integer</code>.</div>
</li>
</ul>
<a id="instantiatePlugin(java.lang.Class,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>instantiatePlugin</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;T&nbsp;instantiatePlugin&#8203;(java.lang.Class&lt;T&gt;&nbsp;pluginClass,
java.lang.String&nbsp;className)</pre>
<div class="block">Creates an instance of a plugin class. First looks for a static
member called INSTANCE, then calls a public default constructor.
<p>If className contains a "#" instead looks for a static field.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - Class</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pluginClass</code> - Class (or interface) to instantiate</dd>
<dd><code>className</code> - Name of implementing class</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Plugin instance</dd>
</dl>
</li>
</ul>
<a id="readFully(java.io.InputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFully</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;readFully&#8203;(java.io.InputStream&nbsp;inputStream)
throws java.io.IOException</pre>
<div class="block">Reads the contents of an input stream and returns as a string.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a id="readFully(java.io.InputStream,org.apache.calcite.avatica.util.UnsynchronizedBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFully</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;readFully&#8203;(java.io.InputStream&nbsp;inputStream,
<a href="util/UnsynchronizedBuffer.html" title="class in org.apache.calcite.avatica.util">UnsynchronizedBuffer</a>&nbsp;buffer)
throws java.io.IOException</pre>
<div class="block">Reads the contents of an input stream and returns as a string.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a id="readFullyToBytes(java.io.InputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFullyToBytes</h4>
<pre class="methodSignature">public static&nbsp;byte[]&nbsp;readFullyToBytes&#8203;(java.io.InputStream&nbsp;inputStream)
throws java.io.IOException</pre>
<div class="block">Reads the contents of an input stream and returns as a string.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a id="readFullyToBytes(java.io.InputStream,org.apache.calcite.avatica.util.UnsynchronizedBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFullyToBytes</h4>
<pre class="methodSignature">public static&nbsp;byte[]&nbsp;readFullyToBytes&#8203;(java.io.InputStream&nbsp;inputStream,
<a href="util/UnsynchronizedBuffer.html" title="class in org.apache.calcite.avatica.util">UnsynchronizedBuffer</a>&nbsp;buffer)
throws java.io.IOException</pre>
<div class="block">Reads the contents of an input stream and returns as a string.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a id="setLargeMaxRows(java.sql.Statement,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLargeMaxRows</h4>
<pre class="methodSignature">public static&nbsp;void&nbsp;setLargeMaxRows&#8203;(java.sql.Statement&nbsp;statement,
long&nbsp;n)
throws java.sql.SQLException</pre>
<div class="block">Invokes <code>Statement#setLargeMaxRows</code>, falling back on
<code>Statement.setMaxRows(int)</code> if the method does not exist (before
JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a id="getLargeMaxRows(java.sql.Statement)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLargeMaxRows</h4>
<pre class="methodSignature">public static&nbsp;long&nbsp;getLargeMaxRows&#8203;(java.sql.Statement&nbsp;statement)
throws java.sql.SQLException</pre>
<div class="block">Invokes <code>Statement#getLargeMaxRows</code>, falling back on
<code>Statement.getMaxRows()</code> if the method does not exist (before
JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a id="getLargeUpdateCount(java.sql.Statement)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLargeUpdateCount</h4>
<pre class="methodSignature">public static&nbsp;long&nbsp;getLargeUpdateCount&#8203;(java.sql.Statement&nbsp;statement)
throws java.sql.SQLException</pre>
<div class="block">Invokes <code>Statement#getLargeUpdateCount</code>, falling back on
<code>Statement.getUpdateCount()</code> if the method does not exist (before
JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a id="executeLargeBatch(java.sql.Statement)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>executeLargeBatch</h4>
<pre class="methodSignature">public static&nbsp;long[]&nbsp;executeLargeBatch&#8203;(java.sql.Statement&nbsp;statement)
throws java.sql.SQLException</pre>
<div class="block">Invokes <code>Statement#executeLargeBatch</code>, falling back on
<code>Statement.executeBatch()</code> if the method does not exist
(before JDK 1.8) or throws <code>UnsupportedOperationException</code>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a id="unique(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unique</h4>
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;unique&#8203;(java.lang.String&nbsp;base)</pre>
<div class="block">Generates a string that is unique in the execution of the JVM.
It is used by tests to ensure that they create distinct temporary tables.
The strings are never thrown away, so don't put too much in there!
Thread safe.</div>
</li>
</ul>
<a id="toSaturatedInt(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toSaturatedInt</h4>
<pre class="methodSignature">public static&nbsp;int&nbsp;toSaturatedInt&#8203;(long&nbsp;value)</pre>
<div class="block">Converts a <code>long</code> to <code>int</code>, rounding as little as possible
if the value is outside the legal range for an <code>int</code>.</div>
</li>
</ul>
<a id="toSaturatedInts(long[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toSaturatedInts</h4>
<pre class="methodSignature">public static&nbsp;int[]&nbsp;toSaturatedInts&#8203;(long[]&nbsp;longs)</pre>
<div class="block">Converts an array of <code>long</code> values to an array of <code>int</code>
values, truncating values outside the legal range for an <code>int</code>
to <code>Integer.MIN_VALUE</code> or <code>Integer.MAX_VALUE</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>longs</code> - An array of <code>long</code>s</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An array of <code>int</code>s</dd>
</dl>
</li>
</ul>
<a id="toLongs(int[])">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toLongs</h4>
<pre class="methodSignature">public static&nbsp;long[]&nbsp;toLongs&#8203;(int[]&nbsp;ints)</pre>
<div class="block">Converts an array of <code>int</code> values to an array of <code>long</code>
values.</div>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AvaticaUtils.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" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2019 <a href="https://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>