OO Question

Ruslan Zasukhin sunshine at public.kherson.ua
Sun May 25 16:10:30 CDT 2003


> From: "Carsten Friehe" <RBNUG at gmx.net>
> Date: Sun, 25 May 2003 10:16:18 +0200
> 
> Hi!
> 
> I have a question regarding the correct way to implement something in OO
> style in RB.
> 
> I want to make a class for retrieving records of a Valentina Database
> cursor. So I made class with one method that opens the cursor (that can be
> the constructor), one to get the record which is set with the next method
> and one to set the record I want to get back.
> The cursor will store the values of the record in properties of the class.
> 
> The OO way would be to set the properties to private and to make a
> getter/setter (if I want to change records) method for each property.
> I think that this would be too slow if the record has 20 or more fields and
> it is too much work to code this in the calling method.
> 
> So what will be a better solution for this?
> 
> I will have many of such classes because I need many different cursors.
> These cursors will use different tables, properties and so on.

Hi Carsten,

You worry that many getters / setters will slow down your app?

You need simply make small test to see how many calls of small getters you
can do in RB per on second. This will give you clue what you can expect.
I do not think this will be big problem.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list