public < T , F > T doReadOnly ( F facility , Task < T , F > task ) { return doTransaction ( facility , task , _readonly ) ; }
Executes a task within a read - only transaction . Any exception rolls back the transaction and gets rethrown as a RuntimeException .