* @return a boolean representing the prefetch setting
*/
public boolean isQueryPrefetchEnabled (Method method)
{
boolean enabled = true;
QueryDescriptor queryDescriptor = getQueryDescriptor(method);
if (queryDescriptor != null)
{
IASEjbCMPEntityDescriptor cmpDescriptor =
(IASEjbCMPEntityDescriptor)getDescriptor();
PrefetchDisabledDescriptor pdDescriptor =
cmpDescriptor.getPrefetchDisabledDescriptor();
if (pdDescriptor != null)
{
MethodDescriptor methodDescriptor =
queryDescriptor.getQueryMethodDescriptor();
enabled = !pdDescriptor.isPrefetchDisabledFor(
methodDescriptor);
}
}