|
AW: Torque 4.0 - Add delete() / loadByPk(...) methods to Record object: msg#00042jakarta.turbine.torque.devel
So this would be shortcuts for *Peer.retrieveByPK and *Peer.delete(...)? > -----Ursprüngliche Nachricht----- > Von: Greg Monroe [mailto:Greg.Monroe@xxxxxxxxxx] > 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@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> |
|---|---|---|
| Previous by Date: | [jira] Created: (TORQUE-72) Beans should not require torque.objectIsCaching = true setting to create all complexModel methods.: 00042, CG Monroe (JIRA) |
|---|---|
| Next by Date: | [jira] Created: (TORQUE-73) Missing log4j.jar for Torque Generator?: 00042, Joerg Friedrich (JIRA) |
| Previous by Thread: | [jira] Created: (TORQUE-72) Beans should not require torque.objectIsCaching = true setting to create all complexModel methods.i: 00042, CG Monroe (JIRA) |
| Next by Thread: | Re: AW: Torque 4.0 - Add delete() / loadByPk(...) methods to Record object: 00042, Thomas Vandahl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |