using data object will make the code easier to understand and easier to maintain.
In theory it also is kind of database independent.
But in practice you may use database specific stuff with data object also.
Data object also can be shared by different pages easily.
using immediate will use less resources.
You sql will be in the java code.
If you have complicated sql it could be very difficult to understand.
We use both techniques.
"Murali" <[EMAIL PROTECTED]> wrote:
>>Hi,>>I am fairly new to ND. using ND5. I was wondering under what situations we
should use the executeImmediate >method on the datasource vs using ND
dataobjects.>>In
our project we are planning have dataobjects attached to the ND page directly
for
display purposes, but> we are planning to have another layer(EJB) do that for
doing
updates/inserts/deletes.>We were thinking of either using one dataobject per
query
or use executeImmediate >and run the query. If we have one dataobject per
query (or
for related queries)>we may end having lots of dataobjects in the
application. What
kind of resources does each >dataobject use in ND?>>Thanks for your
help.>>Murali>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]