db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Monroe" <Greg.Mon...@DukeCE.com>
Subject Torque 4.0 - Add delete() / loadByPk(...) methods to Record object
Date Tue, 05 Dec 2006 19:09:38 GMT
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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message