Files
vilya/apidocs/com/threerings/stats/server/persist/StatRepository.html
T
2015-03-14 10:44:30 -07:00

474 lines
34 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Sat Mar 14 10:07:12 PDT 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>StatRepository (Vilya Core 1.6 API)</title>
<meta name="date" content="2015-03-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="StatRepository (Vilya Core 1.6 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/StatRepository.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/threerings/stats/server/persist/StatRecord.html" title="class in com.threerings.stats.server.persist"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/threerings/stats/server/persist/StringCodeRecord.html" title="class in com.threerings.stats.server.persist"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/threerings/stats/server/persist/StatRepository.html" target="_top">Frames</a></li>
<li><a href="StatRepository.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.classes.inherited.from.class.com.samskivert.depot.DepotRepository">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.threerings.stats.server.persist</div>
<h2 title="Class StatRepository" class="title">Class StatRepository</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/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><a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true" title="class or interface in com.samskivert.depot">com.samskivert.depot.DepotRepository</a></li>
<li>
<ul class="inheritance">
<li>com.threerings.stats.server.persist.StatRepository</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/threerings/stats/data/Stat.AuxDataSource.html" title="interface in com.threerings.stats.data">Stat.AuxDataSource</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">StatRepository</span>
extends <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true" title="class or interface in com.samskivert.depot">DepotRepository</a>
implements <a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html" title="interface in com.threerings.stats.data">Stat.AuxDataSource</a></pre>
<div class="block">Responsible for the persistent storage of per-player statistics.</div>
</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>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.samskivert.depot.DepotRepository">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;com.samskivert.depot.<a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true" title="class or interface in com.samskivert.depot">DepotRepository</a></h3>
<code><a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.CacheStrategy.html?is-external=true" title="class or interface in com.samskivert.depot">DepotRepository.CacheStrategy</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#StatRepository-com.samskivert.depot.PersistenceContext-">StatRepository</a></span>(<a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/PersistenceContext.html?is-external=true" title="class or interface in com.samskivert.depot">PersistenceContext</a>&nbsp;context)</code>
<div class="block">Constructs a new statistics repository with the specified persistence context.</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="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/threerings/stats/server/persist/StatRepository.html#clearMapping-com.threerings.stats.data.Stat.Type-java.lang.String-">clearMapping</a></span>(<a href="../../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">This is only used for testing.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#deleteStats-int-">deleteStats</a></span>(int&nbsp;playerId)</code>
<div class="block">Deletes all stats associated with the specified player.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/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="../../../../../com/threerings/stats/server/persist/StatRepository.html#getCodeString-com.threerings.stats.data.Stat.Type-int-">getCodeString</a></span>(<a href="../../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;code)</code>
<div class="block">Maps the specified unique code back to its string value.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#getStringCode-com.threerings.stats.data.Stat.Type-java.lang.String-">getStringCode</a></span>(<a href="../../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Maps the specified string to a unique integer value.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#loadStats-int-">loadStats</a></span>(int&nbsp;playerId)</code>
<div class="block">Loads the stats associated with the specified player.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#purgePlayers-java.util.Collection-">purgePlayers</a></span>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;playerIds)</code>
<div class="block">Deletes all data associated with the supplied players.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>&lt;T extends <a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;<br>T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#updateStat-int-com.threerings.stats.data.StatModifier-">updateStat</a></span>(int&nbsp;playerId,
<a href="../../../../../com/threerings/stats/data/StatModifier.html" title="class in com.threerings.stats.data">StatModifier</a>&lt;T&gt;&nbsp;modifier)</code>
<div class="block">Applies a modification to a single stat.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#writeModified-int-java.lang.Iterable-">writeModified</a></span>(int&nbsp;playerId,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;stats)</code>
<div class="block">Writes out any of the stats in the supplied iterable that have been modified since they were
first loaded.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/stats/server/persist/StatRepository.html#writeModified-int-com.threerings.stats.data.Stat:A-">writeModified</a></span>(int&nbsp;playerId,
<a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>[]&nbsp;stats)</code>
<div class="block">Writes out any of the stats in the supplied array that have been modified since they were
first loaded.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.samskivert.depot.DepotRepository">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.samskivert.depot.<a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true" title="class or interface in com.samskivert.depot">DepotRepository</a></h3>
<code><a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#ctx--" title="class or interface in com.samskivert.depot">ctx</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#delete-com.samskivert.depot.Key-" title="class or interface in com.samskivert.depot">delete</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#delete-T-" title="class or interface in com.samskivert.depot">delete</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#deleteAll-java.lang.Class-com.samskivert.depot.clause.WhereClause-" title="class or interface in com.samskivert.depot">deleteAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#deleteAll-java.lang.Class-com.samskivert.depot.clause.WhereClause-com.samskivert.depot.CacheInvalidator-" title="class or interface in com.samskivert.depot">deleteAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#deleteAll-java.lang.Class-com.samskivert.depot.clause.WhereClause-com.samskivert.depot.clause.Limit-" title="class or interface in com.samskivert.depot">deleteAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#deleteAll-java.lang.Class-com.samskivert.depot.clause.WhereClause-com.samskivert.depot.clause.Limit-com.samskivert.depot.CacheInvalidator-" title="class or interface in com.samskivert.depot">deleteAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#findAll-java.lang.Class-com.samskivert.depot.DepotRepository.CacheStrategy-java.lang.Iterable-" title="class or interface in com.samskivert.depot">findAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#findAll-java.lang.Class-com.samskivert.depot.DepotRepository.CacheStrategy-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">findAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#findAll-java.lang.Class-java.lang.Iterable-" title="class or interface in com.samskivert.depot">findAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#findAll-java.lang.Class-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">findAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#findAllKeys-java.lang.Class-boolean-java.lang.Iterable-" title="class or interface in com.samskivert.depot">findAllKeys</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#findAllKeys-java.lang.Class-boolean-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">findAllKeys</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#from-java.lang.Class-" title="class or interface in com.samskivert.depot">from</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#insert-T-" title="class or interface in com.samskivert.depot">insert</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#load-java.lang.Class-com.samskivert.depot.DepotRepository.CacheStrategy-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">load</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#load-java.lang.Class-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">load</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#load-com.samskivert.depot.Key-com.samskivert.depot.DepotRepository.CacheStrategy-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">load</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#load-com.samskivert.depot.Key-com.samskivert.depot.clause.QueryClause...-" title="class or interface in com.samskivert.depot">load</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#loadAll-java.lang.Class-java.lang.Iterable-" title="class or interface in com.samskivert.depot">loadAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#loadAll-java.lang.Iterable-" title="class or interface in com.samskivert.depot">loadAll</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#registerMigration-com.samskivert.depot.DataMigration-" title="class or interface in com.samskivert.depot">registerMigration</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#store-T-" title="class or interface in com.samskivert.depot">store</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#update-com.samskivert.depot.PersistentRecord-" title="class or interface in com.samskivert.depot">update</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#update-com.samskivert.depot.PersistentRecord-com.samskivert.depot.expression.SQLExpression...-" title="class or interface in com.samskivert.depot">update</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#update-T-com.samskivert.depot.expression.ColumnExp...-" title="class or interface in com.samskivert.depot">update</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#updatePartial-java.lang.Class-com.samskivert.depot.clause.WhereClause-com.samskivert.depot.CacheInvalidator-com.samskivert.depot.expression.ColumnExp:A-com.samskivert.depot.expression.SQLExpression:A-" title="class or interface in com.samskivert.depot">updatePartial</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#updatePartial-java.lang.Class-com.samskivert.depot.clause.WhereClause-com.samskivert.depot.CacheInvalidator-com.samskivert.depot.expression.ColumnExp-java.lang.Object-java.lang.Object...-" title="class or interface in com.samskivert.depot">updatePartial</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#updatePartial-java.lang.Class-com.samskivert.depot.clause.WhereClause-com.samskivert.depot.CacheInvalidator-java.util.Map-" title="class or interface in com.samskivert.depot">updatePartial</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#updatePartial-com.samskivert.depot.Key-com.samskivert.depot.expression.ColumnExp-java.lang.Object-java.lang.Object...-" title="class or interface in com.samskivert.depot">updatePartial</a>, <a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/DepotRepository.html?is-external=true#updatePartial-com.samskivert.depot.Key-java.util.Map-" title="class or interface in com.samskivert.depot">updatePartial</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.<a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/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/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="StatRepository-com.samskivert.depot.PersistenceContext-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>StatRepository</h4>
<pre>@Inject
public&nbsp;StatRepository(<a href="http://threerings.github.com/depot/apidocs/com/samskivert/depot/PersistenceContext.html?is-external=true" title="class or interface in com.samskivert.depot">PersistenceContext</a>&nbsp;context)</pre>
<div class="block">Constructs a new statistics repository with the specified persistence context.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="updateStat-int-com.threerings.stats.data.StatModifier-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateStat</h4>
<pre>public&nbsp;&lt;T extends <a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;T&nbsp;updateStat(int&nbsp;playerId,
<a href="../../../../../com/threerings/stats/data/StatModifier.html" title="class in com.threerings.stats.data">StatModifier</a>&lt;T&gt;&nbsp;modifier)</pre>
<div class="block">Applies a modification to a single stat. If the stat in question does not exist, a blank
instance will be created via <a href="../../../../../com/threerings/stats/data/Stat.Type.html#newStat--"><code>Stat.Type.newStat()</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the modified Stat, if any modification took place; or null if the modification had
no effect on the stat's data.</dd>
</dl>
</li>
</ul>
<a name="loadStats-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadStats</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;loadStats(int&nbsp;playerId)</pre>
<div class="block">Loads the stats associated with the specified player.</div>
</li>
</ul>
<a name="deleteStats-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deleteStats</h4>
<pre>public&nbsp;void&nbsp;deleteStats(int&nbsp;playerId)</pre>
<div class="block">Deletes all stats associated with the specified player.</div>
</li>
</ul>
<a name="writeModified-int-com.threerings.stats.data.Stat:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeModified</h4>
<pre>public&nbsp;void&nbsp;writeModified(int&nbsp;playerId,
<a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>[]&nbsp;stats)</pre>
<div class="block">Writes out any of the stats in the supplied array that have been modified since they were
first loaded. Exceptions that occur while writing the stats will be caught and logged.</div>
</li>
</ul>
<a name="writeModified-int-java.lang.Iterable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeModified</h4>
<pre>public&nbsp;void&nbsp;writeModified(int&nbsp;playerId,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;stats)</pre>
<div class="block">Writes out any of the stats in the supplied iterable that have been modified since they were
first loaded. Exceptions that occur while writing the stats will be caught and logged.</div>
</li>
</ul>
<a name="getStringCode-com.threerings.stats.data.Stat.Type-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStringCode</h4>
<pre>public&nbsp;int&nbsp;getStringCode(<a href="../../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html#getStringCode-com.threerings.stats.data.Stat.Type-java.lang.String-">Stat.AuxDataSource</a></code></span></div>
<div class="block">Maps the specified string to a unique integer value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html#getStringCode-com.threerings.stats.data.Stat.Type-java.lang.String-">getStringCode</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html" title="interface in com.threerings.stats.data">Stat.AuxDataSource</a></code></dd>
</dl>
</li>
</ul>
<a name="getCodeString-com.threerings.stats.data.Stat.Type-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCodeString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getCodeString(<a href="../../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;code)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html#getCodeString-com.threerings.stats.data.Stat.Type-int-">Stat.AuxDataSource</a></code></span></div>
<div class="block">Maps the specified unique code back to its string value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html#getCodeString-com.threerings.stats.data.Stat.Type-int-">getCodeString</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/stats/data/Stat.AuxDataSource.html" title="interface in com.threerings.stats.data">Stat.AuxDataSource</a></code></dd>
</dl>
</li>
</ul>
<a name="clearMapping-com.threerings.stats.data.Stat.Type-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearMapping</h4>
<pre>public&nbsp;void&nbsp;clearMapping(<a href="../../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">This is only used for testing. Do not call this method.</div>
</li>
</ul>
<a name="purgePlayers-java.util.Collection-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>purgePlayers</h4>
<pre>public&nbsp;void&nbsp;purgePlayers(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;playerIds)</pre>
<div class="block">Deletes all data associated with the supplied players.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/StatRepository.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/threerings/stats/server/persist/StatRecord.html" title="class in com.threerings.stats.server.persist"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/threerings/stats/server/persist/StringCodeRecord.html" title="class in com.threerings.stats.server.persist"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/threerings/stats/server/persist/StatRepository.html" target="_top">Frames</a></li>
<li><a href="StatRepository.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.classes.inherited.from.class.com.samskivert.depot.DepotRepository">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2015. All rights reserved.</small></p>
</body>
</html>