Commit Graph

1223 Commits

Author SHA1 Message Date
ray 1ccff7d9d5 Canned getPolygon(), which made a seemingly useless rectangular polygon and
wasn't used in anywhere anyway.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1249 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-09 21:15:14 +00:00
ray d8d16bcbf5 Added clearCookie().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1248 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-09 00:48:37 +00:00
ray e6dbb1cf5b Wrap URLEncoder nicely in StringUtil.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1247 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-08 23:52:50 +00:00
mdb 66cfb9ccf6 Some table sorting code I've had lying around for ages which doesn't work
in the general case, but can be used in some circumstances so I'll go
ahead and check it in for now.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1246 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-08 23:24:58 +00:00
ray 3050822887 Avoid deprecation warnings.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1245 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-08 00:45:18 +00:00
mdb 5c036422f6 Removed vestigal import.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1244 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-08 00:40:16 +00:00
mdb 0ac929d603 Can the deprecated business.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1243 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-08 00:39:54 +00:00
ray efe326f8db Avoid deprecation warnings.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1242 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-08 00:35:57 +00:00
ray c9239fd74a Use ObjectUtil.equals()
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1241 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-07 02:14:18 +00:00
ray 5e96fd2e2d A method name beginning with 'load' in a repository class would imply
database traffic happening in that method, such is not the case with these.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1240 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-07 02:13:27 +00:00
ray 0b86451fb3 Created a CookieUtil for looking up cookie values.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1239 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-06 22:50:28 +00:00
ray 3748e9ea6c These methods can be static, and they're useful from more places as such.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1238 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-06 22:49:57 +00:00
mdb 1b4557243b Let the optimization be specified by the top-level ant invocation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1237 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-06 21:26:50 +00:00
mdb e30bb42a3a No forcing jikes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1236 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-06 21:25:12 +00:00
ray f95a813b62 Have currencyPennies call the other.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1235 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-02 02:22:21 +00:00
eric b2b4e0ec7d Added a couple of useful functions for convertind double dollars or
pennies to strings.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1234 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-10-01 22:58:31 +00:00
ray 20fd2a0bd7 Utility class to safely do a http POST request.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1233 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-26 02:36:41 +00:00
eric ba21ce387c Jam the data tool into the context.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1232 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-25 18:06:29 +00:00
eric 967715266e Har, let there be some useful functions for dealing with arrays. Oh
velocity developers, what were ye thinking taking away the wonders of
arrays from us?


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1231 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-25 18:05:50 +00:00
ray 8c83a7277c Added a toString() that lists the set of modified fields for debugging
goodness.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1229 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-20 00:04:34 +00:00
mdb 23ee279609 Table.selectAll() is used when data from multiple tables is composed into
a single object. Table.select() is what is used when there's a one to one
table to object mapping. The All in select all should not be confused with
"" as the where clause which causes "all" records to be selected from the
table. While querying by example also works, it does unnecessary work.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1228 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 21:13:37 +00:00
eric 780efcb158 hmm selectAll doesn't seem to actually work as expected. Switcheroo to queryByExample.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1227 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 19:48:09 +00:00
ray 7169e9960e Ascii character thirty-two, how I love you.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1226 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 17:24:35 +00:00
eric 2e77d66acf UserRepo construction throws and exception now, load all the site stuff
into memory and not be going to the db willynilly (hurry for mike!)


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1225 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 02:51:25 +00:00
eric 20c292a41a Added code to get all the site records, get a siteName from the siteId,
get a siteId from a siteName.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1224 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 02:14:42 +00:00
eric 35b195ae1b Initial checkin of class representing a row in the sites table.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1223 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 02:12:55 +00:00
ray e90ba29170 Changed method name to contain "Subset" and not "SubSet",
clarified method documentation.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1222 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-19 00:49:54 +00:00
mdb 4b652903ef Log that stack trace.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1221 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-18 23:52:17 +00:00
ray be8f33a70b Made that comment make sense.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1220 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-17 18:50:07 +00:00
ray 3c1836d76d Added a note about a pitfall with the truncating version of requireParameter.
Added method headers for some protected methods.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1219 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-17 18:41:04 +00:00
eric 0ede1e0dad Added code to load users from an array of userIds, return as a HashIntMap
keyed on userid.  Pulled some code out of loadNames into a function so I
could use it as well.  Moved loadAllRealNames up higher in the file since
it is a public function.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1218 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-16 18:37:31 +00:00
ray 499319f4bc Allow construction from just a File.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1217 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-12 02:31:14 +00:00
eric 9ea268945d updated comment and lets ignore the other fake windows pppadaptor MAC address.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1216 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-05 18:07:17 +00:00
eric 08bfecb01f Rejiggered delete to not actually delete the user, but instead make it
unaccessable and have a different name so that that username is freed up.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1215 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-04 02:40:00 +00:00
eric 92c4b6d108 Heh, ok so there is a good reason to do this with the == null test. I'll
just do the blank check externall for the stuff I can about. Har!


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1214 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-03 17:08:21 +00:00
eric 5449ee395b Lets use the more general class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1213 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-09-02 17:37:34 +00:00
eric 34f89c13e4 If you are getting a text param input box it is never going to be null, it
is just going to be the empty string, pretty sure we always want to check
against blank and not null.  If anything is sideeffected using that we
will have to fix it, but seems unlikely.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1212 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-28 20:13:41 +00:00
eric 367a0ab627 Add queryByLikeExample which sends along the appropriate boolean to the
cursor to reflect that we want to use 'like' when matching strings.
Changed the buildQuery code to switch on this when the field is a String.
Yay, we can now do searching with super easily.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1211 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-28 20:11:39 +00:00
eric 6e47578d8f Set and pass through a 'like' boolean which is used to determin if we want
to build queries using 'like' or '='


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1210 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-28 20:08:21 +00:00
eric 4e7004b847 Added code to check if a named field has been modified, added code to
check if all the modified fields are within a particular subset of fields.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1209 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-26 04:49:05 +00:00
ray d9731c97c2 Added a version of requireParameter() that lets you specify the maximum
length of a parameter.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1206 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-19 23:39:25 +00:00
ray 4b4bf11074 added truncate(), also a version of toString() that lets you specify the
field separator (other than the default of ", ") that's been laying around.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1205 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-19 23:37:56 +00:00
ray b3a593b727 Return trim()'d Strings.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1204 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-19 23:09:12 +00:00
ray a4fb8eba6e The home of utility methods that don't quite fit anywhere else.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1203 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-18 21:53:59 +00:00
mdb b11c4084a0 Removed dependence on Jakarta regexp library.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1202 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-15 22:38:00 +00:00
mdb f85fd28c52 Removed the Apache regular expression stuff and replaced it with Java's
new built-in support. In the case of the username matcher Apache's stuff
wasn't properly allowing underscores.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1201 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-15 22:35:57 +00:00
ray 319ac0aa17 Don't redirect by default.
Added awaitFriendlyResponse() which will throw FriendlyExceptions.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1200 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-15 03:07:52 +00:00
ray 34b01d80a7 Oh god, throwing a RedirectException does not always make sense, so
I made an even more general base class that throws a TimeoutException.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1199 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-15 02:23:47 +00:00
ray 0f732a6453 A JLayeredPane that gets around an awt/swing bug by removing all popups
whenever any component is removed. Whee.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1198 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-14 22:05:07 +00:00
mdb 98428507ad Track and report the number of intervals fired in a period as well as the
total number of registered intervals.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1197 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2003-08-13 21:04:12 +00:00