|
From: <jue...@we...> - 2004-05-24 09:56:33
|
I don't mind that at all: I've just changed the visibility of all such =
resource factory accessors to public - in JdbcDaoSupport, =
HibernateDaoSupport, JdoDaoSupport, SqlMapDaoSupport, and =
SqlMapClientDaoSupport.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Rod Johnson
Gesendet: Mo 24.05.2004 09:16
An: spr...@li...
Betreff: Re: [Springframework-developer] Method Visibility
Ralph
This really is irrelevant for performance. The issue is: is it annoying
enough to justify changing the visibility?
Juergen, what are your thoughts? This has come up in the forums before. =
I'd
have no objection to changing it to public.
Rgds
Rod
----- Original Message -----
From: "Ralph Schaer" <ral...@ya...>
To: <spr...@li...>
Sent: Sunday, May 23, 2004 10:03 PM
Subject: [Springframework-developer] Method Visibility
> Hello
>
> I often have this sort of code in my dao's:
>
> HibernateCallback callback =3D new HibernateCallback() {
>
> public Object doInHibernate(Session session) throws
HibernateException {
> Criteria criteria =3D =
getHibernateTemplate().createCriteria(session,
User.class);
> criteria.add(Expression.eq("userName", userName));
> if (id !=3D null) {
> criteria.add(Expression.not(Expression.eq("id", id)));
> }
> return criteria.list();
> }
> };
>
> Now Eclipse complains with this warning message:
> Access to enclosing method getHibernateTemplate() from the type
> HibernateDaoSupport is emulated by a synthetic accessor method.
> Increasing its visibility will improve your performance
>
> That's because getHibernateTemplate() is protected.
>
> Regards
> Ralph
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle =
10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|