mdb
e65d89b3fd
gotConnection() may be called before our constructor is called (indeed it is),
...
so we need to create or update our session as appropriate therein.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1728 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-05 01:54:42 +00:00
mdb
b92cd64617
Oops, we'll be needing these.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1727 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 23:03:41 +00:00
samskivert@gmail.com
03344a7938
Added a method to make it easier to insert schema migration calls.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1726 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 23:02:56 +00:00
ray
e6fe41e4a7
Put a space to the right of all right-aligned numbers in tables.
...
Strings are left-aligned, and when the two are next to each other it can
look bad.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1725 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 18:39:10 +00:00
mjohnson
ee1eb9000e
New version of TableSorter, modified with the createSortedTable static
...
method.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1724 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 02:26:32 +00:00
mdb
6518fe1b43
Javadoc fixes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1723 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-03 22:03:11 +00:00
mdb
fa06b0b11c
Added a method for generating an always up to date copyright blurb. This is
...
only useful for webapps, but it's one less thing to update every damned year.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1722 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-26 01:12:41 +00:00
ray
237618f884
Allow menu items to call back for re-layout, don't submit a null command.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1721 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-20 09:47:55 +00:00
mdb
ebb34d206d
Added a getParameter() that returns a default string if the desired parameter
...
is not specified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1720 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-18 18:50:33 +00:00
ray
ba033e20ad
Best to make sure it compiles before checking it in.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1719 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-12 21:07:21 +00:00
ray
7a73ee5fb1
Define a handy-dandy public static RunQueue implementation that posts
...
Runnables to the AWT dispatch thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1718 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-08-25 08:06:09 +00:00
ray
9ad9d4deb4
Rather than define a whole public class, publish an interface:
...
Interval.Runnable, that can be used to retrieve the Interval from the
java.lang.Runnable posted on a RunQueue.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1717 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-12 20:59:37 +00:00
mdb
5aec1c158f
A ResultListener created for easy listener chaining.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1716 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-28 03:04:10 +00:00
ray
a4cd2d533b
Added a close() method so that we can explicitely close free the resources
...
used internally to the Cursor without having to read each object.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1715 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-13 02:16:03 +00:00
ray
d793e90aec
Changed something that bugged me a bit: there can be only one Constraints
...
that is FIXED, force everyone to use that. Rejiggered some stuff to
potentially half the number of HashMap lookups done during layout for
each component in our target container.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1714 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-10 01:13:50 +00:00
ray
775310f1a3
Actually wired up the weights of Constraints. They are only used
...
if the layout policy is STRETCH. It would probably also make sense to
make them work with EQUALIZE, but that would require a few more changes.
(If the maximum width component had a weight of 2 you could set the
baseline width to half that.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1713 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-09 22:39:12 +00:00
mdb
65c34abe89
Created a utility class that allows an action to be taken only after a set
...
of conditions have been met. If anyone has a better suggestion for a name,
I'm all ears.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1712 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-08 18:28:01 +00:00
mdb
dd02edc8e8
Preserve 1.4 compatibility.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1711 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-08 03:04:00 +00:00
mdb
7394f64138
Added stringCode().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1710 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-08 01:17:34 +00:00
mdb
2e35d2d8f1
Restructure things so that we can get our hands on the actual Interval
...
derivation that is being posted to a RunQueue for profiling and reporting
purposes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1709 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-06 18:18:17 +00:00
mdb
a043d07b73
Fix bug that can occur when stripping off the prefix from the package of a
...
qualified class name.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1708 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-26 22:31:09 +00:00
mdb
f26d3214e2
Avoid creating a new array when we notify our observers in SAFE_IN_ORDER
...
mode unless our list has grown since we last issued a notification.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1707 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 22:10:18 +00:00
samskivert@gmail.com
a0f67d5721
Made remove() work in our Interator.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1706 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:35:41 +00:00
mdb
abe8dcef25
Synced up the spelling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1705 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:23:21 +00:00
ray
9af57bbc1a
Added synchronizedIntSet().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1704 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:20:44 +00:00
ray
3283e99310
Oh, IntIntMap, you are the retarded stepchild of the samskivert.util package.
...
You don't implement Map, you don't grow or shrink...
but at least now you return Interators and have a proper entrySet() method.
(Added a note that maybe someday we should fix it up more.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1703 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:04:13 +00:00
ray
6bdd153cba
Added a SynchronizedIntSet which must back the intKeySet() method of
...
a SynchronizedHashIntMap.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1702 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 19:55:10 +00:00
ray
51429770cb
- Added a method to IntMap: intKeySet(), which returns an IntSet of
...
the keys in the map, which may be Interated over, etc.
- Moved the Entry definition into IntMap where it always should have been,
I think originally I had it in HashIntMap so that the extra annoying import
wasn't necessary. Added an empty subinterface to HashIntMap for backwards
compatability.
- Implemented an optimized putAll() in HashIntMap when adding other IntMaps.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1701 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 18:29:53 +00:00
ray
8e050fa4bb
Added "Interator" and plugged in some quick usage. I'll add more soon.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1700 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 17:49:32 +00:00
mdb
16c5b7e727
We call MessageUtil.escape in the Narya i18n code but not here where it is
...
also needed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1699 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 01:48:37 +00:00
ray
0d73e38193
It's surely faster to add all the elements and then sort, which is why
...
the class is SortableArrayList rather than SortedArrayList (which would
just always insert sorted in add()).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1698 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-16 17:39:49 +00:00
ray
9f00804edf
Spelling consistency.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1697 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 23:00:57 +00:00
ray
62133d2232
- Nixed CompoundIterator, made Collections.getMetaIterator() handle
...
elements in the passed in collection that are Iterators or Collections.
- Nixed SortedIterator, added variants of getSortedIterator() to
Collections.
- Also added getUnmodifiableIterator() and getRandomIterator() to
Collections.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1696 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 22:53:00 +00:00
andrzej
7cc4a56638
Allow null values in HashIntMap.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1695 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 20:51:13 +00:00
mdb
4ecc51e922
Added simpleFormat().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1694 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-09 07:30:18 +00:00
ray
ae1df7e879
Implemented clear() rather than inheriting the *extremely* inefficient
...
clear() from AbstractList.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1693 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-09 01:54:16 +00:00
mdb
8fd757c1e4
Add a version of shortClassName that takes the class name directly.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1692 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 23:55:00 +00:00
elizabeth
f19198cbce
Tightened up restrictHTML regexes to prevent <\!-- or unclosed " html defacement
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1691 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 23:12:59 +00:00
mdb
f359b77ff5
Don't try to rollback if the failure resulted in the connection being
...
closed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1690 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 17:14:56 +00:00
elizabeth
b81f4113fc
fixed missing call to JDBCUtil.escape
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1689 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-07 21:54:57 +00:00
mdb
223cdd8274
We need to escape \ as well as '.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1688 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-07 21:51:30 +00:00
mdb
aa74625b0a
Switched to different structure for reporting item removal per Ray's
...
suggestion. This allows proper handling of value classes that cannot be
made to implement an interface or extended or otherwise fiddled with.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1687 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 20:23:37 +00:00
mdb
809df481c1
We need to notify all values about removal when we clear the table.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1686 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 02:45:45 +00:00
samskivert@gmail.com
5f02c3fe6e
Allow a value in an LRU hash map to be notified when it gets the boot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1685 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 02:41:24 +00:00
ray
489e3a72c7
- synchronized the reset() method
...
- avoid synchronization in waitForResponse() if possible.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1684 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-03 20:43:46 +00:00
mdb
e02258a053
Fixed typo.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1683 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-03 18:15:56 +00:00
mdb
39936ac7d4
Added a loadByExample() variant that takes a field mask.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1682 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-01 21:18:27 +00:00
mdb
c099fb97bb
Return the last inserted id when inserting records.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1681 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-24 07:06:58 +00:00
mdb
aeef770bec
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1680 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-24 06:49:37 +00:00
mdb
3ba4a640e5
Let the caller log a stack trace if such a thing is appropriate.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1679 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-07-21 21:32:16 +00:00