Commit Graph

1895 Commits

Author SHA1 Message Date
mdb 71810c4e5d Enumerate our library dependencies in a way that can be imported into the
external build process.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1947 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-10-13 20:44:43 +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 ac0ed6ae03 Don't duplicate the project name.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1929 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-26 20:35:31 +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 f0a8a76238 Added missing import.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1926 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-26 19:27:59 +00:00
mdb d79766f9f5 Extracted the dependency checking into a shared build file which is also used
by the tests build file. Added a call to build the tests to the standard dist
call to discourage test rot. Modified build process to copy library
dependencies into dist/lib during build so that dist/ contains all build
dependencies and build results at the end of the build.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1925 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-26 19:07:55 +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
mdb 121b864558 Added support for byte arrays and full table loads.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1921 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-21 00:31:21 +00:00
mdb d68fdb8106 Allow XHTML generation to be deactivated for Java's old skool HTML viewing
code.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1920 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-20 22:32:07 +00:00
mdb 4fb11519a8 (Hackily) handle duplicate key exceptions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1919 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-20 00:34:50 +00:00
mdb a95babcc00 Don't force an id generation strategy. The default is to assume the code will
provide one. Separate out logging for depot so that fine grained logging can be
enabled if needed without turning on such logging for all of samskivert.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1918 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-20 00:15:34 +00:00
mdb 7aa0c42d5f Collection queries will be invoked directly, though things will likely evolve
once we implement caching.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1917 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-19 23:56:49 +00:00
mdb d2a1f87f5a Automagic table creation. The migration stuff is not yet implemented and
various fancy things like embedded objects and constraints and kitchen sinks
are not yet implemented, but the basic bits are functional (including IDENTITY
column primary key handling).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1916 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-19 22:45:33 +00:00
mdb 68558e11bd Added reset().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1915 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-19 22:42:21 +00:00
mdb 5b983f8e19 Javadoc fixes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1914 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-19 20:45:39 +00:00
mdb 0c1e0c6966 Finished most of the basic implementation. Now on to magical table creation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1913 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-19 20:29:58 +00:00
mdb d6b44eefd9 Close <input> tags in XHTML compliant way (<input/>).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1912 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-19 19:41:35 +00:00
mdb f19377411f Untested support for partial object updates.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1911 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-18 23:11:13 +00:00
mdb e4d6a0266b Added getName().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1910 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-18 23:08:43 +00:00
mdb a755572474 Further progress on the ORM stuff. Miraculously, upon running this nearly
thousand lines of super funny looking generics and reflection filled code the
first time, it just worked. Yay for static typing or something.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1909 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-15 01:48:29 +00:00
mdb 9ed739ba61 Brought some test bits up to date.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1908 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-15 01:45:43 +00:00
mdb 6c9a29b4bd Allow custom Label derivations to be used with MultiLineLabel.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1907 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-15 01:19:55 +00:00
ray 900dd533ea StringBuilder instead of StringBuffer.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1906 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-14 23:33:16 +00:00
mdb 5fcb5b907b The beginnings of a new persistence framework which leverages the annotation
goodness of the new EJB3 persistence framework but is not "managed" (ie. is not
real ORM).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1905 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-14 21:10:33 +00:00
mdb a39c1bac86 Moved static methods to the top of the class; added configureAction() which
complements createActionButton() but gives you control over creating the button
(and works for any AbstractButton derivation).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1904 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-13 21:27:50 +00:00
mdb 05abb4dea4 Allow IntTuple to be serialized.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1903 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-13 00:41:04 +00:00
mdb 420b86f2db Type safety is a goodness.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1902 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-12 23:24:03 +00:00
ray bb500f938e Use varargs instead of having a few different overloaded versions of the
same methods. But then I went ahead and added String varargs versions,
otherwise any old code that passes a String[] would have to cast to
Object[] to avoid compiler warnings. (Because the args don't quite match,
the compiler is unsure whether you want your String[] to be the first Object
arg or whether the whole String[] should be cast to the Object[].)


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1901 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-11 22:15:46 +00:00
mdb 1b16a084bb Cache resolved resource bundles based on our path to avoid stepping on other
message managers.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1900 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-10 16:47:30 +00:00
ray b04e96dc27 Now (actually, a while back...) that the Object[] version of splice is
genericized, we don't need a separate version for String[].


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1899 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-06 00:02:37 +00:00
mdb 41b316229a Added insert() to complement append(), made append() use insert().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1898 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-09-05 23:30:02 +00:00