× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: My Java Experience... latest code - critique
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Wed, 21 Mar 2001 11:19:46 -0600

Thanks!  I'm going to take these one at a time...

> 
> This still implies to me that your abstraction for the
> table concept isn't correct.
> 
> I don't really understand why the Table (FieldTableDefinition)
> has to externalize so much field specific info.

Are you referring to this:
   FieldTableDefinition myTable = new
FieldTableDefinition(databaseProperties, controlSQL);

If so, I'm lost as to how I am to fill the table with data.  Right now it
uses the SQL statments in controlSQL to read and load the table with data.
It doesn't care which tables, which machine, etc. the data comes from.

Are you saying that the table shouldn't even care about where it gets it
data?  ie a file, or read from a web page, or etc.. etc..?

> 
> Yeah, a table contains fields, but in this (and many other
> usage models), the USER of the table doesn't need to know
> or care about those fields. You're pushing functionality
> OUT to the user instead of IN to the table
> object where it belongs.
> 
> I recommend:
>   FieldTableDefinition.setFormatter();
>   FieldTableDefinition.toML();
> After doing these two methods, you should suddenly see
> a new interface that comes out of it.
> I.e. the interface that has setFormatter() and toML()
> should also probably apply to the entire table.
> So that toML() on the table would probably call toML() on
> all contained objects in 'appropriate' order for a table.

this I understand, and is how I did the table row to table cell.  This is
something I am going to add.  Not too tough to do.  But all it does is
encapsulate the looping I have in my program right now.

I'm confused as to if your prior comment was how I instantiate the Table
object or how I'm formatting the ML or both.

Brad
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.