John McNally wrote:
> 
> ernst leonhard wrote:
> >
> > Hella all,
> >
> > I tried this code-fragment from the "Peer" documentation:
> >
> > Item itm =  new Item()
> > data.getParameters().setProperties(itm);
> > Object o = ItemPeer.doInsert (itm);
> >
> > The compiler returns:
> >     [javac]
> > .../WEB-INF/src/java/de/sn/modules/actions/AddCategory.java:31:
> > Incompatible type for declaration. Can't convert void to
> > java.lang.Object.
> >     [javac]         Object o = CategoryPeer.doInsert(cat);
> >
> > this modification works:
> > /* Object o = */ ItemPeer.doInsert (itm);
> >
> 
> You can:
> ItemPeer.doInsert(itm);
> Object o = itm.getPrimaryKey();

I know, I tried this. But, can you tell me in which class the
implementation of the "doInsert" with this signature is ?
I also tried "doDelete(itm)" with no reaction (Database, Compiler) 
(the source I'm lokking for the method is "Apache-Turbine-20010211")

> 
> > But:
> > I can't find any method "doInsert(BaseObject)" in the peer classes ??
> > where is the implementaion of this method ?
> >
> 
> BaseItemPeer
> 
> > thanks
> > --
> > leo
> >
> > ------------------------------------------------------------
> > 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]

--
Ernst Leonhard

mailto:[EMAIL PROTECTED]
_______________________________________________________________
SecureNet GmbH
Intranet und Internet Solutions         Tel:  +49 89/32133-654
Frankfurter Ring 193a                   Fax:  +49 89/32133-699
80807 München, Germany                  http://www.secure-net.de


------------------------------------------------------------
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