public interface ORMEnvironment
| Modifier and Type | Method and Description |
|---|---|
<T> T |
doWith(ThlsAction<T> action)
Performs the given ThlsAction with this environment in the current thread
local storage.
|
<T,E extends Throwable> |
doWithEx(ThlsActionException<T,E> action)
Performs the given ThlsAction with this environment in the current thread
local storage.
|
<T,E extends Throwable,E2 extends Throwable> |
doWithEx2(ThlsActionException2<T,E,E2> action)
Performs the given ThlsAction with this environment in the current thread
local storage.
|
<T> T |
getModel(Class<T> modelCls)
Gets the instance of the given model for its class.
|
<T> T getModel(Class<T> modelCls)
T - The type of the model.modelCls - The model class.<T> T doWith(ThlsAction<T> action)
T - The type of the result for the action.action - The action to perform.<T,E extends Throwable> T doWithEx(ThlsActionException<T,E> action) throws E extends Throwable
T - The type of the result for the action.E - The type of the exception thrown by the action.action - The action to perform.E - The exception thrown by the action.E extends Throwable<T,E extends Throwable,E2 extends Throwable> T doWithEx2(ThlsActionException2<T,E,E2> action) throws E extends Throwable, E2 extends Throwable
T - The type of the result for the action.E - The type of the exception thrown by the action.E2 - The type of the second exception thrown by the action.action - The action to perform.E - The exception thrown by the action.E2 - The second exception thrown by the action.E extends ThrowableCopyright © 2015–2018 Bridje Framework. All rights reserved.