Uses of Interface
com.aoapps.dbc.ObjectFactoryE
-
Uses of ObjectFactoryE in com.aoapps.dbc
Modifier and TypeInterfaceDescriptioninterface
Creates instances of objects of the generics type from a result set.Modifier and TypeClassDescriptionclass
Creates instances of objects by using reflection and passing-in the parameters in the same order as the matching constructor.static class
Deprecated.Modifier and TypeMethodDescriptionstatic <T,
Ex extends Throwable>
ObjectFactoryE<T, Ex> ObjectFactories.notNull
(ObjectFactoryE<T, Ex> objectFactory) Wraps an object factory, unless it is already not nullable.Modifier and TypeMethodDescriptiondefault <T,
C extends Collection<? super T>, Ex extends Exception>
CDatabaseAccess.executeObjectCollectionQuery
(int isolationLevel, boolean readOnly, C collection, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,
C extends Collection<? super T>, Ex extends Exception>
CDatabaseAccess.executeObjectCollectionQuery
(C collection, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,
C extends Collection<? super T>, Ex extends Exception>
CDatabaseAccess.executeObjectCollectionUpdate
(C collection, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.DatabaseAccess.executeObjectListQuery
(int isolationLevel, boolean readOnly, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.DatabaseAccess.executeObjectListQuery
(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.DatabaseAccess.executeObjectListUpdate
(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,
Ex extends Exception>
TDatabaseAccess.executeObjectQuery
(int isolationLevel, boolean readOnly, boolean rowRequired, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,
Ex extends Exception>
TDatabaseAccess.executeObjectQuery
(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,
Ex extends Exception>
TDatabaseAccess.executeObjectUpdate
(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.static <T,
Ex extends Throwable>
ObjectFactoryE<T, Ex> ObjectFactories.notNull
(ObjectFactoryE<T, Ex> objectFactory) Wraps an object factory, unless it is already not nullable.default <T,
C extends Collection<? super T>, Ex extends Throwable>
CDatabaseAccess.queryCollection
(int isolationLevel, boolean readOnly, C collection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aCollection<T>
return type, objects are created with the provided factory.default <T,
C extends Collection<? super T>, Ex extends Throwable>
CDatabaseAccess.queryCollection
(C collection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with aCollection<T>
return type, objects are created with the provided factory.DatabaseAccess.queryList
(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aList<T>
return type, objects are created with the provided factory.DatabaseAccess.queryList
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with aList<T>
return type, objects are created with the provided factory.default <T,
C extends Collection<? super T>, Ex extends Throwable>
CDatabaseAccess.queryNewCollection
(int isolationLevel, boolean readOnly, Function<? super Integer, ? extends C> newCollection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aCollection<T>
return type, objects are created with the provided factory.default <T,
C extends Collection<? super T>, Ex extends Throwable>
CDatabaseAccess.queryNewCollection
(Function<? super Integer, ? extends C> newCollection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with aCollection<T>
return type, objects are created with the provided factory.default <T,
Ex extends Throwable>
TDatabaseAccess.queryObject
(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with a<T>
return type, objects are created with the provided factory.default <T,
Ex extends Throwable>
TDatabaseAccess.queryObject
(int isolationLevel, boolean readOnly, boolean rowRequired, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,
Ex extends Throwable>
TDatabaseAccess.queryObject
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with a required non-null<T>
return type, objects are created with the provided factory.default <T,
Ex extends Throwable>
TDatabaseAccess.queryObjectNullable
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with a required nullable<T>
return type, objects are created with the provided factory.DatabaseAccess.queryObjectOptional
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with an optional non-null<T>
return type, objects are created with the provided factory.DatabaseAccess.queryObjectOptionalNullable
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with an optional nullable<T>
return type, objects are created with the provided factory.Database.stream
(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aStream<T>
return type, objects are created with the provided factory.DatabaseAccess.stream
(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aStream<T>
return type, objects are created with the provided factory.DatabaseAccess.stream
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with aStream<T>
return type, objects are created with the provided factory.DatabaseConnection.stream
(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aStream<T>
return type, objects are created with the provided factory.DatabaseAccess.streamOptional
(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Query the database with aStream<Optional<T>>
return type, objects are created with the provided factory.DatabaseAccess.streamOptional
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with aStream<Optional<T>>
return type, objects are created with the provided factory.DatabaseAccess.streamOptionalUpdate
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with aStream<Optional<T>>
return type, objects are created with the provided factory.DatabaseAccess.streamUpdate
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with aStream<T>
return type, objects are created with the provided factory.default <T,
C extends Collection<? super T>, Ex extends Throwable>
CDatabaseAccess.updateCollection
(C collection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with aCollection<T>
return type, objects are created with the provided factory.DatabaseAccess.updateList
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with aList<T>
return type, objects are created with the provided factory.default <T,
C extends Collection<? super T>, Ex extends Throwable>
CDatabaseAccess.updateNewCollection
(Function<? super Integer, ? extends C> newCollection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with aCollection<T>
return type, objects are created with the provided factory.default <T,
Ex extends Throwable>
TDatabaseAccess.updateObject
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with a required non-null<T>
return type, objects are created with the provided factory.default <T,
Ex extends Throwable>
TDatabaseAccess.updateObjectNullable
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with a required nullable<T>
return type, objects are created with the provided factory.DatabaseAccess.updateObjectOptional
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with an optional non-null<T>
return type, objects are created with the provided factory.DatabaseAccess.updateObjectOptionalNullable
(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with an optional nullable<T>
return type, objects are created with the provided factory.
Class::new
.