- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
public static List<Period> getPeriods(final int id, final Date startDate, final Date endDate) throws SomeException {
final List<?>[] result = new List<?>[1];
doInTransaction(new Script() {
@Override
public void execute() throws AnotherException {
// Some business logic
//...
result[0] = allPeriods;
}
});
return (List<Period>) result[0];
}