Commit Graph

1938 Commits

Author SHA1 Message Date
mdb 2624e2d9e1 Added loadSchema().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1790 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-20 21:58:50 +00:00
mdb 95f9f9405b Introduced a dependency on the Jakarta Commons IO library to the JDBC package.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1789 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-20 21:58:37 +00:00
mdb d280925985 Added loadAll().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1788 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-20 21:58:13 +00:00
mdb b3049d6a1d Only put the colon in if we've got a logging context.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1787 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-16 00:44:46 +00:00
mdb 426eedfafe Make the logging context (the function we were in when we generated the
message) optional.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1786 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-16 00:41:21 +00:00
mdb 85b6a76cf2 Prevent NPE when operating on a null list. A null list should be treated as an
empty list.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1785 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-15 23:15:58 +00:00
mdb f6f7f3f773 Enumerate our library dependencies.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1784 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-13 00:23:06 +00:00
ray aed7a53e28 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1783 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2006-02-06 22:02:43 +00:00
mdb 3acf8d9e57 Removed the changelog file, that information can be obtained from the version
control system.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1782 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-06 19:38:18 +00:00
ray 7068ca93d1 Fixed build: left something in that I was hemming and hawing about:
something that would be slightly more efficient if the other Collection
was an ArrayIntSet, vs something more general for all Interables. I suppose
I could put both in: test of ArrayIntSet and do the most efficient thing,
then Interable and end up creating an Interator, or pass to the super method.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1781 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-06 19:32:23 +00:00
ray 3aba38b8de Created an Interable interface.
ArrayIntSet was redefining some methods in the superclass (and doing
the exact same thing). Fixed up, but left in slightly more
efficient implementations if the other collection is Interable or an
IntSet.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1780 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-06 18:49:31 +00:00
andrzej 49ed5e05c3 Use isBlank instead of matches.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1779 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-01 23:19:53 +00:00
andrzej 9c81cbfaae Handle the special case of splitting up an empty source string, which
should return an empty array rather than an array containing an empty 
string.



git-svn-id: https://samskivert.googlecode.com/svn/trunk@1778 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-01 23:18:18 +00:00
ray 7d7c32b6e2 Added a little flag that subclasses can use to tell whether the layout
is being painted as part of the 'main' rendering of the text, or whether
it's an auxiliary rendering used for such things as shadows or outlines.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1777 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-01 22:03:56 +00:00
ray f5e8fdda6e Allow subclasses to add attributes to the AttributedTextString.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1776 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-02-01 02:11:25 +00:00
mdb fc810b5c2a Refactored handleAction() to allow the method lookup magic to be used with
non-Swing toolkits.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1775 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-31 20:33:07 +00:00
mdb 9d62b407e7 Migrated samskivert into its own, sensibly organized, repository.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1774 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-30 19:52:55 +00:00
ray 5966766e26 Document a feature that's not obvious in the algorithm and which I now
depend on.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1773 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-26 01:16:02 +00:00
ray f64492960b Our old pal Occam did a bit of shaving around some of the bushier methods:
they can be implemented in terms of some of the other methods.
(For example, contains() now calls indexOf() instead of nearly duplicating
it.)


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1772 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-25 00:40:20 +00:00
ray 66dbc52030 Incorporate the load factor when calculating the minimum size to trigger
a shrink.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1771 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-24 21:12:26 +00:00
ray 35a3c9c784 - Changed default buckets to 16 from 64.
- Removed protected checkGrow() in favor of Collections-style public
  ensureCapacity().


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1770 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-23 23:05:37 +00:00
ray c0b7ad1942 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1769 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2006-01-23 19:12:55 +00:00
mdb ae49badf90 We always want to try the default site bundle.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1768 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-21 21:36:06 +00:00
ray 1cded0f96c Some fixups, escape colors prior to unescaping.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1767 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 22:46:36 +00:00
elizabeth daf016d62f blowtorch crufty tab indents; missing templates 404 instead of spewing logs
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1766 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 10:52:19 +00:00
ray da75b303bc Removed unneeded variable.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1765 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 02:20:17 +00:00
ray 9055c585f4 Added wacky jiggery to parse color tags of the form "#hhhhhh" where h is a
hex digit and color text segments within a label.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1764 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 02:19:00 +00:00
mdb a210fb8dab Added percent() which also handles 0/0.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1763 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-18 18:29:28 +00:00
mdb 4ee768e50e Occam's razor.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1762 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-17 00:18:37 +00:00
mdb 54e0c7db9c Added routines for sorting lists, collections and iterator contents.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1761 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-17 00:18:02 +00:00
mdb e2d440a121 Added a method to reconstruct a URL, query parameters and all, and use that
when logging a logic failure so as to be maximally informative.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1760 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-16 23:10:47 +00:00
mdb a6909f4c77 Added additional comments.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1759 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-16 22:51:21 +00:00
mdb ef5636a175 Allow the application to customize the conversion of arbitrary error messages
to friendly error text.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1758 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-16 22:50:22 +00:00
mdb 2d47fd2690 Use get() in our convenience methods.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1757 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-15 05:21:43 +00:00
mdb 4b81ea76b8 Added get() for when you expect your query to match only a single record and
want the ResultSet to be properly closed once you have that record.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1756 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-15 05:20:42 +00:00
ray 068f94fd5c Occam's razor: use Arrays to compare the stack trace elements.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1755 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-12 00:45:43 +00:00
mdb 3115a306e2 Updated date on copyright.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1754 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-11 19:28:13 +00:00
mdb b425ea7b0d A standard Java logging filter that consolidates repeat messages up to a
specified count and reports "Previous message repeated N times." when a
non-duplicate message is finally logged.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1753 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-11 19:27:23 +00:00
mdb ccb2a9ceaf Added an equality check for exceptions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1752 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-11 19:00:26 +00:00
mdb d8e2108797 Nevermind, looks like java.util.zip has a CRC32 class that does things natively
even.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1751 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-04 00:42:33 +00:00
mdb 1611d164a8 Incorporated code for computing the CRC32 hash function.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1750 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-04 00:32:03 +00:00
mdb fc4d94a70c Modified the serial executor to support timing out of hung executor tasks.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1749 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-03 21:50:50 +00:00
mdb d87f5f635f Various unit test fixes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1748 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-03 21:49:09 +00:00
mdb ca8a69f9e1 Mark the executor tasks as daemon so that they don't hold up the JVM when it's
time to exit.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1747 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-03 19:20:27 +00:00
ray 4478f67e8b Destroyed the unnecessary NestableIOException.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1746 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-20 02:07:01 +00:00
mdb 777a00bc4e Give a web application the chance to globally translate domain specific
exceptions into friendly exceptions that preserve a sensible user experience.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1745 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-15 19:24:58 +00:00
mdb b1e9073953 Out damned log messages.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1744 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-13 19:09:04 +00:00
mdb f5ee2f5f74 Direct varying levels appropriately.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1743 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-12 20:26:29 +00:00
mdb cd1515cb21 Avoid NPE.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1742 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-11 23:06:35 +00:00
mdb 51bf055fbd Use a string for the path.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1741 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-09 01:31:50 +00:00