Plan/docs/main/java/com/djrapitops/plan/database/Database.html

1121 lines
56 KiB
HTML
Raw Normal View History

2017-05-14 14:19:16 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fi">
<head>
2017-10-02 20:52:53 +02:00
<!-- Generated by javadoc (1.8.0_112) on Mon Oct 02 21:49:46 EEST 2017 -->
2017-05-14 14:19:16 +02:00
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
2017-10-02 20:52:53 +02:00
<title>Database (Plan 4.0.0 API)</title>
<meta name="date" content="2017-10-02">
2017-05-14 14:19:16 +02:00
<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) {
2017-10-02 20:52:53 +02:00
parent.document.title="Database (Plan 4.0.0 API)";
2017-05-14 14:19:16 +02:00
}
}
catch(err) {
}
//-->
2017-10-02 20:52:53 +02:00
var methods = {"i0":6,"i1":6,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":6,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":6,"i19":10,"i20":10,"i21":10,"i22":6,"i23":10,"i24":6,"i25":6,"i26":6,"i27":6};
2017-05-14 14:19:16 +02:00
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/Database.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">
2017-10-02 20:52:53 +02:00
<li><a href="../../../../../../main/java/com/djrapitops/plan/database/Container.html" title="class in main.java.com.djrapitops.plan.database"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../main/java/com/djrapitops/plan/database/DBUtils.html" title="class in main.java.com.djrapitops.plan.database"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
2017-05-14 14:19:16 +02:00
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?main/java/com/djrapitops/plan/database/Database.html" target="_top">Frames</a></li>
<li><a href="Database.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>Nested&nbsp;|&nbsp;</li>
2017-10-02 20:52:53 +02:00
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
2017-05-14 14:19:16 +02:00
<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>
2017-10-02 20:52:53 +02:00
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
2017-05-14 14:19:16 +02:00
<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">main.java.com.djrapitops.plan.database</div>
<h2 title="Class Database" class="title">Class Database</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>main.java.com.djrapitops.plan.database.Database</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../../main/java/com/djrapitops/plan/database/databases/SQLDB.html" title="class in main.java.com.djrapitops.plan.database.databases">SQLDB</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">Database</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></pre>
2017-10-02 20:52:53 +02:00
<div class="block">Abstract class representing a Database.
<p>
All methods should be only called from an asynchronous thread, unless stated
otherwise.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Rsl1122</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ActionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ActionsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#actionsTable">actionsTable</a></span></code>
<div class="block">Table representing plan_actions in the database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/CommandUseTable.html" title="class in main.java.com.djrapitops.plan.database.tables">CommandUseTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#commandUseTable">commandUseTable</a></span></code>
<div class="block">Table representing plan_commandusages in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected org.apache.commons.dbcp2.BasicDataSource</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#dataSource">dataSource</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/IPsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">IPsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#ipsTable">ipsTable</a></span></code>
<div class="block">Table representing plan_ips in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/KillsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">KillsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#killsTable">killsTable</a></span></code>
<div class="block">Table representing plan_kills in the database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/NicknamesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">NicknamesTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#nicknamesTable">nicknamesTable</a></span></code>
<div class="block">Table representing plan_nicknames in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/api/IPlan.html" title="interface in main.java.com.djrapitops.plan.api">IPlan</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#plugin">plugin</a></span></code>
<div class="block">Instance of Plan used with this database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SecurityTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SecurityTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#securityTable">securityTable</a></span></code>
<div class="block">Table representing plan_security in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ServerTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ServerTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#serverTable">serverTable</a></span></code>
<div class="block">Table representing plan_servers in the database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SessionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SessionsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#sessionsTable">sessionsTable</a></span></code>
<div class="block">Table representing plan_sessions in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/TPSTable.html" title="class in main.java.com.djrapitops.plan.database.tables">TPSTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#tpsTable">tpsTable</a></span></code>
<div class="block">Table representing plan_tps in the database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UserInfoTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UserInfoTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#userInfoTable">userInfoTable</a></span></code>
<div class="block">Table representing plan_user_info in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UsersTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UsersTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#usersTable">usersTable</a></span></code>
<div class="block">Table representing plan_users in the database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/VersionTable.html" title="class in main.java.com.djrapitops.plan.database.tables">VersionTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#versionTable">versionTable</a></span></code>
<div class="block">Table representing plan_version in the database.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#worldTable">worldTable</a></span></code>
<div class="block">Table representing plan_worlds in the database.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTimesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTimesTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#worldTimesTable">worldTimesTable</a></span></code>
<div class="block">Table representing plan_world_times in the database.</div>
</td>
</tr>
</table>
</li>
</ul>
2017-05-14 14:19:16 +02:00
<!-- ======== 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">
2017-10-02 20:52:53 +02:00
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#Database-main.java.com.djrapitops.plan.api.IPlan-">Database</a></span>(<a href="../../../../../../main/java/com/djrapitops/plan/api/IPlan.html" title="interface in main.java.com.djrapitops.plan.api">IPlan</a>&nbsp;plugin)</code>
2017-05-14 14:19:16 +02:00
<div class="block">Super constructor.</div>
</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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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>abstract void</code></td>
2017-10-02 20:52:53 +02:00
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#close--">close</a></span>()</code>
<div class="block">Closes the database and it's resources.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
2017-10-02 20:52:53 +02:00
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#commit-java.sql.Connection-">commit</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;connection)</code>&nbsp;</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i2" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ActionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ActionsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getActionsTable--">getActionsTable</a></span>()</code>&nbsp;</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i3" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getCommandUse--">getCommandUse</a></span>()</code>
<div class="block">Used to get the Command usage mep.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i4" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/CommandUseTable.html" title="class in main.java.com.djrapitops.plan.database.tables">CommandUseTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getCommandUseTable--">getCommandUseTable</a></span>()</code>
<div class="block">Used to get the command usage table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i5" class="rowColor">
2017-10-02 20:52:53 +02:00
<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="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getConfigName--">getConfigName</a></span>()</code>
<div class="block">Used to get the config name of the database type.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i6" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code>org.apache.commons.dbcp2.BasicDataSource</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getDataSource--">getDataSource</a></span>()</code>&nbsp;</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i7" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/IPsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">IPsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getIpsTable--">getIpsTable</a></span>()</code>
<div class="block">Used to get the ips table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i8" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/KillsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">KillsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getKillsTable--">getKillsTable</a></span>()</code>
<div class="block">Used to get the kills table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i9" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code>abstract <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="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getName--">getName</a></span>()</code>
<div class="block">Used to get the name of the database type.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i10" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/NicknamesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">NicknamesTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getNicknamesTable--">getNicknamesTable</a></span>()</code>
<div class="block">Used to get the nicknames table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i11" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getSavedUUIDs--">getSavedUUIDs</a></span>()</code>
<div class="block">Used to fetch the saved UUIDs in the users table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i12" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SecurityTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SecurityTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getSecurityTable--">getSecurityTable</a></span>()</code>
<div class="block">Used to get the security table.</div>
2017-05-14 14:19:16 +02:00
</td>
</tr>
<tr id="i13" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ServerTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ServerTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getServerTable--">getServerTable</a></span>()</code>&nbsp;</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i14" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SessionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SessionsTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getSessionsTable--">getSessionsTable</a></span>()</code>
<div class="block">Used to get the users table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i15" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/TPSTable.html" title="class in main.java.com.djrapitops.plan.database.tables">TPSTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getTpsTable--">getTpsTable</a></span>()</code>
<div class="block">Used to get the tps table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i16" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UserInfoTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UserInfoTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getUserInfoTable--">getUserInfoTable</a></span>()</code>&nbsp;</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i17" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UsersTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UsersTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getUsersTable--">getUsersTable</a></span>()</code>
<div class="block">Used to get the users table.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i18" class="altColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getVersion--">getVersion</a></span>()</code>
<div class="block">Used to get the database schema version.</div>
</td>
2017-05-14 14:19:16 +02:00
</tr>
<tr id="i19" class="rowColor">
2017-10-02 20:52:53 +02:00
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getWorldTable--">getWorldTable</a></span>()</code>
<div class="block">Used to get the worlds table.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTimesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTimesTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#getWorldTimesTable--">getWorldTimesTable</a></span>()</code>
<div class="block">Used to get the world times table.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#init--">init</a></span>()</code>
<div class="block">Initiates the database.</div>
</td>
</tr>
<tr id="i22" class="altColor">
2017-05-14 14:19:16 +02:00
<td class="colFirst"><code>abstract boolean</code></td>
2017-10-02 20:52:53 +02:00
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#isNewDatabase--">isNewDatabase</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#isUsingMySQL--">isUsingMySQL</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#removeAccount-java.util.UUID-">removeAccount</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;uuid)</code>
<div class="block">Removes all data related to an account from the database.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#removeAllData--">removeAllData</a></span>()</code>
<div class="block">Used to clear all data from the database.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#setVersion-int-">setVersion</a></span>(int&nbsp;version)</code>
<div class="block">Used to set the database schema version.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../main/java/com/djrapitops/plan/database/Database.html#wasSeenBefore-java.util.UUID-">wasSeenBefore</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;uuid)</code>
<div class="block">Check if the user is saved in the database.</div>
</td>
2017-05-14 14:19:16 +02:00
</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">
2017-10-02 20:52:53 +02:00
<!-- ============ FIELD DETAIL =========== -->
2017-05-14 14:19:16 +02:00
<ul class="blockList">
2017-10-02 20:52:53 +02:00
<li class="blockList"><a name="field.detail">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
2017-10-02 20:52:53 +02:00
<h3>Field Detail</h3>
<a name="plugin">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
2017-10-02 20:52:53 +02:00
<ul class="blockList">
2017-05-14 14:19:16 +02:00
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>plugin</h4>
<pre>protected final&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/api/IPlan.html" title="interface in main.java.com.djrapitops.plan.api">IPlan</a> plugin</pre>
<div class="block">Instance of Plan used with this database.</div>
2017-05-14 14:19:16 +02:00
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="usersTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>usersTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UsersTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UsersTable</a> usersTable</pre>
<div class="block">Table representing plan_users in the database.</div>
2017-05-14 14:19:16 +02:00
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="userInfoTable">
<!-- -->
</a>
2017-05-14 14:19:16 +02:00
<ul class="blockList">
2017-10-02 20:52:53 +02:00
<li class="blockList">
<h4>userInfoTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UserInfoTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UserInfoTable</a> userInfoTable</pre>
<div class="block">Table representing plan_user_info in the database.</div>
</li>
</ul>
<a name="actionsTable">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
2017-10-02 20:52:53 +02:00
<ul class="blockList">
<li class="blockList">
<h4>actionsTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ActionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ActionsTable</a> actionsTable</pre>
<div class="block">Table representing plan_actions in the database.</div>
</li>
</ul>
<a name="killsTable">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>killsTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/KillsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">KillsTable</a> killsTable</pre>
<div class="block">Table representing plan_kills in the database.</div>
</li>
</ul>
<a name="nicknamesTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nicknamesTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/NicknamesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">NicknamesTable</a> nicknamesTable</pre>
<div class="block">Table representing plan_nicknames in the database.</div>
</li>
</ul>
<a name="sessionsTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sessionsTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SessionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SessionsTable</a> sessionsTable</pre>
<div class="block">Table representing plan_sessions in the database.</div>
</li>
</ul>
<a name="ipsTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ipsTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/IPsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">IPsTable</a> ipsTable</pre>
<div class="block">Table representing plan_ips in the database.</div>
</li>
</ul>
<a name="commandUseTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>commandUseTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/CommandUseTable.html" title="class in main.java.com.djrapitops.plan.database.tables">CommandUseTable</a> commandUseTable</pre>
<div class="block">Table representing plan_commandusages in the database.</div>
</li>
</ul>
<a name="tpsTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tpsTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/TPSTable.html" title="class in main.java.com.djrapitops.plan.database.tables">TPSTable</a> tpsTable</pre>
<div class="block">Table representing plan_tps in the database.</div>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.5.0</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="versionTable">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>versionTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/VersionTable.html" title="class in main.java.com.djrapitops.plan.database.tables">VersionTable</a> versionTable</pre>
<div class="block">Table representing plan_version in the database.</div>
</li>
</ul>
<a name="securityTable">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>securityTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SecurityTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SecurityTable</a> securityTable</pre>
<div class="block">Table representing plan_security in the database.</div>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.5.2</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="worldTable">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>worldTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTable</a> worldTable</pre>
<div class="block">Table representing plan_worlds in the database.</div>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.6.0</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="worldTimesTable">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>worldTimesTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTimesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTimesTable</a> worldTimesTable</pre>
<div class="block">Table representing plan_world_times in the database.</div>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.6.0</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="serverTable">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>serverTable</h4>
<pre>protected&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ServerTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ServerTable</a> serverTable</pre>
<div class="block">Table representing plan_servers in the database.</div>
</li>
</ul>
<a name="dataSource">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>dataSource</h4>
<pre>protected&nbsp;org.apache.commons.dbcp2.BasicDataSource dataSource</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Database-main.java.com.djrapitops.plan.api.IPlan-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Database</h4>
<pre>public&nbsp;Database(<a href="../../../../../../main/java/com/djrapitops/plan/api/IPlan.html" title="interface in main.java.com.djrapitops.plan.api">IPlan</a>&nbsp;plugin)</pre>
<div class="block">Super constructor.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
2017-10-02 20:52:53 +02:00
<dd><code>plugin</code> - current instance of Plan.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="init--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>init</h4>
<pre>public&nbsp;void&nbsp;init()
throws <a href="../../../../../../main/java/com/djrapitops/plan/api/exceptions/DatabaseInitException.html" title="class in main.java.com.djrapitops.plan.api.exceptions">DatabaseInitException</a></pre>
<div class="block">Initiates the database.</div>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../main/java/com/djrapitops/plan/api/exceptions/DatabaseInitException.html" title="class in main.java.com.djrapitops.plan.api.exceptions">DatabaseInitException</a></code> - if SQLException or other exception occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="wasSeenBefore-java.util.UUID-">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>wasSeenBefore</h4>
<pre>public abstract&nbsp;boolean&nbsp;wasSeenBefore(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;uuid)</pre>
<div class="block">Check if the user is saved in the database.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>uuid</code> - UUID of the user.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true/false</dd>
</dl>
2017-05-14 14:19:16 +02:00
</li>
</ul>
<a name="getName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName</h4>
<pre>public abstract&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;getName()</pre>
2017-10-02 20:52:53 +02:00
<div class="block">Used to get the name of the database type.
<p>
Thread safe.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>SQLite/MySQL</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
<a name="getConfigName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConfigName</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;getConfigName()</pre>
2017-10-02 20:52:53 +02:00
<div class="block">Used to get the config name of the database type.
<p>
Thread safe.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>sqlite/mysql</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="isNewDatabase--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>isNewDatabase</h4>
<pre>public abstract&nbsp;boolean&nbsp;isNewDatabase()
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>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<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>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
<a name="getVersion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVersion</h4>
<pre>public abstract&nbsp;int&nbsp;getVersion()
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>
2017-10-02 20:52:53 +02:00
<div class="block">Used to get the database schema version.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>Integer starting from 0, incremented by one when schema is
updated.</dd>
2017-05-14 14:19:16 +02:00
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - If a database error occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
<a name="setVersion-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVersion</h4>
<pre>public abstract&nbsp;void&nbsp;setVersion(int&nbsp;version)
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>
2017-10-02 20:52:53 +02:00
<div class="block">Used to set the database schema version.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
2017-10-02 20:52:53 +02:00
<dd><code>version</code> - Integer starting from 0, incremented by one when schema is
updated.</dd>
2017-05-14 14:19:16 +02:00
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - If a database error occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public abstract&nbsp;void&nbsp;close()
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>
2017-10-02 20:52:53 +02:00
<div class="block">Closes the database and it's resources.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - If a database error occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="removeAccount-java.util.UUID-">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAccount</h4>
2017-10-02 20:52:53 +02:00
<pre>public abstract&nbsp;void&nbsp;removeAccount(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&nbsp;uuid)
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">Removes all data related to an account from the database.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
2017-10-02 20:52:53 +02:00
<dd><code>uuid</code> - UUID of the account.</dd>
2017-05-14 14:19:16 +02:00
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - If a database error occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
<a name="removeAllData--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAllData</h4>
2017-10-02 20:52:53 +02:00
<pre>public abstract&nbsp;void&nbsp;removeAllData()
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">Used to clear all data from the database.
<p>
Uses DELETE * FROM table.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - if remove fails.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="getSavedUUIDs--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>getSavedUUIDs</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>&gt;&nbsp;getSavedUUIDs()
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">Used to fetch the saved UUIDs in the users table.</div>
2017-05-14 14:19:16 +02:00
<dl>
2017-10-02 20:52:53 +02:00
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Set of saved UUIDs</dd>
2017-05-14 14:19:16 +02:00
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - If a database error occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="getCommandUse--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>getCommandUse</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;getCommandUse()
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">Used to get the Command usage mep.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>String command (key), Integer times used</dd>
2017-05-14 14:19:16 +02:00
<dt><span class="throwsLabel">Throws:</span></dt>
2017-10-02 20:52:53 +02:00
<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> - If a database error occurs.</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="getUsersTable--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>getUsersTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UsersTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UsersTable</a>&nbsp;getUsersTable()</pre>
<div class="block">Used to get the users table.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>Table representing plan_users</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="getSessionsTable--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>getSessionsTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SessionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SessionsTable</a>&nbsp;getSessionsTable()</pre>
<div class="block">Used to get the users table.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>Table representing plan_sessions</dd>
2017-05-14 14:19:16 +02:00
</dl>
</li>
</ul>
2017-10-02 20:52:53 +02:00
<a name="getKillsTable--">
2017-05-14 14:19:16 +02:00
<!-- -->
</a>
2017-10-02 20:52:53 +02:00
<ul class="blockList">
2017-05-14 14:19:16 +02:00
<li class="blockList">
2017-10-02 20:52:53 +02:00
<h4>getKillsTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/KillsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">KillsTable</a>&nbsp;getKillsTable()</pre>
<div class="block">Used to get the kills table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_kills</dd>
</dl>
</li>
</ul>
<a name="getIpsTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIpsTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/IPsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">IPsTable</a>&nbsp;getIpsTable()</pre>
<div class="block">Used to get the ips table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_ips</dd>
</dl>
</li>
</ul>
<a name="getNicknamesTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNicknamesTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/NicknamesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">NicknamesTable</a>&nbsp;getNicknamesTable()</pre>
<div class="block">Used to get the nicknames table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_nicknames</dd>
</dl>
</li>
</ul>
<a name="getCommandUseTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCommandUseTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/CommandUseTable.html" title="class in main.java.com.djrapitops.plan.database.tables">CommandUseTable</a>&nbsp;getCommandUseTable()</pre>
<div class="block">Used to get the command usage table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_commandusages</dd>
</dl>
</li>
</ul>
<a name="getTpsTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTpsTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/TPSTable.html" title="class in main.java.com.djrapitops.plan.database.tables">TPSTable</a>&nbsp;getTpsTable()</pre>
<div class="block">Used to get the tps table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_tps</dd>
</dl>
</li>
</ul>
<a name="getSecurityTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSecurityTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/SecurityTable.html" title="class in main.java.com.djrapitops.plan.database.tables">SecurityTable</a>&nbsp;getSecurityTable()</pre>
<div class="block">Used to get the security table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_security</dd>
</dl>
</li>
</ul>
<a name="getWorldTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWorldTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTable</a>&nbsp;getWorldTable()</pre>
<div class="block">Used to get the worlds table.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Table representing plan_worlds</dd>
</dl>
</li>
</ul>
<a name="getWorldTimesTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWorldTimesTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/WorldTimesTable.html" title="class in main.java.com.djrapitops.plan.database.tables">WorldTimesTable</a>&nbsp;getWorldTimesTable()</pre>
<div class="block">Used to get the world times table.</div>
2017-05-14 14:19:16 +02:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
2017-10-02 20:52:53 +02:00
<dd>Table representing plan_world_times</dd>
</dl>
</li>
</ul>
<a name="getServerTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServerTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ServerTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ServerTable</a>&nbsp;getServerTable()</pre>
</li>
</ul>
<a name="getActionsTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getActionsTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/ActionsTable.html" title="class in main.java.com.djrapitops.plan.database.tables">ActionsTable</a>&nbsp;getActionsTable()</pre>
</li>
</ul>
<a name="getUserInfoTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUserInfoTable</h4>
<pre>public&nbsp;<a href="../../../../../../main/java/com/djrapitops/plan/database/tables/UserInfoTable.html" title="class in main.java.com.djrapitops.plan.database.tables">UserInfoTable</a>&nbsp;getUserInfoTable()</pre>
</li>
</ul>
<a name="getDataSource--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDataSource</h4>
<pre>public&nbsp;org.apache.commons.dbcp2.BasicDataSource&nbsp;getDataSource()</pre>
</li>
</ul>
<a name="commit-java.sql.Connection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>commit</h4>
<pre>public abstract&nbsp;void&nbsp;commit(<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;connection)
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>
<dl>
2017-05-14 14:19:16 +02:00
<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>
2017-10-02 20:52:53 +02:00
<a name="isUsingMySQL--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isUsingMySQL</h4>
<pre>public&nbsp;boolean&nbsp;isUsingMySQL()</pre>
</li>
</ul>
2017-05-14 14:19:16 +02:00
</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/Database.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">
2017-10-02 20:52:53 +02:00
<li><a href="../../../../../../main/java/com/djrapitops/plan/database/Container.html" title="class in main.java.com.djrapitops.plan.database"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../main/java/com/djrapitops/plan/database/DBUtils.html" title="class in main.java.com.djrapitops.plan.database"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
2017-05-14 14:19:16 +02:00
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?main/java/com/djrapitops/plan/database/Database.html" target="_top">Frames</a></li>
<li><a href="Database.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>Nested&nbsp;|&nbsp;</li>
2017-10-02 20:52:53 +02:00
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
2017-05-14 14:19:16 +02:00
<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>
2017-10-02 20:52:53 +02:00
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
2017-05-14 14:19:16 +02:00
<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; 2017. All rights reserved.</small></p>
</body>
</html>