db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torque-...@db.apache.org
Subject [DB Torque Wiki] Updated: HarderTorqueFaq
Date Wed, 27 Oct 2004 12:40:03 GMT
   Date: 2004-10-27T05:40:03
   Editor: HansHülf <huelf@hhh.franken.de>
   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 Tables without too
much overhead.
 
-First, create an abstract base class. This base class constructs the property 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 property 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 = new PropertyDescriptor[getFields().size()];
@@ -196,7 +196,7 @@
 			    String field = (String) it.next();
 	                    PropertyDescriptor pd = new PropertyDescriptor(field, getTheClass());
 	                    pdar[i]=pd;
-					}
+			}
             		
             		return pdar;
             		

---------------------------------------------------------------------
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