<li><ahref="../../../../com/djrapitops/plan/query/CommonQueriesImplementation.html"title="class in com.djrapitops.plan.query"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../com/djrapitops/plan/query/QueryService.Holder.html"title="class in com.djrapitops.plan.query"><spanclass="typeNameLink">Next Class</span></a></li>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/djrapitops/plan/query/QueryService.Holder.html"title="class in com.djrapitops.plan.query">QueryService.Holder</a></span></code> </td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingConsumer.html"title="interface in com.djrapitops.plan.query">QueryService.ThrowingConsumer</a><<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingConsumer.html"title="type parameter in QueryService.ThrowingConsumer">T</a>></span></code>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingFunction.html"title="interface in com.djrapitops.plan.query">QueryService.ThrowingFunction</a><<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingFunction.html"title="type parameter in QueryService.ThrowingFunction">T</a>,<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingFunction.html"title="type parameter in QueryService.ThrowingFunction">R</a>></span></code>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/djrapitops/plan/query/QueryService.VoidFunction.html"title="interface in com.djrapitops.plan.query">QueryService.VoidFunction</a></span></code>
<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingConsumer.html"title="interface in com.djrapitops.plan.query">QueryService.ThrowingConsumer</a><java.sql.PreparedStatement> performStatement)</code>
<divclass="block">Execute SQL against Plan database.</div>
</td>
</tr>
<trid="i1"class="rowColor">
<tdclass="colFirst"><code><ahref="../../../../com/djrapitops/plan/query/CommonQueries.html"title="interface in com.djrapitops.plan.query">CommonQueries</a></code></td>
<divclass="block">Get what kind of database is in use.</div>
</td>
</tr>
<trid="i3"class="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../com/djrapitops/plan/query/QueryService.html"title="interface in com.djrapitops.plan.query">QueryService</a></code></td>
<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingFunction.html"title="interface in com.djrapitops.plan.query">QueryService.ThrowingFunction</a><java.sql.PreparedStatement,T> performQuery)</code>
<divclass="block">Perform a query against Plan database.</div>
</td>
</tr>
<trid="i6"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/djrapitops/plan/query/QueryService.html#subscribeDataClearEvent-com.djrapitops.plan.query.QueryService.VoidFunction-">subscribeDataClearEvent</a></span>(<ahref="../../../../com/djrapitops/plan/query/QueryService.VoidFunction.html"title="interface in com.djrapitops.plan.query">QueryService.VoidFunction</a> eventListener)</code>
<divclass="block">Used for getting notified about removal of ALL data.</div>
<divclass="block">Used for getting notified about removal of player data.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<divclass="details">
<ulclass="blockList">
<liclass="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getInstance--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getInstance</h4>
<pre>static <ahref="../../../../com/djrapitops/plan/query/QueryService.html"title="interface in com.djrapitops.plan.query">QueryService</a> getInstance()</pre>
<divclass="block">Obtain instance of QueryService.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>QueryService implementation.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NoClassDefFoundError</code> - If Plan is not installed and this class can not be found or if older Plan version is installed.</dd>
<dd><code>java.lang.IllegalStateException</code> - If Plan is installed, but not enabled.</dd>
</dl>
</li>
</ul>
<aname="getDBType--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getDBType</h4>
<pre>java.lang.String getDBType()</pre>
<divclass="block">Get what kind of database is in use.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>H2, SQLITE or MYSQL</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - If database has not been initialized (Plugin failed to enable)</dd>
<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingFunction.html"title="interface in com.djrapitops.plan.query">QueryService.ThrowingFunction</a><java.sql.PreparedStatement,T> performQuery)
throws java.lang.IllegalStateException</pre>
<divclass="block">Perform a query against Plan database.
<ahref="../../../../com/djrapitops/plan/query/QueryService.ThrowingConsumer.html"title="interface in com.djrapitops.plan.query">QueryService.ThrowingConsumer</a><java.sql.PreparedStatement> performStatement)
throws java.lang.IllegalStateException</pre>
<divclass="block">Execute SQL against Plan database.
<p>
Does not block thread, SQL is executed in a single transaction to the database.
<p>
Differs from <ahref="../../../../com/djrapitops/plan/query/QueryService.html#query-java.lang.String-com.djrapitops.plan.query.QueryService.ThrowingFunction-"><code>query(String, ThrowingFunction)</code></a> in that no results are returned.</div>
<pre>void subscribeDataClearEvent(<ahref="../../../../com/djrapitops/plan/query/QueryService.VoidFunction.html"title="interface in com.djrapitops.plan.query">QueryService.VoidFunction</a> eventListener)</pre>
<divclass="block">Used for getting notified about removal of ALL data.
<p>
SQL for removing all extra tables (and data) should be performed
<p>
Example usage:
<code>subscribeDataClearEvent(() -> { do stuff })</code></div>
<divclass="block">Get the UUID of this server.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Optinal of the server UUID, empty if server did not start properly.</dd>
</dl>
</li>
</ul>
<aname="getCommonQueries--">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>getCommonQueries</h4>
<pre><ahref="../../../../com/djrapitops/plan/query/CommonQueries.html"title="interface in com.djrapitops.plan.query">CommonQueries</a> getCommonQueries()</pre>
<divclass="block">Perform some commonly wanted queries.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd><ahref="../../../../com/djrapitops/plan/query/CommonQueries.html"title="interface in com.djrapitops.plan.query"><code>CommonQueries</code></a> implementation.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - If database has not been initialized (Plugin failed to enable)</dd>
<li><ahref="../../../../com/djrapitops/plan/query/CommonQueriesImplementation.html"title="class in com.djrapitops.plan.query"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../com/djrapitops/plan/query/QueryService.Holder.html"title="class in com.djrapitops.plan.query"><spanclass="typeNameLink">Next Class</span></a></li>