Thanks for the help, but at the risk of sounding stupid, where is this
method?
I can't find any reference to it in the BasePeer class.

Jon

> -----Original Message-----
> From: John McNally [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2001 22:35
> To: Turbine
> Subject: Re: Peer model question
> 
> 
> Sorry, that should be
> 
> List v = FooPeer.doSelectVillageRecords(c);
> 
> the List/Vector will then contain Record objects.  Partial 
> selection of
> attributes to fill when building objects has not been implemented
> (though if anyone has suggestions they are welcome.)
> 
> And I would also like to point out that these Records should be
> considered read only objects, but I should add that to the javadoc.
> 
> John McNally
> 
> Daniel Rall wrote:
> > 
> > John McNally <[EMAIL PROTECTED]> writes:
> > 
> > > [EMAIL PROTECTED] wrote:
> > > >
> > > > hi,
> > > >
> > > > is it possible to execute a query something like
> > > >
> > > > select distinct <column> from <table>
> > > >
> > > > using the peer model.  I noticed the setDistinct and 
> addSelectColumn methods
> > > > in the Criteria object but can't figure out how they 
> work together.
> > > >
> > >
> > > Criteria c = new Criteria(0);
> > > c.setDistinct();
> > > c.addSelectColumn(FooPeer.COLUMN_BAR);
> > > Vector v = FooPeer.doSelect(c);
> > 
> > Does this select only COLUMN_BAR?  Usually, calls to doSelect() grab
> > everything...
> > --
> > 
> > Daniel Rall <[EMAIL PROTECTED]>
> > 
> > ------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search: 
> <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > Problems?:           [EMAIL PROTECTED]
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 


--------------------------------------------------
DISCLAIMER: This message contains proprietary
information some or all of which may be
confidential and/or legally privileged. It is for
the intended recipient only who may use and apply
the information only for the intended purpose.
Internet communications are not secure and
therefore the British Biotech group does not
accept legal responsibility for the contents of
this message. Any views or opinions presented are
only those of the author and not those of the
British Biotech group. If you are not the intended
recipient please delete this e-mail and notify the
author immediately by calling ++44 (0)1865 748747;
do not use, disclose, distribute, copy, print or
rely on this e-mail.


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to