private static final QName DBREPORT_Q =
new QName(SynapseConstants.SYNAPSE_NAMESPACE, "dbreport");
private static final QName DBREPORT_USE_TX = new QName("useTransaction");
protected Mediator createSpecificMediator(OMElement elem, Properties properties) {
DBReportMediator mediator = new DBReportMediator();
OMAttribute useTx = elem.getAttribute(DBREPORT_USE_TX);
if (useTx != null && useTx.getAttributeValue() != null) {
String useTxValue = useTx.getAttributeValue();
if (useTxValue.equals("true")) {
mediator.setUseTransaction(true);
} else {
mediator.setUseTransaction(false);
}
}
buildDataSource(elem, mediator);
processStatements(elem, mediator);
return mediator;