logo       

Torque 4.0 - Add delete() / loadByPk(...) methods to Record object: msg#00036

jakarta.turbine.torque.devel

Subject: 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@xxxxxxxxxx> (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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise