[iPlanet-JATO] Use Of models in utility classes

Namburi,

I will post a document to the group site this evening which has the details

on various tactics of migrating these type of utilities. Essentially, you

either need to convert these utilities to Models themselves or keep the

utilities as is and simply use the

RequestManager.getRequestContext.getModelManager().getModel()

to statically access Models.

For CSpSelect.executeImmediate() I have an example of custom helper method

as a replacement whicch uses JDBC results instead of CSpDBResult.

matt

> --Original Message--

> From: <a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100253094 145066046167121181">vnamboori@y...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100253094 145066046167121181">vnamboori@y...</a>]

> Sent: Tuesday, August 07, 2001 3:24 PM

> Subject: [iPlanet-JATO] Use Of models in utility classes

>

>

> Hi All,

>

> In the present ND project we have lots of utility classes. These

> classes in diffrent directory. Not part of nd pages.

> In these classes we access the dataobjects and do the manipulations.

> So we access dataobjects directly like

>

> CSpider.getDataObject("do....");

>

> and then execute it.

>

> Since the migration tool does not do much of conversion for these

> utilities we have to do manually.

>

> My question is Can we access the the models in the post migration

> sameway or do we need requestContext?

>

> We have lots of utility classes which are DataObject intensive. Can

> someone suggest a better way to migrate this kind of code.

>

>

> Thanks

> Namburi

>

>

>

>

>

> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>

>

>

>

>

>

>

[2284 byte] By [Guest] at [2007-11-25 9:28:27]
# 1

Matt,

> For CSpSelect.executeImmediate() I have an example of custom helper

method as a replacement which uses JDBC results instead of

CSpDBResult.

Can you send me this example.

Thanks

Namburi

In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Matthew Stevens" <<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177 026031196184130152150">matthew.stevens@E...</a>>

wrote:

> Namburi,

>

> I will post a document to the group site this evening which has the

details

> on various tactics of migrating these type of utilities.

Essentially, you

> either need to convert these utilities to Models themselves or keep

the

> utilities as is and simply use the

>

> RequestManager.getRequestContext.getModelManager().getModel()

>

> to statically access Models.

>

> For CSpSelect.executeImmediate() I have an example of custom helper

method

> as a replacement whicch uses JDBC results instead of CSpDBResult.

>

> matt

>

> > --Original Message--

> > From: <a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a>]

> > Sent: Tuesday, August 07, 2001 3:24 PM

> > Subject: [iPlanet-JATO] Use Of models in utility classes

> >

> >

> > Hi All,

> >

> > In the present ND project we have lots of utility classes. These

> > classes in diffrent directory. Not part of nd pages.

> > In these classes we access the dataobjects and do the

manipulations.

> > So we access dataobjects directly like

> >

> > CSpider.getDataObject("do....");

> >

> > and then execute it.

> >

> > Since the migration tool does not do much of conversion for these

> > utilities we have to do manually.

> >

> > My question is Can we access the the models in the post migration

> > sameway or do we need requestContext?

> >

> > We have lots of utility classes which are DataObject intensive.

Can

> > someone suggest a better way to migrate this kind of code.

> >

> >

> > Thanks

> > Namburi

> >

> >

> >

> >

> >

> > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>

> >

> >

> >

> >

> >

> >

Guest at 2007-7-1 16:33:57 > top of Java-index,Development Tools,Java Tools...
# 2

Namburi,

I have included an example in the file ExecuteImmediateUtil.java

The Yahoo Group will not handle the attached file we will put it in the

Files section shortly.

matt

--Original Message--

From: <a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100253094 145066046167121181">vnamboori@y...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100253094 145066046167121181">vnamboori@y...</a>]

Sent: Thursday, November 29, 2001 12:29 PM

Subject: [iPlanet-JATO] Re: Use Of models in utility classes

Matt,

> For CSpSelect.executeImmediate() I have an example of custom helper

method as a replacement which uses JDBC results instead of

CSpDBResult.

Can you send me this example.

Thanks

Namburi

In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Matthew Stevens" <<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177 026031196184130152150">matthew.stevens@E...</a>>

wrote:

> Namburi,

>

> I will post a document to the group site this evening which has the

details

> on various tactics of migrating these type of utilities.

Essentially, you

> either need to convert these utilities to Models themselves or keep

the

> utilities as is and simply use the

>

> RequestManager.getRequestContext.getModelManager().getModel()

>

> to statically access Models.

>

> For CSpSelect.executeImmediate() I have an example of custom helper

method

> as a replacement whicch uses JDBC results instead of CSpDBResult.

>

> matt

>

> > --Original Message--

> > From: <a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a>]

> > Sent: Tuesday, August 07, 2001 3:24 PM

> > Subject: [iPlanet-JATO] Use Of models in utility classes

> >

> >

> > Hi All,

> >

> > In the present ND project we have lots of utility classes. These

> > classes in diffrent directory. Not part of nd pages.

> > In these classes we access the dataobjects and do the

manipulations.

> > So we access dataobjects directly like

> >

> > CSpider.getDataObject("do....");

> >

> > and then execute it.

> >

> > Since the migration tool does not do much of conversion for these

> > utilities we have to do manually.

> >

> > My question is Can we access the the models in the post migration

> > sameway or do we need requestContext?

> >

> > We have lots of utility classes which are DataObject intensive.

Can

> > someone suggest a better way to migrate this kind of code.

> >

> >

> > Thanks

> > Namburi

> >

> >

> >

> >

> >

> > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>

> >

> >

> >

> >

> >

> >

For more information about JATO, please visit:

<a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>

[Non-text portions of this message have been removed]

Guest at 2007-7-1 16:33:57 > top of Java-index,Development Tools,Java Tools...
# 3

Namburi,

I have included an example in the file ExecuteImmediateUtil.java

The Yahoo Group will not handle the attached file we will put it in the

Files section shortly.

matt

--Original Message--

From: <a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100253094 145066046167121181">vnamboori@y...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100253094 145066046167121181">vnamboori@y...</a>]

Sent: Thursday, November 29, 2001 12:29 PM

Subject: [iPlanet-JATO] Re: Use Of models in utility classes

Matt,

> For CSpSelect.executeImmediate() I have an example of custom helper

method as a replacement which uses JDBC results instead of

CSpDBResult.

Can you send me this example.

Thanks

Namburi

In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Matthew Stevens" <<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177 026031196184130152150">matthew.stevens@E...</a>>

wrote:

> Namburi,

>

> I will post a document to the group site this evening which has the

details

> on various tactics of migrating these type of utilities.

Essentially, you

> either need to convert these utilities to Models themselves or keep

the

> utilities as is and simply use the

>

> RequestManager.getRequestContext.getModelManager().getModel()

>

> to statically access Models.

>

> For CSpSelect.executeImmediate() I have an example of custom helper

method

> as a replacement whicch uses JDBC results instead of CSpDBResult.

>

> matt

>

> > --Original Message--

> > From: <a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a>]

> > Sent: Tuesday, August 07, 2001 3:24 PM

> > Subject: [iPlanet-JATO] Use Of models in utility classes

> >

> >

> > Hi All,

> >

> > In the present ND project we have lots of utility classes. These

> > classes in diffrent directory. Not part of nd pages.

> > In these classes we access the dataobjects and do the

manipulations.

> > So we access dataobjects directly like

> >

> > CSpider.getDataObject("do....");

> >

> > and then execute it.

> >

> > Since the migration tool does not do much of conversion for these

> > utilities we have to do manually.

> >

> > My question is Can we access the the models in the post migration

> > sameway or do we need requestContext?

> >

> > We have lots of utility classes which are DataObject intensive.

Can

> > someone suggest a better way to migrate this kind of code.

> >

> >

> > Thanks

> > Namburi

> >

> >

> >

> >

> >

> > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>

> >

> >

> >

> >

> >

> >

For more information about JATO, please visit:

<a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>

[Non-text portions of this message have been removed]

Guest at 2007-7-1 16:33:57 > top of Java-index,Development Tools,Java Tools...