public interface JFPAdminDatabaseType
Modifier and Type | Method and Description |
---|---|
<T,E extends Exception> |
withAdminTransaction(com.io7m.jfunctional.PartialFunctionType<JFPAdminDatabaseTransactionType,T,E> f)
Evaluate
f within a new transaction. |
<T,E extends Exception> T withAdminTransaction(com.io7m.jfunctional.PartialFunctionType<JFPAdminDatabaseTransactionType,T,E> f) throws E extends Exception
f
within a new transaction. The transaction will be
committed automatically when f
returns, unless
f
raises an exception.E
- The type of raised exceptions.T
- The type of returned values.f
- The function to evaluate.f
.E
- If f
raises an exception.E extends Exception
Copyright © 2015 <code@io7m.com> http://io7m.com