Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 22574 invoked from network); 27 Oct 2004 12:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Oct 2004 12:41:28 -0000 Received: (qmail 38857 invoked by uid 500); 27 Oct 2004 12:40:08 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 38750 invoked by uid 500); 27 Oct 2004 12:40:07 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 38603 invoked by uid 99); 27 Oct 2004 12:40:05 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 27 Oct 2004 05:40:04 -0700 Received: (qmail 21723 invoked from network); 27 Oct 2004 12:40:03 -0000 Received: from unknown (HELO minotaur.apache.org) (127.0.0.1) by 127.0.0.1 with SMTP; 27 Oct 2004 12:40:03 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: torque-dev@db.apache.org To: torque-dev@db.apache.org Subject: =?iso-8859-1?q?=5BDB_Torque_Wiki=5D_Updated=3A__HarderTorqueFaq?= Date: Wed, 27 Oct 2004 12:40:03 -0000 Message-ID: <20041027124003.21699.66941@minotaur.apache.org> X-Spam-Rating: 127.0.0.1 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-10-27T05:40:03 Editor: HansH=FClf Wiki: DB Torque Wiki Page: HarderTorqueFaq URL: http://wiki.apache.org/db-torque/HarderTorqueFaq no comment Change Log: ---------------------------------------------------------------------------= --- @@ -170,7 +170,7 @@ = There is a simple solution for creating all the BeanInfo classes for all T= ables without too much overhead. = -First, create an abstract base class. This base class constructs the prope= rty descriptor array from the getFields() method. The getTheClass() method = provides the class of your concrete Table class derived from BaseObject. +First, create an abstract base class. This base class constructs the prope= rty descriptor array from the 'getFields()' method. The method 'getTheClass= ()' provides the class of your concrete Table class derived from BaseObject. = {{{ = @@ -184,10 +184,10 @@ */ public abstract class TorqueBeanInfo extends SimpleBeanInfo { = - abstract protected Class getTheClass(); - abstract protected Collection getFields(); + abstract protected Class getTheClass(); + abstract protected Collection getFields(); = - public PropertyDescriptor[] getPropertyDescriptors() + public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor[] pdar =3D new PropertyDescriptor[getFiel= ds().size()]; @@ -196,7 +196,7 @@ String field =3D (String) it.next(); PropertyDescriptor pd =3D new PropertyDescriptor(fiel= d, getTheClass()); pdar[i]=3Dpd; - } + } = return pdar; =09 --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org