Tom Conkling
6d1e687709
not sure where those extra *s came from
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@662 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-17 20:49:43 +00:00
Tom Conkling
0e74ed2842
Whirled's Passport system is using player stats to award "badges," and a few changes to stats are necessary to allow mutliple clients to safely modify stats simultaneously:
...
- add a modCount field to Stat to assist detecting if a stat has been updated in the repository since being loaded into memory
- StatRepository.updateStat() is rewritten to support optionally failing if modCount has been updated (existing Stat code should not be affected by this change)
- added StatRepository.loadStat() and StatRepository.updateStatIfCurrent() to support loadingand updating of single stats.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@661 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-17 20:40:36 +00:00
Tom Conkling
cf1779e8b8
ray points out that IntSetStat's size can also, of course, be stored in a byte
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@660 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-16 20:47:25 +00:00
Tom Conkling
8f12cff519
per mdb, IntSetStat will store a maximum of 255 entries
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@659 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-16 20:27:17 +00:00
Tom Conkling
43df45be1a
IntStatSet fixes
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@658 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-15 20:57:01 +00:00
Tom Conkling
007bdc91c8
created IntSetStat
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@657 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-15 20:26:26 +00:00
Michael Bayne
d18412aa4c
Make the StatRepository injectable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@617 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-08 15:46:06 +00:00
Michael Bayne
a133c7c693
Switch to new logging API.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@608 c613c5cb-e716-0410-b11b-feb51c14d237
2008-05-27 20:00:28 +00:00
Michael Bayne
47c9418eab
@Entity -> @Table.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@579 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-01 21:39:08 +00:00
Dave Hoover
0048bde6db
Keyword substitution.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@514 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-03 21:09:42 +00:00
Par Winzell
df1b8277fb
Use FieldDefinition instead of FieldOverride wherever appropriate (almost everywhere).
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@407 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-21 23:12:44 +00:00
Par Winzell
4567264b91
We're not going to do this INDEX: comment thing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@404 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-16 21:53:47 +00:00
Michael Bayne
01db2cc225
Scratch that, reverse it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@403 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-15 19:47:51 +00:00
Michael Bayne
41c1ca44b7
No need to validate here.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@402 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-15 19:07:01 +00:00
Par Winzell
e386d6c3a0
Add an index, document index use for Depot operations. Do you think this is worthwhile? We should really just about never see a non-indexed query during normal production use and one way to maintain that discipline is with a comment line like this.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@399 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-07 18:05:44 +00:00
Michael Bayne
96b42efbae
Switch stataData to an untyped column so that Depot can do the right thing with
...
it. BLOB on MySQL has a maximum length of 65535, so we'll preserve those
semantics even though Depot will now use VARBINARY on MySQL for columns of
length 65535 and lower.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@398 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-07 17:20:22 +00:00
Michael Bayne
8d9ff98273
columnNames -> fieldNames.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@396 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-31 21:36:49 +00:00
Par Winzell
beb58c2c41
Another tweak, now that code/value is the full key.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@392 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 21:18:30 +00:00
Par Winzell
0444af1792
Forgot to turn this check on properly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@391 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 21:15:27 +00:00
Par Winzell
3f7c1f9466
The old schema had STAT_DATA be a BLOB, and Depot currently defaults to varbinary(255). This raises at least two questions; first, does it make sense to assume that in the absence of any other markup, 255 is a reasonable size limit? I am not at all sure. Second, whatever the default translation of byte[] ends of being, how to we deal dialect-agnostically with schema compatibility issues?
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@390 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 21:12:29 +00:00
Par Winzell
a010a130fc
This should work better.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@389 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 20:59:38 +00:00
Par Winzell
7d3de02e7c
As tidy as it was to tuck this record away inside StatRepository, we'd really like the benefit of the 'genrecord' transformation. Also the inner class couldn't be protected for reflection access reasons so some of the tidy wasn't so tidy.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@388 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 19:17:57 +00:00
Par Winzell
8defc9da5e
So CODE is not in fact part of the primary key, thanks Mark.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@387 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 18:53:24 +00:00
Michael Bayne
ae02a37f74
Out with the old.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@386 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:50:16 +00:00
Michael Bayne
fa7eb87945
Nixed stale method, some minor tidying.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@384 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:38:08 +00:00
Par Winzell
2d5a5ca033
Depot implementation of the stat system persistence - hopefully schema compatible with the old version. This one is a little more complicated and Whirled doesn't have any stats yet so I was a little at a loss at how to test all of it. Perhaps somebody at Bang could make sure nothing crashes and burns horribly when e.g. a new string code is assigned?
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@383 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:28:50 +00:00
Mark Johnson
ceb4ea2a07
Added the ability to delete stat records for a player ID
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@261 c613c5cb-e716-0410-b11b-feb51c14d237
2007-03-23 00:49:37 +00:00
Michael Bayne
add74fd863
Alas this hack will be needed for all time it seems.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@253 c613c5cb-e716-0410-b11b-feb51c14d237
2007-03-20 23:24:41 +00:00
Michael Bayne
ee0bea04e1
Nix some Bang specific stuff.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@252 c613c5cb-e716-0410-b11b-feb51c14d237
2007-03-20 17:44:18 +00:00
Michael Bayne
e6ab89f313
Extracted the Bang stats system into reusable land. Too late for Yohoho, but
...
Whirled will benefit.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@251 c613c5cb-e716-0410-b11b-feb51c14d237
2007-03-20 17:23:18 +00:00