× 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: "Database" Put/Get Beans
  • From: Jim Mason <JEMason@xxxxxxxxxxxxxx>
  • Date: Wed, 26 Apr 2000 19:29:52 -0400

Hi Jon.

In VisualAge for Java 3.0, you can easily add a slew of instance variables
quickly
in the class definition just by typing them in thru a class editor ....
1)
public class MyClass {
        public String name;
        public String address1;
        public int zipCode;
... ( and so on ).

2)      Save the class definition (ctl - s).

3)      Go to the menu bar and select:  
        Tools | Generate | Accessors

you now have get | set methods for all the variables you defined.
This is much faster than using the 'slower' beanInfo wizard approach ...

Jim Mason




Message text written by INTERNET:JAVA400-L@midrange.com
>
oh-oh! it's O-O!

Let's see... A class is a DS.  They are not external in that the
requirement
of the class is to hide the implementation.  They are external in the idea
that they are accessed through their set/get methods.

This also means that the persistence (which maybe what you were after) can
be any mechanism you choose and is hidden by the class (DS).

So what is the equivalent of an externally described data structure from
RPG
in JAVA?  A class.

No?

===========================================================
R. Bruce Hoffman, Jr.
 -- IBM Certified AS/400 Professional System Administrator
 -- IBM Certified AS/400 Professional Network Administrator

"The sum of all human knowledge is a fixed constant.
    It's the population that keeps growing!"

-----Original Message-----
From: Jon.Paris@hal.it <Jon.Paris@hal.it>
To: JAVA400-L@midrange.com <JAVA400-L@midrange.com>
Date: Wednesday, April 26, 2000 11:07 AM
Subject: "Database" Put/Get Beans


>
>
>I know I can use the VAJ Enterprise beans to generate access classes and
put get
>methods for a database, but what I want is just the put/get stuff without
the
>connection or any of the rest of the stuff.  What I need to generate is
the
>equivalent of an RPG externally described DS together with the put/get
methods.
>
>Any suggestions ?
>
>
<

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