mdb
df61cc8cf3
Reinstate automatic schema migration, per Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2159 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-06 21:52:52 +00:00
mdb
d372c3c369
Oops, my un-PreparedStatement-ifying was booched.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2158 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-04 01:30:42 +00:00
mdb
3bc26bab22
Allow the site identifier to be constructed with a custom default.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2157 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-01 01:21:17 +00:00
mdb
1f2450d8ba
Full text index support from Zell, also a fix for deletion.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2156 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-31 21:36:02 +00:00
mdb
a60eab7504
Always use an explicit query if we aren't using a cache.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2155 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-31 02:09:32 +00:00
mdb
c08d4c6535
Fixy fixy.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2153 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:18:54 +00:00
mdb
991216b078
Scratch that, we already checked.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2152 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:10:27 +00:00
mdb
8e9a269bc2
More non-nulling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2151 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:10:09 +00:00
mdb
8ba36474c1
Nor a null one.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2150 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:08:44 +00:00
mdb
fc29a71f3f
Don't try to restore auto-commit on a closed connection.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2149 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:08:20 +00:00
mdb
2b80f75546
Synchronize on the connection while we're using it to cooperate with
...
SimpleRepository + StaticConnectionProvider.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2148 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 20:10:47 +00:00
mdb
c21dae6d3a
Restore our auto-commit settings before releasing the connection back to the
...
provider.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2147 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 18:54:51 +00:00
mdb
48213dd36c
copy() was moved to IOUtils.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2146 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-27 00:15:35 +00:00
mdb
7c9e3a59c4
Missed a spot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2144 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 19:13:57 +00:00
mdb
7ad213ab13
Added PersistenceContext.shutdown(), exposed shutdown() in ConnectionProvider.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2143 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 19:13:34 +00:00
mdb
8116d469e4
Zell patch to factor caching code into pluggable CacheAdapter class. Allows us
...
to disable caching and/or replace it with less industrial strength system
during development.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2142 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 19:07:20 +00:00
mdb
ca92185d86
Properties don't like having non-Strings put into them.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2141 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 18:43:28 +00:00
mdb
02c376e88d
Missed a spot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2139 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 23:33:16 +00:00
mdb
e021e82865
Deprecation begone!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2138 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 23:30:07 +00:00
mdb
8a4c7ba54f
El Giganto Depot database dialects support from Zell. PostgresSQL here we
...
come. Automatic schema migration is currently disabled and remains to be
dialectified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2136 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 20:53:40 +00:00
mdb
dd495a477a
Nix setting auto-commit here. It has to be done in a way that coordinates with
...
SimpleRepository's synchronization if we're going to be mixing Depot and
SimpleRepository so we'll either do that or we'll take a look at how JDBC's
native connection pooling handles this.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2135 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-24 02:13:17 +00:00
mdb
868ebd38b4
Phase one of the database dialect supports for Depot from Zell. This is all
...
enhancements to non-Depot JDBC utilities (and dialect agnosticizing
TransitionRepository though we could accomplish that by Depot-izing it as
well).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2134 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-23 21:32:22 +00:00
mdb
3cd3397ad3
Allow invoker units to specify their own long threshold. Do away with the
...
invoker-wide long threshold configuration.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2133 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-18 18:29:01 +00:00
mdb
4747fa8f68
Header updates.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2132 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-13 00:20:09 +00:00
mdb
7141cf67d1
Allow ComplainingListener to be properly typed and to use Java's Logger.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2131 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-12 22:30:15 +00:00
mdb
fc2313687b
@Override is our friend. It helps to keep us warm and safe.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2130 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-12 21:50:36 +00:00
mdb
0e7f8d0e43
Another Zell Depot patch:
...
- refactoring query construction;
- modified collection lookup to first look up the matching primary keys, then
check the cache for hits then look up the remainder from the database;
- other small renamery and cleanup.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2129 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-12 20:02:54 +00:00
mdb
5783500a67
Make Interval constructor lenient about the RunQueue it's passed. Caveat
...
operarius.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2128 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-10 22:12:12 +00:00
mdb
a8218d725a
Widening.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2127 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-10 22:08:54 +00:00
mdb
c20cea85dd
Allow the prune interval to be run on a particular RunQueue (invoker in this
...
case as the Invoker is now a RunQueue) instead of on its own interval thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2126 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-10 22:00:21 +00:00
mdb
85024c595b
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2125 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-10 21:59:32 +00:00
ray
03040c0258
Use a nice toString() for posted Runnables.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2124 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-09 20:38:44 +00:00
ray
d47927b749
Made the Invoker a RunQueue. Don't get confused!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2123 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-09 20:20:47 +00:00
ray
1894f266a1
De-DOS'd these files, from Dave Hoover.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2122 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-06 00:16:21 +00:00
samskivert@gmail.com
803940faf0
Added parseBooleanArray method.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2121 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-05 19:07:13 +00:00
andrzej
977126b6df
Made IntIntMap serializable, added an isEmpty method.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2120 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-03 03:18:55 +00:00
ray
4d8d0f3788
From Charlie Groves:
...
- Added a version of getWeightedIndex() that takes a float[] the Random to
use for picking.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2119 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-29 00:32:12 +00:00
mdb
16753a8d0c
Check that our schema does not contain stale columns and issue a warning if it
...
does.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2118 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-29 00:25:40 +00:00
mdb
8490e3129f
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2116 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-18 23:14:26 +00:00
mdb
74675a7e57
Add a delete() that takes a Key.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2115 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-15 01:13:28 +00:00
mdb
c386d66109
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2114 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-13 17:09:41 +00:00
ray
138ce05fe8
Occam's razor.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2113 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-13 17:05:48 +00:00
mdb
b822e51753
Use the multi-head aware Graphics{Environment,Device,Configuration} to center
...
windows if possible as Toolkit isn't smart about such things.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2112 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-13 17:01:18 +00:00
mjohnson
2e31d2d2f8
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2111 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-12 22:30:48 +00:00
ray
4628bbc787
Indentation correction.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2110 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-05 01:43:25 +00:00
mdb
7932dbde0e
We need to initialize migrations here as well.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2109 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-02 00:07:41 +00:00
mdb
9c8f59ee25
Patch from Zell to fix cache keys.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2108 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-06-01 19:53:09 +00:00
ray
fcb3ba6fd5
i -> ii, combined two identical cases.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2107 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-05-25 19:45:11 +00:00
mdb
9d9f8a68c3
Just provide the classname and method when providing log message context.
...
Tidied up some other bits.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2106 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-05-23 18:37:34 +00:00
mdb
b18001332f
Oops, we were using _result to pass the record into the modifier in the first
...
place. We'll continue to do that and clear out _result during invoke() which is
a wee bit clearer anyway.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2105 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-05-23 18:20:08 +00:00