Plan/all/com/djrapitops/plan/db/SQLiteDB.html
2019-08-21 12:10:29 +03:00

451 lines
20 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fi">
<head>
<!-- Generated by javadoc (1.8.0_201) on Wed Aug 21 12:09:06 EEST 2019 -->
<title>SQLiteDB (Plan 4.9.4 API)</title>
<meta name="date" content="2019-08-21">
<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="SQLiteDB (Plan 4.9.4 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":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="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="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/djrapitops/plan/db/SQLiteDB.Factory.html" title="class in com.djrapitops.plan.db"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/djrapitops/plan/db/SQLiteDB.html" target="_top">Frames</a></li>
<li><a href="SQLiteDB.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><a href="#fields.inherited.from.class.com.djrapitops.plan.db.SQLDB">Field</a>&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 name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.djrapitops.plan.db</div>
<h2 title="Class SQLiteDB" class="title">Class SQLiteDB</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../com/djrapitops/plan/db/AbstractDatabase.html" title="class in com.djrapitops.plan.db">com.djrapitops.plan.db.AbstractDatabase</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">com.djrapitops.plan.db.SQLDB</a></li>
<li>
<ul class="inheritance">
<li>com.djrapitops.plan.db.SQLiteDB</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../com/djrapitops/plan/db/Database.html" title="interface in com.djrapitops.plan.db">Database</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">SQLiteDB</span>
extends <a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></pre>
</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>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.Factory.html" title="class in com.djrapitops.plan.db">SQLiteDB.Factory</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.djrapitops.plan.db.Database">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;com.djrapitops.plan.db.<a href="../../../../com/djrapitops/plan/db/Database.html" title="interface in com.djrapitops.plan.db">Database</a></h3>
<code><a href="../../../../com/djrapitops/plan/db/Database.State.html" title="enum in com.djrapitops.plan.db">Database.State</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.djrapitops.plan.db.SQLDB">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;com.djrapitops.plan.db.<a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></h3>
<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#config">config</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#errorHandler">errorHandler</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#locale">locale</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#logger">logger</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#networkContainerFactory">networkContainerFactory</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#runnableFactory">runnableFactory</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.djrapitops.plan.db.AbstractDatabase">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;com.djrapitops.plan.db.<a href="../../../../com/djrapitops/plan/db/AbstractDatabase.html" title="class in com.djrapitops.plan.db">AbstractDatabase</a></h3>
<code><a href="../../../../com/djrapitops/plan/db/AbstractDatabase.html#accessLock">accessLock</a></code></li>
</ul>
</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>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#close--">close</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;o)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.sql.Connection</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#getConnection--">getConnection</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.sql.Connection</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#getNewConnection-java.io.File-">getNewConnection</a></span>(java.io.File&nbsp;dbFile)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../com/djrapitops/plan/db/DBType.html" title="enum in com.djrapitops.plan.db">DBType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#getType--">getType</a></span>()</code>
<div class="block">Used to get the <code>DBType</code> of the Database</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#returnToPool-java.sql.Connection-">returnToPool</a></span>(java.sql.Connection&nbsp;connection)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/djrapitops/plan/db/SQLiteDB.html#setupDataSource--">setupDataSource</a></span>()</code>
<div class="block">Set up the source for connections.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.djrapitops.plan.db.SQLDB">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.djrapitops.plan.db.<a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></h3>
<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#executeTransaction-com.djrapitops.plan.db.access.transactions.Transaction-">executeTransaction</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#getNetworkContainerFactory--">getNetworkContainerFactory</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#getServerUUIDSupplier--">getServerUUIDSupplier</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#init--">init</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#query-com.djrapitops.plan.db.access.Query-">query</a>, <a href="../../../../com/djrapitops/plan/db/SQLDB.html#setTransactionExecutorServiceProvider-java.util.function.Supplier-">setTransactionExecutorServiceProvider</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.djrapitops.plan.db.AbstractDatabase">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.djrapitops.plan.db.<a href="../../../../com/djrapitops/plan/db/AbstractDatabase.html" title="class in com.djrapitops.plan.db">AbstractDatabase</a></h3>
<code><a href="../../../../com/djrapitops/plan/db/AbstractDatabase.html#getState--">getState</a>, <a href="../../../../com/djrapitops/plan/db/AbstractDatabase.html#setState-com.djrapitops.plan.db.Database.State-">setState</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setupDataSource--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setupDataSource</h4>
<pre>public&nbsp;void&nbsp;setupDataSource()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#setupDataSource--">SQLDB</a></code></span></div>
<div class="block">Set up the source for connections.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#setupDataSource--">setupDataSource</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></code></dd>
</dl>
</li>
</ul>
<a name="getNewConnection-java.io.File-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNewConnection</h4>
<pre>public&nbsp;java.sql.Connection&nbsp;getNewConnection(java.io.File&nbsp;dbFile)
throws java.sql.SQLException</pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a name="getType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getType</h4>
<pre>public&nbsp;<a href="../../../../com/djrapitops/plan/db/DBType.html" title="enum in com.djrapitops.plan.db">DBType</a>&nbsp;getType()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../com/djrapitops/plan/db/Database.html#getType--">Database</a></code></span></div>
<div class="block">Used to get the <code>DBType</code> of the Database</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>DBType</code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/djrapitops/plan/db/DBType.html" title="enum in com.djrapitops.plan.db"><code>DBType</code></a></dd>
</dl>
</li>
</ul>
<a name="getConnection--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConnection</h4>
<pre>public&nbsp;java.sql.Connection&nbsp;getConnection()
throws java.sql.SQLException</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#getConnection--">getConnection</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;close()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/Database.html#close--">close</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/djrapitops/plan/db/Database.html" title="interface in com.djrapitops.plan.db">Database</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#close--">close</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></code></dd>
</dl>
</li>
</ul>
<a name="returnToPool-java.sql.Connection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>returnToPool</h4>
<pre>public&nbsp;void&nbsp;returnToPool(java.sql.Connection&nbsp;connection)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#returnToPool-java.sql.Connection-">returnToPool</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;o)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#equals-java.lang.Object-">equals</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</a></code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../com/djrapitops/plan/db/SQLDB.html#hashCode--">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db">SQLDB</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="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="../../../../com/djrapitops/plan/db/SQLDB.html" title="class in com.djrapitops.plan.db"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/djrapitops/plan/db/SQLiteDB.Factory.html" title="class in com.djrapitops.plan.db"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/djrapitops/plan/db/SQLiteDB.html" target="_top">Frames</a></li>
<li><a href="SQLiteDB.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><a href="#fields.inherited.from.class.com.djrapitops.plan.db.SQLDB">Field</a>&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 name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>