db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thoralf Rickert" <thoralf.rick...@cadooz.de>
Subject AW: Torque 4.0 - Add delete() / loadByPk(...) methods to Record object
Date Wed, 06 Dec 2006 08:32:45 GMT
So this would be shortcuts for *Peer.retrieveByPK and *Peer.delete(...)?

> -----Urspr√ľngliche Nachricht-----
> Von: Greg Monroe [mailto:Greg.Monroe@DukeCE.com] 
> Gesendet: Dienstag, 5. Dezember 2006 20:10
> An: Apache Torque Developers List
> Betreff: Torque 4.0 - Add delete() / loadByPk(...) methods to 
> Record object
> 
> 
> I've often thought it would be nice for the 
> generated record object to have a delete() 
> and loadByPk() methods.  It would help 
> simplify a lot of code.
>  
> Of course the loadByPK method would only be 
> added if there is a primary key.  And if there
> are multiple primary keys, the method sig. would 
> be something like:
>  
> loadByPk( <colType> key1, <colType> key2...)
>    throw NoRowsException, TooManyRowsException
>  
> and the delete() method would throw an exception
> if called on a new record.
> Greg Monroe <Monroe@DukeCE.com> (919)680-5050
> C&IS Solutions Team Lead
> Duke Corporate Education, Inc.
> 333 Liggett St.
> Durham, NC 27701
> 
> 
>  
> 
> Duke CE Privacy Statement
> Please be advised that this e-mail and any files transmitted 
> with it are confidential communication or may otherwise be 
> privileged or confidential and are intended solely for the 
> individual or entity to whom they are addressed.  If you are 
> not the intended recipient you may not rely on the contents 
> of this email or any attachments, and we ask that you  please 
> not read, copy or retransmit this communication, but reply to 
> the sender and destroy the email, its contents, and all 
> copies thereof immediately.  Any unauthorized dissemination, 
> distribution or copying of this communication is strictly prohibited.
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message