4bb926c238
Compile the tests on every compilation.
Michael Bayne
2010-12-09 00:02:18 +00:00
ce71fa01fa
More use of Preconditions.
Michael Bayne
2010-12-08 20:24:36 +00:00
84758df725
Added support for joins when doing field selections:
Michael Bayne
2010-12-08 20:03:27 +00:00
0bfe3959fc
Add support for extracting our column data by position rather than name.
Michael Bayne
2010-12-08 20:00:21 +00:00
44b9b4ff90
Use Exps.trueLiteral().
Michael Bayne
2010-12-08 19:37:54 +00:00
aa294033cb
Clean up after our enum key testing, use trueLiteral().
Michael Bayne
2010-12-08 19:37:25 +00:00
963a9a0fc1
Guava makes defensive programming more pleasant.
Michael Bayne
2010-12-08 19:35:50 +00:00
b42ec35b09
Make this into a proper value class.
Michael Bayne
2010-12-08 19:19:22 +00:00
730f4c79ae
Make the creation of true and false literals less hacky.
Michael Bayne
2010-12-08 19:18:52 +00:00
5bdc7d6746
We want to use the class that owns the column expression rather than supplying one that may be incorrect.
Michael Bayne
2010-12-08 19:10:45 +00:00
ad9f068355
Prefer a different fork to stick in it, per Ray.
Michael Bayne
2010-12-08 18:28:41 +00:00
f6a2ad1000
Exciting new additions:
Michael Bayne
2010-12-08 08:23:27 +00:00
dd85f630e4
We need to preserve our type parameter.
Michael Bayne
2010-12-08 00:42:11 +00:00
fc4cda9260
Allow multiple join clauses. Added a clone() method for reusing partially configured queries.
Michael Bayne
2010-12-08 00:41:06 +00:00
355b084292
Further QueryBuilder improvements. In any case where you may want a specially configured clause, allow adding the clause directly. Removed some repetition by using said methods from factory versions. Other tidying.
Michael Bayne
2010-12-08 00:23:15 +00:00
fca5cb2386
Added QueryBuilder.delete() along with a bunch of sanity checking. I considered having a separate deleteFrom(record).where(...).delete() builder, but from(record).where(...).delete() was so much nicer that I decided that preventing the specification of invalid clauses could be deferred from compile to runtime.
Michael Bayne
2010-12-07 23:41:27 +00:00
1e86fba829
Added a limit that takes only a count.
Michael Bayne
2010-12-07 23:14:29 +00:00
f48a688d99
Scratch the FluentRepository, let's do things properly with a QueryBuilder. With this you can write queries like:
Michael Bayne
2010-12-07 22:49:28 +00:00
44a8fccc86
Added FluentRepository, which provides helper methods for creating all of the various query clauses.
Michael Bayne
2010-12-07 21:05:42 +00:00
569cce8276
Whitespace fix.
Michael Bayne
2010-12-07 20:58:41 +00:00
7a1f87f2a0
IntArrayMarshaller was doing things in the wrong places to work as a delegate for a TransformingMarshaller.
Ray Greenwell
2010-12-01 20:59:12 +00:00
52f432270d
Added a test for using an Enum as a record key, observed brokitude, fixed brokitude, but did not take the opportunity to do so in a non-hacky way.
Michael Bayne
2010-12-01 19:53:03 +00:00
5f937fae61
Omit ant runtime classes.
Michael Bayne
2010-12-01 19:41:32 +00:00
eaadb3228a
Added support for non-ByteEnum enums, which are stored using their string name.
Michael Bayne
2010-12-01 19:36:01 +00:00
fd035fd463
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2010-11-20 02:54:24 +00:00
35f9d8339e
[maven-release-plugin] prepare release depot-1.1
Michael Bayne
2010-11-20 02:54:12 +00:00
6365f290d9
Put our templates in src/main/resources.
Michael Bayne
2010-11-20 02:50:38 +00:00
ec03ede58a
Go ahead and make maven-deploy publish locally unless otherwise directed.
Michael Bayne
2010-11-18 23:06:24 +00:00
47b09269ca
IDEA module file for Depot. You must set M2_REPO for this to import.
Par Winzell
2010-11-18 18:22:54 +00:00
c70cf7c1c6
Fix column indices in hsqldb. Like mysql, it can't handle parenthesis around its index column expressions.
Charlie Groves
2010-11-18 00:48:20 +00:00
8206abb33d
Attach guava source from maven
Charlie Groves
2010-11-16 21:34:47 +00:00
c2cd1e6d9f
Require that a Maven repository be specified. If you want to install locally, use "mvn install".
Michael Bayne
2010-11-15 19:38:14 +00:00
e39e7fea42
We don't actually use any Ant code in Depot. Amazing!
Michael Bayne
2010-11-15 18:03:38 +00:00
969aea38fe
Reference platform docs at their new location, add link to samskivert docs.
Michael Bayne
2010-11-15 18:03:05 +00:00
d1f3ed9ed9
Added a Maven Deploy target, generate XML test output.
Michael Bayne
2010-11-12 23:07:15 +00:00
206781f529
Depend on samskivert as a project and inherit its dependencies, export our own dependencies, bump to guava r07
Charlie Groves
2010-10-28 20:09:15 +00:00
1b1792aabe
Hah! Perhaps there was some use in having the class be named. However, I'm not sure what this is really testing. If the CRUD test with CustomType works, then transforming field marshallers work, so why do we need to make sure they have a specific class name?
Michael Bayne
2010-10-25 20:16:40 +00:00
2db4506a2b
Nixed extra space.
Michael Bayne
2010-10-25 20:15:55 +00:00
adb3d643b9
Clean the test classes on a basic clean.
Michael Bayne
2010-10-25 20:15:43 +00:00
c7b60a1de8
No value in having the transforming marshaller be a named class. Switch to slightly more concise code.
Michael Bayne
2010-10-25 20:09:37 +00:00
ff3f0aa337
Updated with Maven dependencies.
Michael Bayne
2010-10-25 19:57:25 +00:00
5046c1d906
Unused import trimming. Type parameter cleanup.
Michael Bayne
2010-10-25 19:55:27 +00:00
ec04d618c4
Nixed vestigial methods.
Michael Bayne
2010-10-25 19:53:34 +00:00
230a53faf8
Depot hasn't needed Velocity for a long time.
Michael Bayne
2010-10-22 06:00:23 +00:00
c564c36e3a
Headerz
Charlie Groves
2010-10-19 00:37:42 +00:00
a649efac99
Missing @Overrides, extra imports
Charlie Groves
2010-10-19 00:33:31 +00:00
9368da4ebf
Skip classes in GenRecordTask if they have @GeneratedValue on a field without @Id. I'd rather stop the build, but other errors in class processing seem to lead to skipping, so I'm not rocking the boat.
Charlie Groves
2010-10-19 00:29:31 +00:00
f9619f0dc8
We don't have a rsrc/ directory any more, so that can go.
Michael Bayne
2010-10-19 00:28:10 +00:00
9d9c4e3e5e
Get the genrecord and tests targets running again
Charlie Groves
2010-10-19 00:22:05 +00:00
5c56ec1fe7
Only do our signing when we're deploying to the public repository.
Michael Bayne
2010-10-18 21:53:03 +00:00
1c28f34ac4
Use hardcoded plugin version numbers to appease the Maven 3 nazis.
Michael Bayne
2010-10-18 21:52:16 +00:00
590cf991d7
No exclusions, we've always got all of our dependencies.
Michael Bayne
2010-10-15 16:48:27 +00:00
8181c409f9
Switched to obtaining dependencies via Maven Ant tasks.
Michael Bayne
2010-10-15 16:27:06 +00:00
92c201575d
Update the tests. One test no longer works, because the StringArray transformer now inherits the fromPersistent method from StringBase, and has a generic return type. Perhaps we can update FieldMarshaller to deal with Types instead of classes when validating... But for now I did what all bad programmers do when a test fails: comment it out.
Ray Greenwell
2010-10-12 20:39:07 +00:00
dcd4046c60
Transformer rejigger. Transformer is now an abstract class with a default init() method. The Type parameter has been removed from fromPersistent(). The Transformer annotation now has some new attributes that can be used to hint whether you want a result that is immutable or interned, the meaning and support of both is completely up to the Transformer. Brought back my uber Iterable<String> transformers, with immutable/intern support in a single Transformer. - interning will intern the strings - immutable will wrap the collections in Collections.unmodifiable* (using a guava Immutable collection ends up creating a temporary builder collection and then copying the elements) - if immutable AND interning then the collection itself is "interned". At some point I'll add support for nearly any Iterable of an otherwise supported type, so that our Records can have List<Integer> and other such fields.
Ray Greenwell
2010-10-12 19:35:07 +00:00
2ff3bac12d
Look for any worthy method, even in superclasses.
Ray Greenwell
2010-10-01 01:29:46 +00:00
c7eb6f56ef
Roll this back until I do some more testing.. :(
Ray Greenwell
2010-09-30 22:25:16 +00:00
89bec13aa2
Added Transformers that will always return immutable collections, interned Strings, or both. I may rework this into attributes that can be specified for any @Transformer annotation, and leave it up to each Transformer whether they are honored (and how).
Ray Greenwell
2010-09-30 21:30:59 +00:00
9fafebd487
Support creating arrays of java.sql.Date.
Ray Greenwell
2010-09-29 18:31:31 +00:00
f293412671
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2010-09-23 18:55:03 +00:00
448c89289a
[maven-release-plugin] prepare release depot-1.0
Michael Bayne
2010-09-23 18:54:54 +00:00
020d33c8aa
Was looking at how some things work and made a few drive-by optimizations to FindAllQuery. - We don't need to destructively modify the Set of keys to fetch if we hold on to one iterator. - We can create an ArrayList that won't need to grow if our keys Iterable happens to be a Collection. - And, just generally prefer Lists factories to specific constructors.
Ray Greenwell
2010-09-20 23:21:06 +00:00
8c5f333f73
Is there a reason why this didn't return TIME? It seems to work.
Andrzej Kapolka
2010-09-17 02:46:17 +00:00
c609db73de
Prepare for forthcoming release. Apparently the Maven "process" is to leave your POM at nextversion-SNAPSHOT and then when you do all the release machinations, it shaves the -SNAPSHOT off, tags, builds and ships your thing, then commits a new POM with nextnextversion-SNAPSHOT as the version.
Michael Bayne
2010-09-10 16:35:53 +00:00
07e4bdec4a
Move overview.html to a place where Maven's javadoc plugin will find it.
Michael Bayne
2010-09-09 20:31:51 +00:00
721b3c73ef
Bye bye Ivy.
Michael Bayne
2010-09-09 20:31:31 +00:00
33f6351af5
Add link to project website to docs.
Michael Bayne
2010-09-09 20:28:34 +00:00
d2a6b4422f
Various updates to bring POM up to date with current "best practices."
Michael Bayne
2010-09-09 20:27:45 +00:00
0fea1dfb07
Nix link since we're not including protected bits in the docs.
Michael Bayne
2010-09-09 20:27:18 +00:00
685e7e8ef5
Nixed some bits inherited from copied-and-pasted samskivert POM.
Michael Bayne
2010-09-09 05:30:30 +00:00
2d3cfff9b4
Adding needed Javadoc links. Removing unneeded system properties. Configuring plugins to use latest version.
Michael Bayne
2010-09-09 05:26:50 +00:00
5fe094a804
Import needed for Javadoc comment.
Michael Bayne
2010-09-09 05:26:16 +00:00
d2d88aa25e
A pom file for Depot. I believe that once the samskivert Maven repo is authorized by Sonatype, I'll be able to upload Depot into it as well, since they both use the com.samskivert groupId. w00t!
Michael Bayne
2010-09-08 23:30:08 +00:00
5c5a0f8545
Tell eclipse about the new way things are organized.
Dave Hoover
2010-08-30 18:59:34 +00:00
e2c7446732
We want our ivy.xml in ivys/ivy.xml as well.
Michael Bayne
2010-08-28 01:28:20 +00:00
a3a462ec04
Tell Ivy that we want to publish jar, source and javadoc artifacts.
Michael Bayne
2010-08-28 01:25:44 +00:00
4966f76067
Updated to reflect my growing understanding of how to use Ivy.
Michael Bayne
2010-08-28 01:23:16 +00:00
57b2aa31d4
Updated the readme to suggest building using build-ivy.xml so that dependencies are automatically fetched.
Michael Bayne
2010-08-27 19:26:34 +00:00
e648cfc7bd
Wrangled Ivy into obtaining samskivert dependency from it's own "repository".
Michael Bayne
2010-08-27 19:23:48 +00:00
3f7a7be9da
Some Javadoc fixing. Though it's very annoying that I have to use @ instead of @. Thanks for making things totally unreadable in the source file javadoc. How about \@ instead?
Michael Bayne
2010-08-27 18:11:22 +00:00
026e49518c
Don't need this conditional business here.
Michael Bayne
2010-08-27 18:01:03 +00:00
aa879c3019
Allow the release version to be specified on the command line.
Michael Bayne
2010-08-27 17:57:38 +00:00
6f7527ec6b
Fixes to Ivy-based build.
Michael Bayne
2010-08-27 17:54:06 +00:00
3535ffc9fd
Got moved to src/tests/java.
Michael Bayne
2010-08-27 17:49:46 +00:00
28f9439b5f
More layout standardizing.
Michael Bayne
2010-08-27 17:49:18 +00:00
6778ada227
Moving toward more standard project layout.
Michael Bayne
2010-08-27 17:47:07 +00:00
5a97565eaa
New HSQLDB requires length for VARBINARY.
Michael Bayne
2010-08-27 17:41:11 +00:00
2471487d2f
Oops, that will never be null.
Andrzej Kapolka
2010-08-18 22:43:33 +00:00
af0c636517
More fixes for named columns. DepotMarshaller expects the names of the columns in the results to match the FieldMarshaller column names, so we have to use those rather than the field names. Also, shadowed fields need to use the column names of the fields that they're shadowing.
Andrzej Kapolka
2010-08-18 22:40:03 +00:00
061219bc57
Postgres returns a timestamp from date_trunc, whereas MySQL returns a date from date(). We should probably just modify DateFuncs.date to return a date in both cases (perhaps with a separate DateFun.DateCast class), but for now it's easier to have MySQL return a timestamp as well.
Andrzej Kapolka
2010-07-22 21:37:11 +00:00
27ff0f6f55
And this should be getting the column name, too (though it doesn't actually do anything yet except log a message).
Andrzej Kapolka
2010-07-15 00:50:59 +00:00
cd94a13551
While I'm in there, this also looks wrong.
Andrzej Kapolka
2010-07-15 00:30:40 +00:00
5dd3ae92a5
Looks like this should be the column name, not the field name.
Andrzej Kapolka
2010-07-15 00:22:28 +00:00
c7ce640a78
Prefer Guava to Samskivert.
Ray Greenwell
2010-07-14 18:51:40 +00:00
e2a73dfa61
Use Unix line endings.
Michael Bayne
2010-07-07 15:50:46 +00:00
9d83cc96a5
For the String[] transformer, encode null elements as "\" followed by the terminator (we encode the terminator as a different character). This is somewhat nicer when inspecting an encoded String, and allows for a future in which the decoder easily counts the number of terminator characters and pre-allocates the storage, if we so desired.
Ray Greenwell
2010-07-06 20:54:48 +00:00
95f2fc6938
A Transformer from a Set<ByteEnum> -> Integer, plus some new tests.
Ray Greenwell
2010-07-06 18:30:32 +00:00
5ec15839d3
Factored shared code into a base class. Restructured to avoid double checking for null.
Michael Bayne
2010-07-06 18:22:09 +00:00
0b84e08917
Nixed deprecated transformer.
Michael Bayne
2010-07-06 18:15:37 +00:00