mdb
1b04037740
A jab to the left, a jab to the right, next thing you know you're boxing.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1980 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-21 01:06:49 +00:00
mdb
73ed588a2c
Fields that have no @Column must now default to non-nullable.
...
Added experimental support for Enum fields that are mapped to bytes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1979 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-20 23:35:46 +00:00
mdb
a5294352f8
Allow the authcode to be specified directly in addition to having methods that
...
extract it from the HTTP request.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1978 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-20 23:34:38 +00:00
mdb
8437bb657f
Switched to our own set of annotation classes, provided by Zell. This removes
...
the dependency on the EJB3 persistence library.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1977 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-20 21:03:22 +00:00
andrzej
49ff4d36a7
Added method to check if a column is nullable.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1976 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-20 19:20:13 +00:00
mdb
a619751966
Allow the long threshold to be configured.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1974 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-11 00:57:52 +00:00
mdb
f866ec283d
Small fiddling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1973 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-10 20:36:42 +00:00
mdb
3996559f8e
Put a bunch of useful stuff in the standard context.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1972 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-10 20:29:27 +00:00
mdb
efd0c2dfe6
Two phases. First phase, run everything through the parser, and freak out if
...
anything fails to parse. Second phase, actually merge the templates with a
populated context and compare the output to a golden file iff such a file
exists. Also accumulate any log output generated during that process and report
it if the test fails.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1971 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-10 19:22:47 +00:00
mdb
f0183ce625
Base class for testing Velocity templates.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1970 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-10 18:43:01 +00:00
mdb
0b80de4e07
Removed unneeded import.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1969 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-10 18:42:45 +00:00
ray
10b68d9092
We've got to notify the connection provider that the connection went sour
...
so that it disposes of it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1968 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-08 19:51:45 +00:00
andrzej
154be182a6
Added an array equivalent of Collection.toArray(T[]) to convert arrays
...
to sub-types.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1967 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-08 03:06:36 +00:00
mdb
162deee43d
A whole heap of new Depot stuff from Zell. Clauses, operators, expressions, oh
...
my!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1966 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-08 02:34:42 +00:00
ray
f1e726335a
Have the depot retry on transient failures.
...
Untested, until tomorrow morning!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1965 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-08 00:30:10 +00:00
andrzej
5f9dc8993f
Added an array concatenation method.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1964 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-27 23:03:58 +00:00
mdb
c968ff06de
More linty. We'll handle all deprecation PITA later.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1963 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-26 23:14:45 +00:00
mdb
133df16238
Change shutdown() to something less likely to collide with methods call from
...
within intervals (as Interval.shutdown() will now silently hide any shutdown()
method in an outer class that an Interval may have previously been calling in
expired()).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1962 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-24 22:02:54 +00:00
mdb
9f9b4cde72
Some refactoring of query generation; addition of "for update" support. From
...
Zell.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1961 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-23 23:12:55 +00:00
mdb
cd323750d9
Allow a UserManager to be instantiated by name and then initialized.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1960 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-23 18:41:48 +00:00
mdb
9ca5ae6226
Provide an overridable notion of admin-ness.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1959 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-23 18:38:09 +00:00
mdb
fecab56843
Key convience constructors from Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1958 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-20 23:49:41 +00:00
mdb
46d67e76a3
Another @Computed related patch.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1956 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-20 18:52:49 +00:00
mdb
31c4f773f2
@Computed enhancements from Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1955 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-20 04:26:27 +00:00
mdb
bf34af7bc1
This should be synchronized as we're going to read this value from another
...
thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1954 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-20 04:04:59 +00:00
mdb
26c16e8ad4
Allow passing a null array to CollectionUtil.addAll() which behaves like an
...
empty array.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1953 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-17 19:21:36 +00:00
mdb
13b914952d
Out vile extra space!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1952 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-13 21:42:25 +00:00
mdb
cacfd18a8c
@Computed support from Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1951 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-13 21:39:49 +00:00
mdb
51135b5fe1
Support for query clauses, joins, field overriding and a bunch of
...
other useful stuff from Zell. Adjusted formatting to 100 columns.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1946 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-13 02:36:21 +00:00
mdb
16f5489314
Merge Key2 into Key.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1945 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-11 20:37:14 +00:00
mdb
1058f270a8
Promoted a number of classes out of DepotRepository because they are used all
...
across the package. Moved marshaller creation and management into the
PersistenceContext because marshallers should be shared across a persistence
context.
Also moved the actual "get a connection and do the query" code into the
persistence context which is sort of a nice separation. The repository and
friends now just put together Query and Modifier objects and pass them to the
context for execution. The context will eventually handle interaction with the
cache as well (exposing manual manipulation mechanisms as needed to the
DepotRepository).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1944 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-11 20:07:05 +00:00
andrzej
5ad5f22e7c
Added a method to create a Properties object that accesses subproperties
...
by filtering a referenced base Properties, rather than creating an
entirely new set of Properties, to avoid creating loads of garbage when
filtering through multiple levels of subproperties.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1943 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-11 18:41:08 +00:00
mdb
4607cf4b6a
The Java compiler uses the platform's default encoding when reading source
...
files which explains why Ray's "there are no languages but English" system
resulted in complaints and my "named after the African word for community"
system did not. Fortunately we can just tell the Java compiler what to expect.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1942 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-11 18:36:53 +00:00
mdb
66b86adbe9
Go through the fields in declaration order when doing the migration otherwise
...
we might try to add a field after a field that we haven't yet added.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1941 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-11 02:46:41 +00:00
mdb
57b795b6ab
Allow elements to be added at particular positions (e.g. the front) to an
...
observer list.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1940 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-10 20:49:13 +00:00
mdb
5457f286bc
We need a way to deal with the wacky situation where all threads created by an
...
applet are forcibly destroyed when it is destroyed, even though the applet's
class loader sticks around and it is started up again with the same classes
(which have already been static initialized). Twisty maze of passages.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1939 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-06 20:58:19 +00:00
ray
b66931cd7f
Changed these to make me (and the compiler) happy.
...
I'm pretty sure source files should be ISO-8859-1.
If you're more comfortable with entity tags appearing in a /* */ style
comment, then maybe that's what we should use for the header text.
(The Java Coding Guidlines say you should use a /* */ comment at the top
of the file.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1938 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-30 02:34:36 +00:00
mdb
c237cd7a6d
Copyright date and header fiddling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1937 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-29 18:51:30 +00:00
mdb
015279cceb
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1936 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-29 18:40:04 +00:00
mdb
e773767e32
Multi-column primary key support from Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1935 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-29 18:38:33 +00:00
mdb
5700a7a26f
Avoid rereading our volatile variable because it could result in multithread
...
weirdness.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1934 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-29 02:41:00 +00:00
mdb
09ac6097a6
Always update then insert in case for whatever reason the zeroth schema version
...
is not one (like for ItemRecord).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1933 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-29 01:28:53 +00:00
mdb
504cd21b7c
Added auto-migration for adding new columns.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1932 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-29 01:21:53 +00:00
ray
a592070397
Let's transition the TransitionRepository into a state of working.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1931 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-28 02:45:13 +00:00
ray
824f340bba
Migrated the TransitionRepository here from Yohoho.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1930 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-28 01:56:23 +00:00
mdb
60bd39e8b6
Update our Modifier's key on an insert (and store) so that it can (eventually)
...
properly cache the results of our insert based on the newly assigned primary
key. Also avoid freakout if an attempt is made to store() a non-primary-key
using object.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1928 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-26 19:51:58 +00:00
mdb
eaa520044b
Unbork handling of objects with no primary key. Added a comment indicating
...
where we will need to cache the results of a modifier (like an insert or an
update). Added hasPrimaryKey() to DepotMarshaller which we will soon use
externally.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1927 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-26 19:41:40 +00:00
mdb
c29a7e91d3
Allow the scope of globally scoped annotations to be managed explicitly instead
...
of making them shared across a JVM.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1924 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-22 18:59:48 +00:00
mdb
f45349dca7
External table primary key generation from Zell, with some rearranging.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1923 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-22 18:06:43 +00:00
mdb
77b4adba34
Support @Length on byte[] fields.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1922 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-21 01:31:04 +00:00