I think that setMaxRows is too tied to SQL, and would prefer
setMaxRecords or setRecordNbrLimit. Just my $.02. =)
[EMAIL PROTECTED] wrote:
>
> setMaxRows() is much clearer than setLimit() anyway.
> Outside of this conversation how does anyone know what limit it is that's
> being set?
>
> oh, and as a side point, sybase uses set maxrows
>
> Dave Amphlett
>
> From: "Paul O'Leary" <[EMAIL PROTECTED]>
> > nissim,
> >
> > java.sql.Statement.setMaxRows( int ) is supposed to already give you this
> > functionality, I believe.
> > http://java.sun.com/products//jdk/1.2/docs/api/java/sql/Statement.html
> >
> > Nissim wrote:
> > >
> > > The proposal is to add the following:
> > >
> > > In Criteria:
> > > public void setLimit(int n)
> > Would it be bad to make it public Criteria setLimit(int n) which would
> > return this?
> >
> > > In DB:
> > > public abstract boolean supportsLimit()
> > I made this not abstract, and it returns false, so only subclasses which
> > need to return true have to implement it.
--
Daniel Rall <[EMAIL PROTECTED]>
http://collab.net/ | open source | do the right thing
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]