Michael Bayne b8d957ce4c Accept Iterable rather than Collection everywhere we reasonably can.
Note one potentially consequential diff in DepotRepository:

-        return keys.isEmpty() ? Collections.<T>emptyList() :
-            _ctx.invoke(new FindAllQuery.WithKeys<T>(_ctx, keys));
+        return _ctx.invoke(new FindAllQuery.WithKeys<T>(_ctx, keys));

This should not actually impact anything. FindAllQuery.WithKeys first checks
for keys that are cached, coping with a potentially empty set (there will be
none), then if there are keys that remain to be loaded from the database, it
loads them. The first check will NOOP as will the second check. So this should
just be a slightly more circuitous path to getting back an empty collection. It
should not result in a zero row matching query being sent to the database.

With that in mind, it seemed inelegant to prematurely optmize the return of an
empty collection.
2010-02-25 06:48:27 +00:00
2009-07-12 21:37:44 +00:00
2009-04-29 18:56:05 +00:00
2009-09-09 19:56:11 +00:00
2008-11-17 18:41:06 +00:00
2009-09-13 03:05:37 +00:00

Depot Persistence Library
-------------------------

Depot is a relational persistence library for Java. It is an ORM library, but
has aims that are somewhat different from the popular "managed" persistence
libraries like Hibernate and others.

Website
-------

See the Depot website for documentation and other info:

  http://code.google.com/p/depot/

Building
--------

The library is built using ant. It can be found here:

  http://jakarta.apache.org/ant/

Next, ensure that the necessary third party jar files are copied to the lib/
directory. See etc/libs-incl.xml for the list of those jar files.

Finally invoke 'ant dist' to compile the code and generate a jar file. Invoke
'ant -p' to see information on other build targets.

Depot also provides .classpath and .project files for Eclipse users which
require that you set an EXT_LIBS_DIR variable indicating the location of the
external jar dependencies. The Depot Eclipse project also depends on the
Eclipse project for the samskivert library. That library can be found at:

  http://code.google.com/p/samskivert/

License and Distribution
------------------------

Depot is released under the LGPL. This means you are free to use Depot on any
project, open source or proprietary, but that any modifications made to the
library must be made available to the maintainers. See COPYING for more
detailed information.

The most recent version of the Depot source code is available at the website
listed above.

$Id$
S
Description
A relational persistence library for Java.
Readme BSD-3-Clause 1.8 MiB
Languages
Java 95.6%
Shell 4.3%