Skip to content
Snippets Groups Projects
Commit 3a337ddc authored by cramakri's avatar cramakri
Browse files

MINOR : Make it possible for subclasses to specify a different transaction delegate

SVN: 26224
parent eca3833a
No related branches found
No related tags found
No related merge requests found
......@@ -145,8 +145,7 @@ public abstract class AbstractDbModifyingAggregationService<T extends DataSetInf
try
{
DataSetRegistrationService<T> service = createRegistrationService(parameters);
IDataSetRegistrationTransactionV2 transaction =
new DataSetRegistrationTransactionV2Delegate(service.transaction());
IDataSetRegistrationTransactionV2 transaction = createTransaction(service);
TableModel tableModel = process(transaction, parameters, context);
......@@ -159,6 +158,15 @@ public abstract class AbstractDbModifyingAggregationService<T extends DataSetInf
}
}
/**
* Create a transaction, wrapped in a delegate. Subclasses may override.
*/
protected IDataSetRegistrationTransactionV2 createTransaction(
DataSetRegistrationService<T> service)
{
return new DataSetRegistrationTransactionV2Delegate(service.transaction());
}
/**
* Do the processing using the user-provided parameters. Subclasses must implement.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment