Business Object reference/dicussion

G

Guest

I seem to have a lot of questions revolving around Business Objects and their
implementation. Does anyone have any good reference links?

Some of the questions I have are:
How do you represent the dichotomy between undefined data and defined data?
Do I create a special class for every possible property type?

How/where and when do you translate between internal representation (say
date) and user interface representation (say MM/dd/yyyy, or three separate
values, maybe binding to a combo box) and storage (which probabbly want's a
date or NULL)

If UI and database are my primary uses of the business object, should I
define all properties as string?

If you have an object that contains an item that references an entry in
another list (say a lookup/validation list). How do you map between usage
modes (for instance storage and editing might want the value 1, display might
want the value Sunday). Again would I create a class for every defined
property type?
 
M

Michael Nemtsev

Hello Larry,

LC> I seem to have a lot of questions revolving around Business Objects
LC> and their implementation. Does anyone have any good reference
LC> links?
LC>
LC> Some of the questions I have are:
LC> How do you represent the dichotomy between undefined data and
LC> defined data?
LC> Do I create a special class for every possible property type?

Create canonical class that will map all undefined to defined, for example
using XSLT

LC> How/where and when do you translate between internal representation
LC> (say date) and user interface representation (say MM/dd/yyyy, or
LC> three separate values, maybe binding to a combo box) and storage
LC> (which probabbly want's a date or NULL)

in the class where u need to show your control

LC> If UI and database are my primary uses of the business object,
LC> should I define all properties as string?

Well........properties of what? seems not, there are several cases where
it may be numeric data, but
u can declare everything as string and then perform convert

LC> If you have an object that contains an item that references an entry
LC> in another list (say a lookup/validation list). How do you map
LC> between usage modes (for instance storage and editing might want the
LC> value 1, display might want the value Sunday). Again would I create
LC> a class for every defined property type?

use enums, where u can map Sunday to 1 and vice versa


---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top