cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enke, Michael" <michael.e...@wincor-nixdorf.com>
Subject Re: _esql_connection.connection should be public
Date Mon, 12 May 2003 09:35:34 GMT
Torsten Curdt wrote:
> 
> Enke, Michael wrote:
> > Hi group,
> > after updating to M1 I found that in Cocoon2EsqlConnection
> > the connection variable is private in 2.1 but was public in 2.0.
> >
> > I propose to set this field again to public access.
> 
> Hm... what about changing getConnection() from protected to public?
> ...not very happy about this either but...

It is no much difference.

> > I heavily use method calls from inside of xsp pages to methods which need
> > a DB connection. I pass the _esql_connection.connection to this methods.
> > But with private access this is no longer possible.
> > Why this was changed to private?
> 
> Because you shouldn't use the ESQL classes directly ;-)

Is there another possibility to get the connection?

Michael

Mime
View raw message