Package net.truej.sql.source
Class DataSourceW
java.lang.Object
net.truej.sql.source.DataSourceW
- All Implemented Interfaces:
RuntimeConfig,NewConstraint,Q<DataSourceW.Single,,DataSourceW.Batched> Source
public non-sealed class DataSourceW
extends Object
implements Source, Q<DataSourceW.Single,DataSourceW.Batched>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceDataSourceW.InTransactionAction<T,E extends Exception> static classstatic interfaceDataSourceW.WithConnectionAction<T,E extends Exception> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T,E extends Exception>
TinTransaction(DataSourceW.InTransactionAction<T, E> action) final <T,E extends Exception>
TwithConnection(DataSourceW.WithConnectionAction<T, E> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.truej.sql.fetch.NewConstraint
constraint, constraint, constraintMethods inherited from interface net.truej.sql.config.RuntimeConfig
mapException
-
Field Details
-
w
-
-
Constructor Details
-
DataSourceW
-
-
Method Details
-
withConnection
public final <T,E extends Exception> T withConnection(DataSourceW.WithConnectionAction<T, E> action) throws E- Throws:
E
-
inTransaction
public final <T,E extends Exception> T inTransaction(DataSourceW.InTransactionAction<T, E> action) throws E- Throws:
E
-