String strval = getProperty(props, PREFETCH, "", true);
if (strval.length()>0) {
prefetch = BooleanHelper.parse(strval, false);
}
Component qm = getSubComponent(speedo, QUERY_MANAGER);
QueryManagerAttribute qma = ((QueryManagerAttribute) Fractal.getAttributeController(qm));
if (!prefetch) {
qma.setPrefetchActivatedOnQuery(false);
qma.setPrefetchActivatedOnExtent(false);
logger.log(BasicLevel.INFO, sb.append(LocaleHelper.getSpeedoRB().getString("NONE")).toString());
return;
}
boolean prefetchOnQuery = qma.getPrefetchActivatedOnQuery();
boolean prefetchOnExtent = qma.getPrefetchActivatedOnExtent();
boolean prefetchOnGenClass = true;
String sep = ", ";
boolean oneOf = false;
strval = getProperty(props, PREFETCH_ON_QUERY, "", true);
if (strval.length()>0) {
prefetchOnQuery = BooleanHelper.parse(strval, false);
}
if (prefetchOnQuery) {
if (oneOf) {
sb.append(sep);
}
sb.append(LocaleHelper.getSpeedoRB().getString("QUERY"));
}
oneOf |= prefetchOnQuery;
qma.setPrefetchActivatedOnQuery(prefetchOnQuery);
strval = getProperty(props, PREFETCH_ON_EXTENT, "", true);
if (strval.length()>0) {
prefetchOnExtent = BooleanHelper.parse(strval, false);
}
if (prefetchOnExtent) {
if (oneOf) {
sb.append(sep);
}
sb.append(LocaleHelper.getSpeedoRB().getString("EXTENT"));
}
oneOf |= prefetchOnExtent;
qma.setPrefetchActivatedOnExtent(prefetchOnExtent);
strval = getProperty(props, PREFETCH_ON_GENCLASS, "", true);
if (strval.length()>0) {
prefetchOnGenClass= BooleanHelper.parse(strval, false);
}