Re: BasePeer quesiton

2000-06-05 Thread Sean Legassick
On Sun, Jun 04, 2000 at 05:51:30PM -0700, Moshiul Shovon wrote: Hello, I am using the the Peer Model for my db access. I am using MySQL. The MySQL syntax allows something like "LIMIT 0, 20", which will only fetch the first 20 records. Is it possible to achieve similar functionality

ActionEvent and Select Boxes

2000-06-05 Thread Dan Diephouse
I have been looking at the action event architecture and I think it may be missing something. (I may be volunteering to implement it here if my skills are good enough and it is not a redundant or bad idea). For each button pressed on a for there is a corresponding function doActionblahblah.

Not getting my screens

2000-06-05 Thread Sasan, Hement
Hi, Now I've all the default things in place. I'm also getting the Turbine's default Welcome screen also. Now, I'm writing my own application to test out all the (or atleast the main) features of Turbine. I've started with my own Welcome screen. I've modified the TurbineResources.properties

OT: Emacs and tabs

2000-06-05 Thread Christopher Elkins
Hi, all. Sorry for the off-topic post. This is mostly for Dave Bryson, but I'd appreciate help from anyone. ;-) I assume (based on your .sig) that you're using Emacs. Do you know how to turn tabs off completely? In my own code, I add the following line: -*- Mode: Java; indent-tabs-mode: nil

Re: BasePeer quesiton

2000-06-05 Thread John McNally
I am not an expert at MySQL, but I think I remember someone saying that LIMIT does not really save you anything. The db just selects everything and then throws away the extra results. You can do this yourself and probably more intelligently. Where does the LIMIT constraint go in a SELECT?

Re: OT: Emacs and tabs

2000-06-05 Thread Jim Loverde
Christopher Elkins wrote: Sorry for the off-topic post. This is mostly for Dave Bryson, but I'd appreciate help from anyone. ;-) [...] which works on a per-file basis. Therefore, I assumed that by adding the following line: (setq indent-tabs-mode nil) Since that variable is buffer

Re: ActionEvent and Select Boxes

2000-06-05 Thread Dan Diephouse
John McNally wrote: If you are selecting one action from a group, I think the current scheme could be used without modification. If you are wanting to be able to choose multiple actions, modifications would be needed, but I am not sure how general purpose this could be made. How are you

Re: BasePeer quesitonr

2000-06-05 Thread Sean Legassick
On Mon, Jun 05, 2000 at 09:07:09AM -0700, John McNally wrote: I am not an expert at MySQL, but I think I remember someone saying that LIMIT does not really save you anything. The db just selects everything and then throws away the extra results. You can do this yourself and probably more

Re: BasePeer quesitonr

2000-06-05 Thread John McNally
However as it happens the mm.mysql JDBC drivers for MySQL read the whole resultset into memory immediately, and then ResultSet.next just reads out of memory. This makes the architecture of the LargeSelect class pretty much useless as it is on MySQL, unless it is modified to use 'LIMIT' as

Re: Question about SqlExpression in Turbine

2000-06-05 Thread John McNally
(This does mean that SqlExpression is being smart about only quoting Strings, but will blindly shove UPPER() around anything. I guess as SqlExpression is meanly intended as an internal class to support BasePeer this doesn't matter too much...) Upper() does not belong in SQLExpression. It

Castor Questions

2000-06-05 Thread Leon Messerschmidt
Hi I've been taking a look at the Castor service in Turbine, and I have some minor questions. 1. The getJDO() method currently is: public JDO getJDO () { JDO jdo = new JDO (databasename); jdo.setLogWriter (logger); return jdo; } This means every time

turbine usage question

2000-06-05 Thread John Thorhauer
Hi, I am trying to decide between a couple of opensource packages like turbine to develop an opensource app and I have a couple of functionality questions. 1. I am looking to create an app that will provide a gui(html) front end that is accessible via https. What is the best way to do this

Re: BasePeer quesitonr

2000-06-05 Thread Sean Legassick
On Mon, Jun 05, 2000 at 11:46:51AM -0700, John McNally wrote: However as it happens the mm.mysql JDBC drivers for MySQL read the whole resultset into memory immediately, This does not seem to be a very good design for the driver, but I shouldn't talk I've never written one. Anyone know

Re: Question about SqlExpression in Turbine

2000-06-05 Thread Sean Legassick
On Mon, Jun 05, 2000 at 11:59:13AM -0700, John McNally wrote: Upper() does not belong in SQLExpression. It is not a standard SQL function (MySQL may not include it). MySQL does include it, but the wrinkle is that it always does case-insensitive string matching, unless you use a 'BINARY'

Re: Castor Questions

2000-06-05 Thread Giacomo Pati
Leon Messerschmidt wrote: Hi I've been taking a look at the Castor service in Turbine, and I have some minor questions. 1. The getJDO() method currently is: public JDO getJDO () { JDO jdo = new JDO (databasename); jdo.setLogWriter (logger); return

Re: BasePeer quesitonr

2000-06-05 Thread Moshiul Shovon
--- John McNally [EMAIL PROTECTED] wrote: Note that if I have a fairly complicated Where clause (IN is generally means complex enough), I just add the entire clause as a Custom criteria. I know the syntax is messy, but it comes in handy once in a while. Can you give me some example

Re: OT: Emacs and tabs

2000-06-05 Thread dave bryson
On Mon, 05 Jun 2000, you wrote: (setq-default indent-tabs-mode nil) ;; save spaces instead of tabs Thanks! That's exactly what I needed. You can also add the 4 to comply with the coding standards :-) (setq-default tab-width 4 indent-tabs-mode nil) -- dave [EMAIL PROTECTED]

an e-commerce application

2000-06-05 Thread John McNally
I have been working on an e-commerce application using Turbine/WM for a few months. I started it using FreeMarker, but switched to WebMacro since there appeared to be more developer interest and it is supposed to become available under a better license. I have been fairly busy as of late and

Re: New webmacro classes

2000-06-05 Thread Sean Legassick
On Fri, Jun 02, 2000 at 11:25:07PM +, Sean Legassick wrote: I don't see the problem. Sorry to followup my own email, but I had a couple of further thoughts: Firstly Dave, you've done a huge part of the WebMacro integration, so when it comes down to it I'm not going to go ahead and do

Re: OT: Emacs and tabs

2000-06-05 Thread Christopher Elkins
On Mon, 05 Jun 2000, you wrote: (setq-default indent-tabs-mode nil) ;; save spaces instead of tabs Thanks! That's exactly what I needed. You can also add the 4 to comply with the coding standards :-) (setq-default tab-width 4 indent-tabs-mode nil) Great! I just added this to the

DatabaseObjectBuilder status

2000-06-05 Thread dave bryson
I mentioned awhile back about building on to the DataBaseMapBuilderTask to have a Ant task that would also generate the Peers and DataObjects from the DB schema. Since some of you expressed an interest in this I thought I'd give you an update where it's at: The initial idea was to use WebMacro