Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
siddhant jain
Dynamic Query query
25 août 2014 07:59
Réponse

siddhant jain

Rang: Junior Member

Publications: 69

Date d'inscription: 19 mars 2013

Publications Récentes

Hi all,
can anyone expalin me that what does the below line do :

1
2DynamicQuery dq=DynamicQueryFactoryUtil.forClass(MyClass.class);


i.e. does it indicates the class loader to load MyClass in memory or it simply decalir that the dynamic query will be executed on the table associated with the class.
because we cannot use the dynamic query object more than once in code. If we have a cenerio where we have to write 2 dynamic quries on same table then we have to write the above code twice as we do have a method to add a criterion but no method to remove it or simply reset the object.




thanks
Siddhant
David H Nebinger
RE: Dynamic Query query
25 août 2014 08:03
Réponse

David H Nebinger

Community Moderator

Rang: Liferay Legend

Publications: 11102

Date d'inscription: 1 septembre 2006

Publications Récentes

siddhant jain:
does it indicates the class loader to load MyClass in memory or it simply decalir that the dynamic query will be executed on the table associated with the class.


Yes, it does both.

because we cannot use the dynamic query object more than once in code.


correct.