Commit Graph

1959 Commits

Author SHA1 Message Date
mdb e5ae86c047 More test revamping.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2011 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 21:58:33 +00:00
mdb e04f24077f Move tests packages under their parent package so that they are naturally
included or excluded when we conditionally compile just certain packages.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2010 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 21:50:23 +00:00
mdb a29e4450da Test revamp in progress.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2009 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-08-25 09:25:58 +00:00
mdb 65a48e78a1 Go ahead and run the tests on ant dist. I wish this output could be made less
verbose.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2008 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 21:05:30 +00:00
mdb afd3d35f17 Index handling. Automatic addition and removal of indices not yet implemented.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2007 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 20:53:55 +00:00
mdb 25ecb66363 Fixed unit tests.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2006 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 19:53:36 +00:00
mdb 5d9c17a853 Added support for hand-registered migrations (untested).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2005 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 19:06:18 +00:00
mdb 1e6043b264 Added Entity.postamble, wired it and Entity.name up properly.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2004 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-21 18:06:59 +00:00
mdb 5468794fed Allow RepositoryUnit and RepositoryListenerUnit to throw any exception.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2003 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-20 23:28:01 +00:00
mdb bad40f8a0b TableKeyGenerator was not using the annotation specified initial value.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2002 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-20 21:51:46 +00:00
mdb 7b64416eeb No need to require a concrete map class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2001 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-20 19:33:53 +00:00
mdb 401a23a18f Added a version of updatePartial() that takes a Map of keys and values which it
converts to a list and calls the existing version.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2000 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-20 19:31:46 +00:00
mdb 77b587354e Fix typo.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1999 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-18 21:45:13 +00:00
mdb e141f96ce9 Delete jar files when cleaning.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1998 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-15 23:23:02 +00:00
mdb 458cad28fb Support for more operators and functions from Zell.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1997 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-15 23:08:26 +00:00
mdb 9288bebaec Add some hackery to work around MySQL's strange habit of assigning 0 instead of
the current time when adding a TIMESTAMP column to a table (even if you
explicitly define the TIMESTAMP column with DEFAULT CURRENT_TIMESTAMP).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1996 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-11 21:35:05 +00:00
mdb 4635caadea Support the specification of default values for columns.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1995 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-11 21:34:11 +00:00
mdb cf48a6a9eb Beans/frank.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1994 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-07 23:13:57 +00:00
ray 3924cddb73 Drive-by type-safety.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1993 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-07 01:39:46 +00:00
mdb 6580b38f79 Third time's the charm?
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1992 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-06 21:02:00 +00:00
mdb dfc125bfa8 That'll need to be escaped and quoted.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1991 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-06 20:59:39 +00:00
mdb b1a1a31097 Revamped session handling, deprecating the old "persist or not" scheme and
switching to one where the application tells us how many days the session
should last. Added a mechanism for checking whether a session is still valid
and refreshing it if so.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1990 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-06 19:36:41 +00:00
mdb 5e61ec0641 Made the addFooToTable() methods return true if they did something, false if
they did not. Unwrapped.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1989 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-12-06 02:31:35 +00:00
mdb 86767b91be Added LessThan and GreaterThan operators.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1988 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-30 23:38:52 +00:00
mdb b13e53cfd3 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1987 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2006-11-29 19:39:40 +00:00
mdb c57aa2e12c The plot thickens. OrderBy wasn't handling multiple columns properly, which
requires individual ordering instructions for each column. So we've modified it
to do so which required some signature changes and renders the static methods
only really appropriate for a single column (which is what you want 90% of the
time anyway).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1986 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-29 02:40:45 +00:00
mdb 1d6ab3cc03 Provide a concise way to create ascending and descending order by clauses.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1985 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-29 02:24:21 +00:00
mdb 7ec88a15ff Naughty naughty, creating an array of Equals[] and assigning to to an array of
SQLOperator[].


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1984 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-21 23:29:46 +00:00
mdb 38ffc04a87 Needing the fully qualified column expression is not the common case, so let's
add unqualified constructors to make it easy to simply issue queries on a
single table based on values in columns.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1983 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-21 23:10:12 +00:00
mdb a5c1c96838 Added Conditionals.IsNull. Modified Key() to use IsNull if a null value is
passed in for a column value.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1982 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-21 23:00:01 +00:00
mdb 0498fc395f Need to get that column as a byte so that it is boxed into a Byte otherwise
we'll end up with an Integer which reflection doesn't convert to a Byte when
coercing the method parameters.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1981 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-21 17:13:55 +00:00
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 328bbeb644 New safer library locating process.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1975 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-11-16 22:52:38 +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