- All Known Implementing Classes:
CloseableDatabase,Database,DatabaseConnection
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThese may be used as parameters to represent null values of specific types. -
Method Summary
Modifier and TypeMethodDescriptiondefault DoubleStreamdoubleStream(int isolationLevel, boolean readOnly, String sql, Object... params) Query the database with aDoubleStreamreturn type.default DoubleStreamdoubleStream(String sql, Object... params) Read-only query the database with aDoubleStreamreturn type.default DoubleStreamdoubleStreamUpdate(String sql, Object... params) Read-write query the database with aDoubleStreamreturn type.default BigDecimalexecuteBigDecimalQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default BigDecimalexecuteBigDecimalQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default BigDecimalexecuteBigDecimalUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default BooleanexecuteBooleanQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default booleanexecuteBooleanQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default booleanexecuteBooleanUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default byte[]executeByteArrayQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default byte[]executeByteArrayQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default byte[]executeByteArrayUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default DateexecuteDateQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default DateexecuteDateQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default DateexecuteDateUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default IntListexecuteIntListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default IntListexecuteIntListQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default IntListexecuteIntListUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default IntegerexecuteIntQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default intexecuteIntQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default intexecuteIntUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default LongListexecuteLongListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default LongListexecuteLongListQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default LongListexecuteLongListUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default LongexecuteLongQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default longexecuteLongQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default longexecuteLongUpdate(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>>
CexecuteObjectCollectionQuery(int isolationLevel, boolean readOnly, C collection, ObjectFactory<T> 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>
CexecuteObjectCollectionQuery(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>>
CexecuteObjectCollectionQuery(int isolationLevel, boolean readOnly, C collection, Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryCollection(int, boolean, java.util.Collection, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T,C extends Collection<? super T>>
CexecuteObjectCollectionQuery(C collection, ObjectFactory<T> 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>
CexecuteObjectCollectionQuery(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>>
CexecuteObjectCollectionQuery(C collection, Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryCollection(java.util.Collection, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T,C extends Collection<? super T>>
CexecuteObjectCollectionUpdate(C collection, ObjectFactory<T> 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>
CexecuteObjectCollectionUpdate(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>>
CexecuteObjectCollectionUpdate(C collection, Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateCollection(java.util.Collection, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> List<T> executeObjectListQuery(int isolationLevel, boolean readOnly, ObjectFactory<T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.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.default <T> List<T> executeObjectListQuery(int isolationLevel, boolean readOnly, Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryList(int, boolean, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> List<T> executeObjectListQuery(ObjectFactory<T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.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.default <T> List<T> executeObjectListQuery(Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryList(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> List<T> executeObjectListUpdate(ObjectFactory<T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.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> List<T> executeObjectListUpdate(Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateList(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> TexecuteObjectQuery(int isolationLevel, boolean readOnly, boolean rowRequired, ObjectFactory<T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Exception>
TexecuteObjectQuery(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> TexecuteObjectQuery(int isolationLevel, boolean readOnly, boolean rowRequired, Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryObject(int, boolean, boolean, boolean, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> TexecuteObjectQuery(ObjectFactory<T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Exception>
TexecuteObjectQuery(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> TexecuteObjectQuery(Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryObject(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> TexecuteObjectUpdate(ObjectFactory<T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Exception>
TexecuteObjectUpdate(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> TexecuteObjectUpdate(Class<T> clazz, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateObject(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.default <T> TexecuteQuery(int isolationLevel, boolean readOnly, ResultSetHandler<T> resultSetHandler, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Exception>
TexecuteQuery(int isolationLevel, boolean readOnly, Class<Ex> exClass, ResultSetHandlerE<T, Ex> resultSetHandler, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T> TexecuteQuery(ResultSetHandler<T> resultSetHandler, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Exception>
TexecuteQuery(Class<Ex> exClass, ResultSetHandlerE<T, Ex> resultSetHandler, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.executeShortListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.executeShortListQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.executeShortListUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default ShortexecuteShortQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default shortexecuteShortQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default shortexecuteShortUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.executeStringListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.executeStringListQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.executeStringListUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default StringexecuteStringQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default StringexecuteStringQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default StringexecuteStringUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default TimestampexecuteTimestampQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default TimestampexecuteTimestampQuery(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default TimestampexecuteTimestampUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T> TexecuteUpdate(ResultSetHandler<T> resultSetHandler, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Exception>
TexecuteUpdate(Class<Ex> exClass, ResultSetHandlerE<T, Ex> resultSetHandler, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default intexecuteUpdate(String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default IntStreamQuery the database with anIntStreamreturn type.default IntStreamRead-only query the database with anIntStreamreturn type.default IntStreamintStreamUpdate(String sql, Object... params) Read-write query the database with anIntStreamreturn type.booleanChecks if the current thread is in a transaction.longlargeUpdate(String sql, Object... params) Performs an update on the database and returns the number of rows affected.default LongStreamlongStream(int isolationLevel, boolean readOnly, String sql, Object... params) Query the database with aLongStreamreturn type.default LongStreamlongStream(String sql, Object... params) Read-only query the database with aLongStreamreturn type.default LongStreamlongStreamUpdate(String sql, Object... params) Read-write query the database with aLongStreamreturn type.default BigDecimalqueryBigDecimal(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aBigDecimalreturn type.default BigDecimalqueryBigDecimal(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default BigDecimalqueryBigDecimal(String sql, Object... params) Read-only query the database with a required non-nullBigDecimalreturn type.default BigDecimalqueryBigDecimalNullable(String sql, Object... params) Read-only query the database with a required nullableBigDecimalreturn type.default Optional<BigDecimal> queryBigDecimalOptional(String sql, Object... params) Read-only query the database with an optional non-nullBigDecimalreturn type.default Optional<BigDecimal> queryBigDecimalOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableBigDecimalreturn type.default BooleanqueryBoolean(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aBooleanreturn type.default BooleanqueryBoolean(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default booleanqueryBoolean(String sql, Object... params) Read-only query the database with a required non-nullbooleanreturn type.default BooleanqueryBooleanNullable(String sql, Object... params) Read-only query the database with a required nullableBooleanreturn type.queryBooleanOptional(String sql, Object... params) Read-only query the database with an optional non-nullBooleanreturn type.queryBooleanOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableBooleanreturn type.default byte[]queryByteArray(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with abyte[]return type.default byte[]queryByteArray(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default byte[]queryByteArray(String sql, Object... params) Read-only query the database with a required non-nullbyte[]return type.default byte[]queryByteArrayNullable(String sql, Object... params) Read-only query the database with a required nullablebyte[]return type.default Optional<byte[]> queryByteArrayOptional(String sql, Object... params) Read-only query the database with an optional non-nullbyte[]return type.default Optional<byte[]> queryByteArrayOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullablebyte[]return type.default <T> TqueryCall(int isolationLevel, boolean readOnly, ResultSetCallable<? extends T> resultSetCallable, String sql, Object... params) Query the database, calling theResultSetCallableonce.<T,Ex extends Throwable>
TqueryCall(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ResultSetCallableE<? extends T, ? extends Ex> resultSetCallable, String sql, Object... params) Query the database, calling theResultSetCallableEonce.default <T> TqueryCall(ResultSetCallable<? extends T> resultSetCallable, String sql, Object... params) Read-only query the database, calling theResultSetCallableonce.default <T,Ex extends Throwable>
TqueryCall(Class<? extends Ex> exClass, ResultSetCallableE<? extends T, ? extends Ex> resultSetCallable, String sql, Object... params) Read-only query the database, calling theResultSetCallableEonce.default <T,C extends Collection<? super T>>
CqueryCollection(int isolationLevel, boolean readOnly, C collection, ObjectFactory<? extends T> 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>
CqueryCollection(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>>
CqueryCollection(C collection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only 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>
CqueryCollection(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.default DatequeryDate(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aDatereturn type.default DateDeprecated, for removal: This API element is subject to removal in a future version.default DateRead-only query the database with a required non-nullDatereturn type.default DatequeryDateNullable(String sql, Object... params) Read-only query the database with a required nullableDatereturn type.queryDateOptional(String sql, Object... params) Read-only query the database with an optional non-nullDatereturn type.queryDateOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableDatereturn type.default DoublequeryDouble(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aDoublereturn type.default DoublequeryDouble(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default doublequeryDouble(String sql, Object... params) Read-only query the database with a required non-nulldoublereturn type.default DoublequeryDoubleNullable(String sql, Object... params) Read-only query the database with a required nullableDoublereturn type.queryDoubleOptional(String sql, Object... params) Read-only query the database with an optional non-nullDoublereturn type.queryDoubleOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableDoublereturn type.default FloatqueryFloat(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aFloatreturn type.default FloatqueryFloat(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default floatqueryFloat(String sql, Object... params) Read-only query the database with a required non-nullfloatreturn type.default FloatqueryFloatNullable(String sql, Object... params) Read-only query the database with a required nullableFloatreturn type.queryFloatOptional(String sql, Object... params) Read-only query the database with an optional non-nullFloatreturn type.queryFloatOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableFloatreturn type.default IntegerqueryInt(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with anIntegerreturn type.default IntegerDeprecated, for removal: This API element is subject to removal in a future version.default intRead-only query the database with a required non-nullintreturn type.default IntListqueryIntList(int isolationLevel, boolean readOnly, String sql, Object... params) Query the database with anIntListreturn type.default IntListqueryIntList(String sql, Object... params) Read-only query the database with anIntListreturn type.default IntegerqueryIntNullable(String sql, Object... params) Read-only query the database with a required nullableIntegerreturn type.queryIntOptional(String sql, Object... params) Read-only query the database with an optional non-nullIntegerreturn type.queryIntOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableIntegerreturn type.default <T> List<T> queryList(int isolationLevel, boolean readOnly, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Query the database with aList<T>return type, objects are created with the provided factory.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.default <T> List<T> queryList(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only query the database with aList<T>return type, objects are created with the provided factory.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 LongqueryLong(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aLongreturn type.default LongDeprecated, for removal: This API element is subject to removal in a future version.default longRead-only query the database with a required non-nulllongreturn type.default LongListqueryLongList(int isolationLevel, boolean readOnly, String sql, Object... params) Query the database with aLongListreturn type.default LongListqueryLongList(String sql, Object... params) Read-only query the database with aLongListreturn type.default LongqueryLongNullable(String sql, Object... params) Read-only query the database with a required nullableLongreturn type.queryLongOptional(String sql, Object... params) Read-only query the database with an optional non-nullLongreturn type.queryLongOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableLongreturn type.default <T,C extends Collection<? super T>>
CqueryNewCollection(int isolationLevel, boolean readOnly, Function<? super Integer, ? extends C> newCollection, ObjectFactory<? extends T> 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>
CqueryNewCollection(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>>
CqueryNewCollection(Function<? super Integer, ? extends C> newCollection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only 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>
CqueryNewCollection(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> TqueryObject(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, ObjectFactory<? extends T> 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>
TqueryObject(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> TqueryObject(int isolationLevel, boolean readOnly, boolean rowRequired, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default <T,Ex extends Throwable>
TqueryObject(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> TqueryObject(ObjectFactory<? extends T> 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>
TqueryObject(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> TqueryObjectNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only query the database with a required nullable<T>return type, objects are created with the provided factory.default <T,Ex extends Throwable>
TqueryObjectNullable(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.default <T> Optional<T> queryObjectOptional(ObjectFactory<? extends T> 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.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.default <T> Optional<T> queryObjectOptionalNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only query the database with an optional nullable<T>return type, objects are created with the provided factory.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.queryResultSet(int isolationLevel, boolean readOnly, boolean rowRequired, boolean allowExtraRows, String sql, Object... params) Query the database with a result.default ReadOnlyResultSetqueryResultSet(String sql, Object... params) Read-only query the database with a result having any number of rows.default voidqueryRun(int isolationLevel, boolean readOnly, ResultSetRunnable resultSetRunnable, String sql, Object... params) Query the database, calling theResultSetRunnableonce.default <Ex extends Throwable>
voidqueryRun(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ResultSetRunnableE<? extends Ex> resultSetRunnable, String sql, Object... params) Query the database, calling theResultSetRunnableEonce.default voidqueryRun(ResultSetRunnable resultSetRunnable, String sql, Object... params) Read-only query the database, calling theResultSetRunnableonce.default <Ex extends Throwable>
voidqueryRun(Class<? extends Ex> exClass, ResultSetRunnableE<? extends Ex> resultSetRunnable, String sql, Object... params) Read-only query the database, calling theResultSetRunnableEonce.default ShortqueryShort(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aShortreturn type.default ShortqueryShort(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default shortqueryShort(String sql, Object... params) Read-only query the database with a required non-nullshortreturn type.default ShortqueryShortNullable(String sql, Object... params) Read-only query the database with a required nullableShortreturn type.queryShortOptional(String sql, Object... params) Read-only query the database with an optional non-nullShortreturn type.queryShortOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableShortreturn type.default ReadOnlySingleResultquerySingleResult(String sql, Object... params) Read-only query the database with a required result.default StringqueryString(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aStringreturn type.default StringqueryString(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default StringqueryString(String sql, Object... params) Read-only query the database with a required non-nullStringreturn type.queryStringList(int isolationLevel, boolean readOnly, String sql, Object... params) Query the database with aList<String>return type.queryStringList(String sql, Object... params) Read-only query the database with aList<String>return type.default StringqueryStringNullable(String sql, Object... params) Read-only query the database with a required nullableStringreturn type.queryStringOptional(String sql, Object... params) Read-only query the database with an optional non-nullStringreturn type.queryStringOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableStringreturn type.default TimestampqueryTimestamp(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) Query the database with aTimestampreturn type.default TimestampqueryTimestamp(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.default TimestampqueryTimestamp(String sql, Object... params) Read-only query the database with a required non-nullTimestampreturn type.default TimestampqueryTimestampNullable(String sql, Object... params) Read-only query the database with a required nullableTimestampreturn type.queryTimestampOptional(String sql, Object... params) Read-only query the database with an optional non-nullTimestampreturn type.queryTimestampOptionalNullable(String sql, Object... params) Read-only query the database with an optional nullableTimestampreturn type.default <T> Stream<T> stream(int isolationLevel, boolean readOnly, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Query the database with aStream<T>return type, objects are created with the provided factory.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.default <T> Stream<T> stream(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only query the database with aStream<T>return type, objects are created with the provided factory.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.streamOptional(int isolationLevel, boolean readOnly, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Query the database with aStream<Optional<T>>return type, objects are created with the provided factory.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.streamOptional(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-only query the database with aStream<Optional<T>>return type, objects are created with the provided factory.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.streamOptionalUpdate(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write query the database with aStream<Optional<T>>return type, objects are created with the provided factory.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.streamString(int isolationLevel, boolean readOnly, String sql, Object... params) Query the database with aStream<String>return type.streamString(String sql, Object... params) Read-only query the database with aStream<String>return type.streamStringUpdate(String sql, Object... params) Read-write query the database with aStream<String>return type.default <T> Stream<T> streamUpdate(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write query the database with aStream<T>return type, objects are created with the provided factory.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 <V> VtransactionCall(DatabaseCallable<? extends V> callable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.default <V> VtransactionCall(CallableE<? extends V, ? extends SQLException> callable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.<V,Ex extends Throwable>
VtransactionCall(Class<? extends Ex> exClass, DatabaseCallableE<? extends V, ? extends Ex> callable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.default <V,Ex extends Throwable>
VtransactionCall(Class<? extends Ex> exClass, CallableE<? extends V, ? extends Ex> callable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.default voidtransactionRun(DatabaseRunnable runnable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.default voidtransactionRun(RunnableE<? extends SQLException> runnable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.default <Ex extends Throwable>
voidtransactionRun(Class<? extends Ex> exClass, DatabaseRunnableE<? extends Ex> runnable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.default <Ex extends Throwable>
voidtransactionRun(Class<? extends Ex> exClass, RunnableE<? extends Ex> runnable) Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.intPerforms an update on the database and returns the number of rows affected.default BigDecimalupdateBigDecimal(String sql, Object... params) Read-write query the database with a required non-nullBigDecimalreturn type.default BigDecimalupdateBigDecimalNullable(String sql, Object... params) Read-write query the database with a required nullableBigDecimalreturn type.default Optional<BigDecimal> updateBigDecimalOptional(String sql, Object... params) Read-write query the database with an optional non-nullBigDecimalreturn type.default Optional<BigDecimal> updateBigDecimalOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableBigDecimalreturn type.default booleanupdateBoolean(String sql, Object... params) Read-write query the database with a required non-nullbooleanreturn type.default BooleanupdateBooleanNullable(String sql, Object... params) Read-write query the database with a required nullableBooleanreturn type.updateBooleanOptional(String sql, Object... params) Read-write query the database with an optional non-nullBooleanreturn type.updateBooleanOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableBooleanreturn type.default byte[]updateByteArray(String sql, Object... params) Read-write query the database with a required non-nullbyte[]return type.default byte[]updateByteArrayNullable(String sql, Object... params) Read-write query the database with a required nullablebyte[]return type.default Optional<byte[]> updateByteArrayOptional(String sql, Object... params) Read-write query the database with an optional non-nullbyte[]return type.default Optional<byte[]> updateByteArrayOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullablebyte[]return type.default <T> TupdateCall(ResultSetCallable<? extends T> resultSetCallable, String sql, Object... params) Read-write query the database, calling theResultSetCallableonce.default <T,Ex extends Throwable>
TupdateCall(Class<? extends Ex> exClass, ResultSetCallableE<? extends T, ? extends Ex> resultSetCallable, String sql, Object... params) Read-write query the database, calling theResultSetCallableEonce.default <T,C extends Collection<? super T>>
CupdateCollection(C collection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write 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>
CupdateCollection(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.default DateupdateDate(String sql, Object... params) Read-write query the database with a required non-nullDatereturn type.default DateupdateDateNullable(String sql, Object... params) Read-write query the database with a required nullableDatereturn type.updateDateOptional(String sql, Object... params) Read-write query the database with an optional non-nullDatereturn type.updateDateOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableDatereturn type.default doubleupdateDouble(String sql, Object... params) Read-write query the database with a required non-nulldoublereturn type.default DoubleupdateDoubleNullable(String sql, Object... params) Read-write query the database with a required nullableDoublereturn type.updateDoubleOptional(String sql, Object... params) Read-write query the database with an optional non-nullDoublereturn type.updateDoubleOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableDoublereturn type.default floatupdateFloat(String sql, Object... params) Read-write query the database with a required non-nullfloatreturn type.default FloatupdateFloatNullable(String sql, Object... params) Read-write query the database with a required nullableFloatreturn type.updateFloatOptional(String sql, Object... params) Read-write query the database with an optional non-nullFloatreturn type.updateFloatOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableFloatreturn type.default intRead-write query the database with a required non-nullintreturn type.default IntListupdateIntList(String sql, Object... params) Read-write query the database with anIntListreturn type.default IntegerupdateIntNullable(String sql, Object... params) Read-write query the database with a required nullableIntegerreturn type.updateIntOptional(String sql, Object... params) Read-write query the database with an optional non-nullIntegerreturn type.updateIntOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableIntegerreturn type.default <T> List<T> updateList(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write query the database with aList<T>return type, objects are created with the provided factory.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 longupdateLong(String sql, Object... params) Read-write query the database with a required non-nulllongreturn type.default LongListupdateLongList(String sql, Object... params) Read-write query the database with aLongListreturn type.default LongupdateLongNullable(String sql, Object... params) Read-write query the database with a required nullableLongreturn type.updateLongOptional(String sql, Object... params) Read-write query the database with an optional non-nullLongreturn type.updateLongOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableLongreturn type.default <T,C extends Collection<? super T>>
CupdateNewCollection(Function<? super Integer, ? extends C> newCollection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write 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>
CupdateNewCollection(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> TupdateObject(ObjectFactory<? extends T> 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>
TupdateObject(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> TupdateObjectNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write query the database with a required nullable<T>return type, objects are created with the provided factory.default <T,Ex extends Throwable>
TupdateObjectNullable(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.default <T> Optional<T> updateObjectOptional(ObjectFactory<? extends T> 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.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.default <T> Optional<T> updateObjectOptionalNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) Read-write query the database with an optional nullable<T>return type, objects are created with the provided factory.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.default ResultSetupdateResultSet(String sql, Object... params) Read-write query the database with a result having any number of rows.default voidupdateRun(ResultSetRunnable resultSetRunnable, String sql, Object... params) Read-write query the database, calling theResultSetRunnableonce.default <Ex extends Throwable>
voidupdateRun(Class<? extends Ex> exClass, ResultSetRunnableE<? extends Ex> resultSetRunnable, String sql, Object... params) Read-write query the database, calling theResultSetRunnableEonce.default shortupdateShort(String sql, Object... params) Read-write query the database with a required non-nullshortreturn type.default ShortupdateShortNullable(String sql, Object... params) Read-write query the database with a required nullableShortreturn type.updateShortOptional(String sql, Object... params) Read-write query the database with an optional non-nullShortreturn type.updateShortOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableShortreturn type.default SingleResultupdateSingleResult(String sql, Object... params) Read-write query the database with a required result.default StringupdateString(String sql, Object... params) Read-write query the database with a required non-nullStringreturn type.updateStringList(String sql, Object... params) Read-write query the database with aList<String>return type.default StringupdateStringNullable(String sql, Object... params) Read-write query the database with a required nullableStringreturn type.updateStringOptional(String sql, Object... params) Read-write query the database with an optional non-nullStringreturn type.updateStringOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableStringreturn type.default TimestampupdateTimestamp(String sql, Object... params) Read-write query the database with a required non-nullTimestampreturn type.default TimestampupdateTimestampNullable(String sql, Object... params) Read-write query the database with a required nullableTimestampreturn type.updateTimestampOptional(String sql, Object... params) Read-write query the database with an optional non-nullTimestampreturn type.updateTimestampOptionalNullable(String sql, Object... params) Read-write query the database with an optional nullableTimestampreturn type.
-
Method Details
-
isInTransaction
boolean isInTransaction()Checks if the current thread is in a transaction.- See Also:
-
transactionCall
default <V> V transactionCall(CallableE<? extends V, ? extends SQLException> callable) throws SQLExceptionExecutes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Throws:
SQLException- See Also:
- Rolls-back the transaction on
-
transactionCall
default <V,Ex extends Throwable> V transactionCall(Class<? extends Ex> exClass, CallableE<? extends V, ? extends Ex> callable) throws SQLException, ExExecutes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- Rolls-back the transaction on
-
transactionCall
Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Throws:
SQLException- See Also:
- Rolls-back the transaction on
-
transactionCall
<V,Ex extends Throwable> V transactionCall(Class<? extends Ex> exClass, DatabaseCallableE<? extends V, ? extends Ex> callable) throws SQLException, ExExecutes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- Rolls-back the transaction on
-
transactionRun
Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Throws:
SQLException- See Also:
- Rolls-back the transaction on
-
transactionRun
default <Ex extends Throwable> void transactionRun(Class<? extends Ex> exClass, RunnableE<? extends Ex> runnable) throws SQLException, Ex Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- Rolls-back the transaction on
-
transactionRun
Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Throws:
SQLException- See Also:
- Rolls-back the transaction on
-
transactionRun
default <Ex extends Throwable> void transactionRun(Class<? extends Ex> exClass, DatabaseRunnableE<? extends Ex> runnable) throws SQLException, Ex Executes an arbitrary transaction, providing automatic commit, rollback, and connection management.- Rolls-back the transaction on
NoRowException,NullDataException, orExtraRowExceptionon the outer-most transaction only. - Rolls-back the transaction on all other
Throwable.
The connection allocated is stored as a
ThreadLocaland will be automatically reused if another transaction is performed within this transaction. Any nested transaction will automatically become part of the enclosing transaction. For safety, a nested transaction will still rollback the entire transaction on any exception.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- Rolls-back the transaction on
-
querySingleResult
default ReadOnlySingleResult querySingleResult(String sql, Object... params) throws NoRowException, SQLException Read-only query the database with a required result. The cursor is already positioned soResultSet.next()should not be called.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - allowExtraRows =
false
ExtraRowExceptiondetection is deferred toResultSet.close().- Returns:
- The result, which must be
closed. Unlike typical implementations ofResultSet.close(), the implementations of this method perform additional clean-up, depending on the usage. Examples include:- Verifying no unexpected additional results to enforce
ExtraRowException - Registering specific SQL statement in
ErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)during exception handling - Closing the related
PreparedStatement - Managing transaction boundaries
- Closing the related
Connection, which will typically release it back to the pool.
- Verifying no unexpected additional results to enforce
- Throws:
NoRowException- When has no row.SQLException
- isolationLevel =
-
queryResultSet
Read-only query the database with a result having any number of rows.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - allowExtraRows =
true
- Returns:
- The result, which must be
closed. Unlike typical implementations ofResultSet.close(), the implementations of this method perform additional clean-up, depending on the usage. Examples include:- Registering specific SQL statement in
ErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)during exception handling - Closing the related
PreparedStatement - Managing transaction boundaries
- Closing the related
Connection, which will typically release it back to the pool.
- Registering specific SQL statement in
- Throws:
SQLException
- isolationLevel =
-
updateSingleResult
default SingleResult updateSingleResult(String sql, Object... params) throws NoRowException, SQLException Read-write query the database with a required result. The cursor is already positioned soSingleResult.next()should not be called.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - allowExtraRows =
false
ExtraRowExceptiondetection is deferred toSingleResult.close().- Returns:
- The result, which must be
closed. Unlike typical implementations ofResultSet.close(), the implementations of this method perform additional clean-up, depending on the usage. Examples include:- Verifying no unexpected additional results to enforce
ExtraRowException - Registering specific SQL statement in
ErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)during exception handling - Closing the related
PreparedStatement - Managing transaction boundaries
- Closing the related
Connection, which will typically release it back to the pool.
- Verifying no unexpected additional results to enforce
- Throws:
NoRowException- When has no row.SQLException
- isolationLevel =
-
updateResultSet
Read-write query the database with a result having any number of rows.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - allowExtraRows =
true
- Returns:
- The result, which must be
closed. Unlike typical implementations ofResultSet.close(), the implementations of this method perform additional clean-up, depending on the usage. Examples include:- Registering specific SQL statement in
ErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)during exception handling - Closing the related
PreparedStatement - Managing transaction boundaries
- Closing the related
Connection, which will typically release it back to the pool.
- Registering specific SQL statement in
- Throws:
SQLException
- isolationLevel =
-
queryResultSet
ResultSet queryResultSet(int isolationLevel, boolean readOnly, boolean rowRequired, boolean allowExtraRows, String sql, Object... params) throws NoRowException, SQLException Query the database with a result.ExtraRowExceptiondetection is deferred toResultSet.close()only when!allowExtraRows.- Parameters:
rowRequired- Whentrue, will callResultSet.next()on the result. Then if no row, will throwNoRowException. This means that the result set will be atResultSet.first(), not atResultSet.beforeFirst().Combined with
allowExtraRows = false, this is a natural fit for callers that expect one and only one row.- Returns:
- The result, which must be
closed. Unlike typical implementations ofResultSet.close(), the implementations of this method perform additional clean-up, depending on the usage. Examples include:- Verifying no unexpected additional results to enforce
ExtraRowException - Registering specific SQL statement in
ErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)during exception handling - Closing the related
PreparedStatement - Managing transaction boundaries
- Closing the related
Connection, which will typically release it back to the pool.
- Verifying no unexpected additional results to enforce
- Throws:
NoRowException- When has no row androwRequired.SQLException
-
queryBigDecimal
default BigDecimal queryBigDecimal(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryBigDecimalNullable
default BigDecimal queryBigDecimalNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryBigDecimalOptional
default Optional<BigDecimal> queryBigDecimalOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryBigDecimalOptionalNullable
default Optional<BigDecimal> queryBigDecimalOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeBigDecimalQuery
@Deprecated(forRemoval=true) default BigDecimal executeBigDecimalQuery(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateBigDecimal
default BigDecimal updateBigDecimal(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateBigDecimalNullable
default BigDecimal updateBigDecimalNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateBigDecimalOptional
default Optional<BigDecimal> updateBigDecimalOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateBigDecimalOptionalNullable
default Optional<BigDecimal> updateBigDecimalOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableBigDecimalreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeBigDecimalUpdate
@Deprecated(forRemoval=true) default BigDecimal executeBigDecimalUpdate(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryBigDecimal
default BigDecimal queryBigDecimal(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aBigDecimalreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryBigDecimal
@Deprecated(forRemoval=true) default BigDecimal queryBigDecimal(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeBigDecimalQuery
@Deprecated(forRemoval=true) default BigDecimal executeBigDecimalQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryBoolean
default boolean queryBoolean(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullbooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryBooleanNullable
default Boolean queryBooleanNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableBooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryBooleanOptional
default Optional<Boolean> queryBooleanOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullBooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional#empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryBooleanOptionalNullable
default Optional<Boolean> queryBooleanOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableBooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeBooleanQuery
@Deprecated(forRemoval=true) default boolean executeBooleanQuery(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateBoolean
default boolean updateBoolean(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullbooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateBooleanNullable
default Boolean updateBooleanNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableBooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateBooleanOptional
default Optional<Boolean> updateBooleanOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullBooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional#empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateBooleanOptionalNullable
default Optional<Boolean> updateBooleanOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableBooleanreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeBooleanUpdate
@Deprecated(forRemoval=true) default boolean executeBooleanUpdate(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryBoolean
default Boolean queryBoolean(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aBooleanreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryBoolean
@Deprecated(forRemoval=true) default Boolean queryBoolean(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeBooleanQuery
@Deprecated(forRemoval=true) default Boolean executeBooleanQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryByteArray
default byte[] queryByteArray(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullbyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryByteArrayNullable
default byte[] queryByteArrayNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullablebyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryByteArrayOptional
default Optional<byte[]> queryByteArrayOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullbyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryByteArrayOptionalNullable
default Optional<byte[]> queryByteArrayOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullablebyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeByteArrayQuery
@Deprecated(forRemoval=true) default byte[] executeByteArrayQuery(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateByteArray
default byte[] updateByteArray(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullbyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateByteArrayNullable
default byte[] updateByteArrayNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullablebyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateByteArrayOptional
default Optional<byte[]> updateByteArrayOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullbyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateByteArrayOptionalNullable
default Optional<byte[]> updateByteArrayOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullablebyte[]return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeByteArrayUpdate
@Deprecated(forRemoval=true) default byte[] executeByteArrayUpdate(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryByteArray
default byte[] queryByteArray(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with abyte[]return type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryByteArray
@Deprecated(forRemoval=true) default byte[] queryByteArray(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeByteArrayQuery
@Deprecated(forRemoval=true) default byte[] executeByteArrayQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryDate
default Date queryDate(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDateNullable
default Date queryDateNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDateOptional
default Optional<Date> queryDateOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDateOptionalNullable
default Optional<Date> queryDateOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeDateQuery
@Deprecated(forRemoval=true) default Date executeDateQuery(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateDate
default Date updateDate(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDateNullable
default Date updateDateNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDateOptional
default Optional<Date> updateDateOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDateOptionalNullable
default Optional<Date> updateDateOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableDatereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeDateUpdate
@Deprecated(forRemoval=true) default Date executeDateUpdate(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryDate
default Date queryDate(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aDatereturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryDate
@Deprecated(forRemoval=true) default Date queryDate(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeDateQuery
@Deprecated(forRemoval=true) default Date executeDateQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryDouble
default double queryDouble(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nulldoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDoubleNullable
default Double queryDoubleNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableDoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDoubleOptional
default Optional<Double> queryDoubleOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullDoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDoubleOptionalNullable
default Optional<Double> queryDoubleOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableDoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDouble
default double updateDouble(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nulldoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDoubleNullable
default Double updateDoubleNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableDoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDoubleOptional
default Optional<Double> updateDoubleOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullDoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateDoubleOptionalNullable
default Optional<Double> updateDoubleOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableDoublereturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryDouble
default Double queryDouble(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aDoublereturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryDouble
@Deprecated(forRemoval=true) default Double queryDouble(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
doubleStream
default DoubleStream doubleStream(String sql, Object... params) throws NullDataException, SQLException Read-only query the database with aDoubleStreamreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
doubleStreamUpdate
default DoubleStream doubleStreamUpdate(String sql, Object... params) throws NullDataException, SQLException Read-write query the database with aDoubleStreamreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
doubleStream
default DoubleStream doubleStream(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Query the database with aDoubleStreamreturn type.- Throws:
NullDataException- When has a SQL NULL value.SQLException
-
queryFloat
default float queryFloat(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullfloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryFloatNullable
default Float queryFloatNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableFloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryFloatOptional
default Optional<Float> queryFloatOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullFloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryFloatOptionalNullable
default Optional<Float> queryFloatOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableFloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateFloat
default float updateFloat(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullfloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateFloatNullable
default Float updateFloatNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableFloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateFloatOptional
default Optional<Float> updateFloatOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullFloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateFloatOptionalNullable
default Optional<Float> updateFloatOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableFloatreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryFloat
default Float queryFloat(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aFloatreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryFloat
@Deprecated(forRemoval=true) default Float queryFloat(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryInt
default int queryInt(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullintreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryIntNullable
default Integer queryIntNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableIntegerreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryIntOptional
default Optional<Integer> queryIntOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullIntegerreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryIntOptionalNullable
default Optional<Integer> queryIntOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableIntegerreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeIntQuery
@Deprecated(forRemoval=true) default int executeIntQuery(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateInt
default int updateInt(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullintreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateIntNullable
default Integer updateIntNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableIntegerreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateIntOptional
default Optional<Integer> updateIntOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullIntegerreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateIntOptionalNullable
default Optional<Integer> updateIntOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableIntegerreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeIntUpdate
@Deprecated(forRemoval=true) default int executeIntUpdate(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryInt
default Integer queryInt(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with anIntegerreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryInt
@Deprecated(forRemoval=true) default Integer queryInt(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeIntQuery
@Deprecated(forRemoval=true) default Integer executeIntQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryIntList
Read-only query the database with anIntListreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
executeIntListQuery
@Deprecated(forRemoval=true) default IntList executeIntListQuery(String sql, Object... params) throws NullDataException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
NullDataExceptionSQLException
-
updateIntList
Read-write query the database with anIntListreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
executeIntListUpdate
@Deprecated(forRemoval=true) default IntList executeIntListUpdate(String sql, Object... params) throws NullDataException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
NullDataExceptionSQLException
-
queryIntList
default IntList queryIntList(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Query the database with anIntListreturn type.- Throws:
NullDataException- When has a SQL NULL value.SQLException
-
executeIntListQuery
@Deprecated(forRemoval=true) default IntList executeIntListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
NullDataExceptionSQLException
-
intStream
Read-only query the database with anIntStreamreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
intStreamUpdate
default IntStream intStreamUpdate(String sql, Object... params) throws NullDataException, SQLException Read-write query the database with anIntStreamreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
intStream
default IntStream intStream(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Query the database with anIntStreamreturn type.- Throws:
NullDataException- When has a SQL NULL value.SQLException
-
queryLong
default long queryLong(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nulllongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryLongNullable
default Long queryLongNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableLongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryLongOptional
default Optional<Long> queryLongOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullLongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryLongOptionalNullable
default Optional<Long> queryLongOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableLongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeLongQuery
@Deprecated(forRemoval=true) default long executeLongQuery(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateLong
default long updateLong(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nulllongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateLongNullable
default Long updateLongNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableLongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateLongOptional
default Optional<Long> updateLongOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullLongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateLongOptionalNullable
default Optional<Long> updateLongOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableLongreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeLongUpdate
@Deprecated(forRemoval=true) default long executeLongUpdate(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryLong
default Long queryLong(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aLongreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryLong
@Deprecated(forRemoval=true) default Long queryLong(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeLongQuery
@Deprecated(forRemoval=true) default Long executeLongQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryLongList
Read-only query the database with aLongListreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
executeLongListQuery
@Deprecated(forRemoval=true) default LongList executeLongListQuery(String sql, Object... params) throws NullDataException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
NullDataExceptionSQLException
-
updateLongList
default LongList updateLongList(String sql, Object... params) throws NullDataException, SQLException Read-write query the database with aLongListreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
executeLongListUpdate
@Deprecated(forRemoval=true) default LongList executeLongListUpdate(String sql, Object... params) throws NullDataException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
NullDataExceptionSQLException
-
queryLongList
default LongList queryLongList(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Query the database with aLongListreturn type.- Throws:
NullDataException- When has a SQL NULL value.SQLException
-
executeLongListQuery
@Deprecated(forRemoval=true) default LongList executeLongListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
NullDataExceptionSQLException
-
longStream
Read-only query the database with aLongStreamreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
longStreamUpdate
default LongStream longStreamUpdate(String sql, Object... params) throws NullDataException, SQLException Read-write query the database with aLongStreamreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
NullDataException- When has a SQL NULL value.SQLException- See Also:
- isolationLevel =
-
longStream
default LongStream longStream(int isolationLevel, boolean readOnly, String sql, Object... params) throws NullDataException, SQLException Query the database with aLongStreamreturn type.- Throws:
NullDataException- When has a SQL NULL value.SQLException
-
executeObjectQuery
@Deprecated(forRemoval=true) default <T> T executeObjectQuery(Class<T> clazz, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryObject(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Read-only query the database with a required<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true
- Returns:
- The value or
nullwhen row withnullvalue. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException- See Also:
- isolationLevel =
-
executeObjectUpdate
@Deprecated(forRemoval=true) default <T> T executeObjectUpdate(Class<T> clazz, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateObject(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Read-write query the database with a required<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true
- Returns:
- The value or
nullwhen row withnullvalue. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException- See Also:
- isolationLevel =
-
executeObjectQuery
@Deprecated(forRemoval=true) default <T> T executeObjectQuery(int isolationLevel, boolean readOnly, boolean rowRequired, Class<T> clazz, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryObject(int, boolean, boolean, boolean, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Query the database with a<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- Returns:
- The value or
nullwhen no row and row not required, or when row withnullvalue. - Throws:
NoRowException- When has no row androwRequired.ExtraRowException- When has more than one row.SQLException
-
queryObject
default <T> T queryObject(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryObjectNullable
default <T> T queryObjectNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row withobjectFactoryreturningnull. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryObjectOptional
default <T> Optional<T> queryObjectOptional(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryObjectOptionalNullable
default <T> Optional<T> queryObjectOptionalNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row withobjectFactoryreturningnull. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeObjectQuery
@Deprecated(forRemoval=true) default <T> T executeObjectQuery(ObjectFactory<T> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateObject
default <T> T updateObject(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateObjectNullable
default <T> T updateObjectNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row withobjectFactoryreturningnull. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateObjectOptional
default <T> Optional<T> updateObjectOptional(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateObjectOptionalNullable
default <T> Optional<T> updateObjectOptionalNullable(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row withobjectFactoryreturningnull. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeObjectUpdate
@Deprecated(forRemoval=true) default <T> T executeObjectUpdate(ObjectFactory<T> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryObject
default <T> T queryObject(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with a<T>return type, objects are created with the provided factory.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row withobjectFactoryreturningnullvalue andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but withobjectFactoryreturningnulland!nullable.ExtraRowException- When has more than one row.SQLException
-
queryObject
@Deprecated(forRemoval=true) default <T> T queryObject(int isolationLevel, boolean readOnly, boolean rowRequired, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeObjectQuery
@Deprecated(forRemoval=true) default <T> T executeObjectQuery(int isolationLevel, boolean readOnly, boolean rowRequired, ObjectFactory<T> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryObject
default <T,Ex extends Throwable> T queryObject(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException, ExRead-only query the database with a required non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
queryObjectNullable
default <T,Ex extends Throwable> T queryObjectNullable(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException, ExRead-only query the database with a required nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value or
nullwhen row withobjectFactoryreturningnull. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
queryObjectOptional
default <T,Ex extends Throwable> Optional<T> queryObjectOptional(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NullDataException, ExtraRowException, SQLException, ExRead-only query the database with an optional non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
queryObjectOptionalNullable
default <T,Ex extends Throwable> Optional<T> queryObjectOptionalNullable(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws ExtraRowException, SQLException, ExRead-only query the database with an optional nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value or
Optional.empty()when either no row or row withobjectFactoryreturningnull. - Throws:
ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
executeObjectQuery
@Deprecated(forRemoval=true) default <T,Ex extends Exception> T executeObjectQuery(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
NoRowExceptionExtraRowExceptionSQLExceptionEx
-
updateObject
default <T,Ex extends Throwable> T updateObject(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException, ExRead-write query the database with a required non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
updateObjectNullable
default <T,Ex extends Throwable> T updateObjectNullable(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException, ExRead-write query the database with a required nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value or
nullwhen row withobjectFactoryreturningnull. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
updateObjectOptional
default <T,Ex extends Throwable> Optional<T> updateObjectOptional(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NullDataException, ExtraRowException, SQLException, ExRead-write query the database with an optional non-null<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but withobjectFactoryreturningnull.ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
updateObjectOptionalNullable
default <T,Ex extends Throwable> Optional<T> updateObjectOptionalNullable(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws ExtraRowException, SQLException, ExRead-write query the database with an optional nullable<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value or
Optional.empty()when either no row or row withobjectFactoryreturningnull. - Throws:
ExtraRowException- When has more than one row.SQLExceptionEx
- isolationLevel =
-
executeObjectUpdate
@Deprecated(forRemoval=true) default <T,Ex extends Exception> T executeObjectUpdate(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
NoRowExceptionExtraRowExceptionSQLExceptionEx
-
queryObject
default <T,Ex extends Throwable> T queryObject(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException, ExQuery the database with a<T>return type, objects are created with the provided factory.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row withobjectFactoryreturningnullvalue andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but withobjectFactoryreturningnulland!nullable.ExtraRowException- When has more than one row.SQLExceptionEx
-
queryObject
@Deprecated(forRemoval=true) default <T,Ex extends Throwable> T queryObject(int isolationLevel, boolean readOnly, boolean rowRequired, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
NoRowExceptionExtraRowExceptionSQLExceptionEx
-
executeObjectQuery
@Deprecated(forRemoval=true) default <T,Ex extends Exception> T executeObjectQuery(int isolationLevel, boolean readOnly, boolean rowRequired, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
NoRowExceptionExtraRowExceptionSQLExceptionEx
-
executeObjectListQuery
@Deprecated(forRemoval=true) default <T> List<T> executeObjectListQuery(Class<T> clazz, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryList(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Read-only query the database with aList<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Returns:
- An unmodifiable list
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectListUpdate
@Deprecated(forRemoval=true) default <T> List<T> executeObjectListUpdate(Class<T> clazz, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateList(com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Read-write query the database with aList<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Returns:
- An unmodifiable list
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectListQuery
@Deprecated(forRemoval=true) default <T> List<T> executeObjectListQuery(int isolationLevel, boolean readOnly, Class<T> clazz, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryList(int, boolean, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Query the database with aList<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- Returns:
- An unmodifiable list
- Throws:
SQLException
-
queryList
default <T> List<T> queryList(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-only query the database with aList<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Returns:
- An unmodifiable list
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectListQuery
@Deprecated(forRemoval=true) default <T> List<T> executeObjectListQuery(ObjectFactory<T> objectFactory, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
updateList
default <T> List<T> updateList(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-write query the database with aList<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Returns:
- An unmodifiable list
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectListUpdate
@Deprecated(forRemoval=true) default <T> List<T> executeObjectListUpdate(ObjectFactory<T> objectFactory, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryList
default <T> List<T> queryList(int isolationLevel, boolean readOnly, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Query the database with aList<T>return type, objects are created with the provided factory.- Returns:
- An unmodifiable list
- Throws:
SQLException
-
executeObjectListQuery
@Deprecated(forRemoval=true) default <T> List<T> executeObjectListQuery(int isolationLevel, boolean readOnly, ObjectFactory<T> objectFactory, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryList
default <T,Ex extends Throwable> List<T> queryList(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-only query the database with aList<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- An unmodifiable list
- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
executeObjectListQuery
@Deprecated(forRemoval=true) default <T,Ex extends Exception> List<T> executeObjectListQuery(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
updateList
default <T,Ex extends Throwable> List<T> updateList(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-write query the database with aList<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- An unmodifiable list
- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
executeObjectListUpdate
@Deprecated(forRemoval=true) default <T,Ex extends Exception> List<T> executeObjectListUpdate(Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
queryList
default <T,Ex extends Throwable> List<T> queryList(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExQuery the database with aList<T>return type, objects are created with the provided factory.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Returns:
- An unmodifiable list
- Throws:
SQLExceptionEx
-
executeObjectListQuery
@Deprecated(forRemoval=true) default <T,Ex extends Exception> List<T> executeObjectListQuery(int isolationLevel, boolean readOnly, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
stream
default <T> Stream<T> stream(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-only query the database with aStream<T>return type, objects are created with the provided factory.When the factory is nullable, the stream may contain
nullelements. Otherwise, will have the characteristicSpliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
streamUpdate
default <T> Stream<T> streamUpdate(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-write query the database with aStream<T>return type, objects are created with the provided factory.When the factory is nullable, the stream may contain
nullelements. Otherwise, will have the characteristicSpliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
stream
default <T> Stream<T> stream(int isolationLevel, boolean readOnly, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Query the database with aStream<T>return type, objects are created with the provided factory.When the factory is nullable, the stream may contain
nullelements. Otherwise, will have the characteristicSpliterator.NONNULL.- Throws:
SQLException
-
stream
default <T,Ex extends Throwable> Stream<T> stream(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-only query the database with aStream<T>return type, objects are created with the provided factory.When the factory is nullable, the stream may contain
nullelements. Otherwise, will have the characteristicSpliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
streamUpdate
default <T,Ex extends Throwable> Stream<T> streamUpdate(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-write query the database with aStream<T>return type, objects are created with the provided factory.When the factory is nullable, the stream may contain
nullelements. Otherwise, will have the characteristicSpliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
stream
default <T,Ex extends Throwable> Stream<T> stream(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExQuery the database with aStream<T>return type, objects are created with the provided factory.When the factory is nullable, the stream may contain
nullelements. Otherwise, will have the characteristicSpliterator.NONNULL.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
streamOptional
default <T> Stream<Optional<T>> streamOptional(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-only query the database with aStream<Optional<T>>return type, objects are created with the provided factory.Always has the characteristic
Spliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
streamOptionalUpdate
default <T> Stream<Optional<T>> streamOptionalUpdate(ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-write query the database with aStream<Optional<T>>return type, objects are created with the provided factory.Always has the characteristic
Spliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
streamOptional
default <T> Stream<Optional<T>> streamOptional(int isolationLevel, boolean readOnly, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Query the database with aStream<Optional<T>>return type, objects are created with the provided factory.Always has the characteristic
Spliterator.NONNULL.- Throws:
SQLException
-
streamOptional
default <T,Ex extends Throwable> Stream<Optional<T>> streamOptional(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-only query the database with aStream<Optional<T>>return type, objects are created with the provided factory.Always has the characteristic
Spliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
streamOptionalUpdate
default <T,Ex extends Throwable> Stream<Optional<T>> streamOptionalUpdate(Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-write query the database with aStream<Optional<T>>return type, objects are created with the provided factory.Always has the characteristic
Spliterator.NONNULL.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
streamOptional
default <T,Ex extends Throwable> Stream<Optional<T>> streamOptional(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExQuery the database with aStream<Optional<T>>return type, objects are created with the provided factory.Always has the characteristic
Spliterator.NONNULL.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
executeObjectCollectionQuery
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>> C executeObjectCollectionQuery(C collection, Class<T> clazz, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryCollection(java.util.Collection, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Read-only query the database with aCollection<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectCollectionUpdate
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>> C executeObjectCollectionUpdate(C collection, Class<T> clazz, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateCollection(java.util.Collection, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Read-write query the database with aCollection<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectCollectionQuery
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>> C executeObjectCollectionQuery(int isolationLevel, boolean readOnly, C collection, Class<T> clazz, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Please usequeryCollection(int, boolean, java.util.Collection, com.aoapps.dbc.ObjectFactory, java.lang.String, java.lang.Object...)with a constructor lambdaClass::new.Query the database with aCollection<T>return type. Class <T> must have a constructor that takes a single argument ofResultSet.- Throws:
SQLException
-
queryCollection
default <T,C extends Collection<? super T>> C queryCollection(C collection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-only query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectCollectionQuery
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>> C executeObjectCollectionQuery(C collection, ObjectFactory<T> objectFactory, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
updateCollection
default <T,C extends Collection<? super T>> C updateCollection(C collection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Read-write query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeObjectCollectionUpdate
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>> C executeObjectCollectionUpdate(C collection, ObjectFactory<T> objectFactory, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryCollection
default <T,C extends Collection<? super T>> C queryCollection(int isolationLevel, boolean readOnly, C collection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLException Query the database with aCollection<T>return type, objects are created with the provided factory.- Throws:
SQLException
-
executeObjectCollectionQuery
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>> C executeObjectCollectionQuery(int isolationLevel, boolean readOnly, C collection, ObjectFactory<T> objectFactory, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryCollection
default <T,C extends Collection<? super T>, C queryCollectionEx extends Throwable> (C collection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-only query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
executeObjectCollectionQuery
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>, C executeObjectCollectionQueryEx extends Exception> (C collection, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
updateCollection
default <T,C extends Collection<? super T>, C updateCollectionEx extends Throwable> (C collection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExRead-write query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
executeObjectCollectionUpdate
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>, C executeObjectCollectionUpdateEx extends Exception> (C collection, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
queryCollection
default <T,C extends Collection<? super T>, C queryCollectionEx extends Throwable> (int isolationLevel, boolean readOnly, C collection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, ? extends Ex> objectFactory, String sql, Object... params) throws SQLException, ExQuery the database with aCollection<T>return type, objects are created with the provided factory.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
executeObjectCollectionQuery
@Deprecated(forRemoval=true) default <T,C extends Collection<? super T>, C executeObjectCollectionQueryEx extends Exception> (int isolationLevel, boolean readOnly, C collection, Class<Ex> exClass, ObjectFactoryE<T, Ex> objectFactory, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
queryNewCollection
default <T,C extends Collection<? super T>> C queryNewCollection(Function<? super Integer, ? extends C> newCollection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLExceptionRead-only query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Parameters:
newCollection- given the row count, ornullwhen unknown, creates the new collection- Throws:
SQLException- See Also:
- isolationLevel =
-
updateNewCollection
default <T,C extends Collection<? super T>> C updateNewCollection(Function<? super Integer, ? extends C> newCollection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLExceptionRead-write query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Parameters:
newCollection- given the row count, ornullwhen unknown, creates the new collection- Throws:
SQLException- See Also:
- isolationLevel =
-
queryNewCollection
default <T,C extends Collection<? super T>> C queryNewCollection(int isolationLevel, boolean readOnly, Function<? super Integer, ? extends C> newCollection, ObjectFactory<? extends T> objectFactory, String sql, Object... params) throws SQLExceptionQuery the database with aCollection<T>return type, objects are created with the provided factory.- Parameters:
newCollection- given the row count, ornullwhen unknown, creates the new collection- Throws:
SQLException
-
queryNewCollection
default <T,C extends Collection<? super T>, C queryNewCollectionEx extends Throwable> (Function<? super Integer, ? extends C> newCollection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, throws SQLException, Ex? extends Ex> objectFactory, String sql, Object... params) Read-only query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Parameters:
newCollection- given the row count, ornullwhen unknown, creates the new collection- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
updateNewCollection
default <T,C extends Collection<? super T>, C updateNewCollectionEx extends Throwable> (Function<? super Integer, ? extends C> newCollection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, throws SQLException, Ex? extends Ex> objectFactory, String sql, Object... params) Read-write query the database with aCollection<T>return type, objects are created with the provided factory.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Parameters:
newCollection- given the row count, ornullwhen unknown, creates the new collection- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
queryNewCollection
default <T,C extends Collection<? super T>, C queryNewCollectionEx extends Throwable> (int isolationLevel, boolean readOnly, Function<? super Integer, ? extends C> newCollection, Class<? extends Ex> exClass, ObjectFactoryE<? extends T, throws SQLException, Ex? extends Ex> objectFactory, String sql, Object... params) Query the database with aCollection<T>return type, objects are created with the provided factory.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Parameters:
newCollection- given the row count, ornullwhen unknown, creates the new collection- Throws:
SQLExceptionEx
-
queryCall
default <T> T queryCall(ResultSetCallable<? extends T> resultSetCallable, String sql, Object... params) throws SQLException Read-only query the database, calling theResultSetCallableonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeQuery
@Deprecated(forRemoval=true) default <T> T executeQuery(ResultSetHandler<T> resultSetHandler, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
updateCall
default <T> T updateCall(ResultSetCallable<? extends T> resultSetCallable, String sql, Object... params) throws SQLException Read-write query the database, calling theResultSetCallableonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeUpdate
@Deprecated(forRemoval=true) default <T> T executeUpdate(ResultSetHandler<T> resultSetHandler, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryCall
default <T> T queryCall(int isolationLevel, boolean readOnly, ResultSetCallable<? extends T> resultSetCallable, String sql, Object... params) throws SQLException Query the database, calling theResultSetCallableonce.- Throws:
SQLException
-
executeQuery
@Deprecated(forRemoval=true) default <T> T executeQuery(int isolationLevel, boolean readOnly, ResultSetHandler<T> resultSetHandler, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryCall
default <T,Ex extends Throwable> T queryCall(Class<? extends Ex> exClass, ResultSetCallableE<? extends T, ? extends Ex> resultSetCallable, String sql, Object... params) throws SQLException, ExRead-only query the database, calling theResultSetCallableEonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
executeQuery
@Deprecated(forRemoval=true) default <T,Ex extends Exception> T executeQuery(Class<Ex> exClass, ResultSetHandlerE<T, Ex> resultSetHandler, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
updateCall
default <T,Ex extends Throwable> T updateCall(Class<? extends Ex> exClass, ResultSetCallableE<? extends T, ? extends Ex> resultSetCallable, String sql, Object... params) throws SQLException, ExRead-write query the database, calling theResultSetCallableEonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
executeUpdate
@Deprecated(forRemoval=true) default <T,Ex extends Exception> T executeUpdate(Class<Ex> exClass, ResultSetHandlerE<T, Ex> resultSetHandler, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
queryCall
<T,Ex extends Throwable> T queryCall(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ResultSetCallableE<? extends T, ? extends Ex> resultSetCallable, String sql, Object... params) throws SQLException, ExQuery the database, calling theResultSetCallableEonce.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
executeQuery
@Deprecated(forRemoval=true) default <T,Ex extends Exception> T executeQuery(int isolationLevel, boolean readOnly, Class<Ex> exClass, ResultSetHandlerE<T, Ex> resultSetHandler, String sql, Object... params) throws SQLException, ExDeprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
queryRun
default void queryRun(ResultSetRunnable resultSetRunnable, String sql, Object... params) throws SQLException Read-only query the database, calling theResultSetRunnableonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
updateRun
default void updateRun(ResultSetRunnable resultSetRunnable, String sql, Object... params) throws SQLException Read-write query the database, calling theResultSetRunnableonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
queryRun
default void queryRun(int isolationLevel, boolean readOnly, ResultSetRunnable resultSetRunnable, String sql, Object... params) throws SQLException Query the database, calling theResultSetRunnableonce.- Throws:
SQLException
-
queryRun
default <Ex extends Throwable> void queryRun(Class<? extends Ex> exClass, ResultSetRunnableE<? extends Ex> resultSetRunnable, String sql, Object... params) throws SQLException, Ex Read-only query the database, calling theResultSetRunnableEonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
updateRun
default <Ex extends Throwable> void updateRun(Class<? extends Ex> exClass, ResultSetRunnableE<? extends Ex> resultSetRunnable, String sql, Object... params) throws SQLException, Ex Read-write query the database, calling theResultSetRunnableEonce.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx- See Also:
- isolationLevel =
-
queryRun
default <Ex extends Throwable> void queryRun(int isolationLevel, boolean readOnly, Class<? extends Ex> exClass, ResultSetRunnableE<? extends Ex> resultSetRunnable, String sql, Object... params) throws SQLException, Ex Query the database, calling theResultSetRunnableEonce.- Type Parameters:
Ex- An arbitrary exception type that may be thrown- Throws:
SQLExceptionEx
-
queryShort
default short queryShort(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullshortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryShortNullable
default Short queryShortNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableShortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryShortOptional
default Optional<Short> queryShortOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullShortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryShortOptionalNullable
default Optional<Short> queryShortOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableShortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeShortQuery
@Deprecated(forRemoval=true) default short executeShortQuery(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateShort
default short updateShort(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullshortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateShortNullable
default Short updateShortNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableShortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateShortOptional
default Optional<Short> updateShortOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullShortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateShortOptionalNullable
default Optional<Short> updateShortOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableShortreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeShortUpdate
@Deprecated(forRemoval=true) default short executeShortUpdate(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryShort
default Short queryShort(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aShortreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryShort
@Deprecated(forRemoval=true) default Short queryShort(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeShortQuery
@Deprecated(forRemoval=true) default Short executeShortQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeShortListQuery
@Deprecated(forRemoval=true) default List<Short> executeShortListQuery(String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Read-only query the database with aList<Short>return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeShortListUpdate
@Deprecated(forRemoval=true) default List<Short> executeShortListUpdate(String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Read-write query the database with aList<Short>return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeShortListQuery
@Deprecated(forRemoval=true) default List<Short> executeShortListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.Query the database with aList<Short>return type.- Throws:
SQLException
-
queryString
default String queryString(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryStringNullable
default String queryStringNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryStringOptional
default Optional<String> queryStringOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryStringOptionalNullable
default Optional<String> queryStringOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeStringQuery
@Deprecated(forRemoval=true) default String executeStringQuery(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateString
default String updateString(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateStringNullable
default String updateStringNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateStringOptional
default Optional<String> updateStringOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateStringOptionalNullable
default Optional<String> updateStringOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableStringreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeStringUpdate
@Deprecated(forRemoval=true) default String executeStringUpdate(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryString
default String queryString(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aStringreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryString
@Deprecated(forRemoval=true) default String queryString(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeStringQuery
@Deprecated(forRemoval=true) default String executeStringQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryStringList
Read-only query the database with aList<String>return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeStringListQuery
@Deprecated(forRemoval=true) default List<String> executeStringListQuery(String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
updateStringList
Read-write query the database with aList<String>return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
executeStringListUpdate
@Deprecated(forRemoval=true) default List<String> executeStringListUpdate(String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
queryStringList
default List<String> queryStringList(int isolationLevel, boolean readOnly, String sql, Object... params) throws SQLException Query the database with aList<String>return type.- Throws:
SQLException
-
executeStringListQuery
@Deprecated(forRemoval=true) default List<String> executeStringListQuery(int isolationLevel, boolean readOnly, String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-
streamString
Read-only query the database with aStream<String>return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true
- Throws:
SQLException- See Also:
- isolationLevel =
-
streamStringUpdate
Read-write query the database with aStream<String>return type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false
- Throws:
SQLException- See Also:
- isolationLevel =
-
streamString
default Stream<String> streamString(int isolationLevel, boolean readOnly, String sql, Object... params) throws SQLException Query the database with aStream<String>return type.- Throws:
SQLException
-
queryTimestamp
default Timestamp queryTimestamp(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-only query the database with a required non-nullTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryTimestampNullable
default Timestamp queryTimestampNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-only query the database with a required nullableTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryTimestampOptional
default Optional<Timestamp> queryTimestampOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-only query the database with an optional non-nullTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
queryTimestampOptionalNullable
default Optional<Timestamp> queryTimestampOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-only query the database with an optional nullableTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
true - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeTimestampQuery
@Deprecated(forRemoval=true) default Timestamp executeTimestampQuery(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
updateTimestamp
default Timestamp updateTimestamp(String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Read-write query the database with a required non-nullTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
false
- Returns:
- The value, never
null. - Throws:
NoRowException- When has no row.NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateTimestampNullable
default Timestamp updateTimestampNullable(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Read-write query the database with a required nullableTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
true - nullable =
true
- Returns:
- The value or
nullwhen row with SQL NULL value. - Throws:
NoRowException- When has no row.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateTimestampOptional
default Optional<Timestamp> updateTimestampOptional(String sql, Object... params) throws NullDataException, ExtraRowException, SQLException Read-write query the database with an optional non-nullTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
false
- Returns:
- The value or
Optional.empty()when no row. - Throws:
NullDataException- When has a row, but with SQL NULL value.ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
updateTimestampOptionalNullable
default Optional<Timestamp> updateTimestampOptionalNullable(String sql, Object... params) throws ExtraRowException, SQLException Read-write query the database with an optional nullableTimestampreturn type.- isolationLevel =
Connections.DEFAULT_TRANSACTION_ISOLATION - readOnly =
false - rowRequired =
false - nullable =
true
- Returns:
- The value or
Optional.empty()when either no row or row with SQL NULL value. - Throws:
ExtraRowException- When has more than one row.SQLException
- isolationLevel =
-
executeTimestampUpdate
@Deprecated(forRemoval=true) default Timestamp executeTimestampUpdate(String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
queryTimestamp
default Timestamp queryTimestamp(int isolationLevel, boolean readOnly, boolean rowRequired, boolean nullable, String sql, Object... params) throws NoRowException, NullDataException, ExtraRowException, SQLException Query the database with aTimestampreturn type.- Returns:
- The value,
nullwhen no row and!rowRequired, ornullwhen row with SQL NULL value andnullable. - Throws:
NoRowException- When has no row androwRequired.NullDataException- When has a row, but with SQL NULL value and!nullable.ExtraRowException- When has more than one row.SQLException
-
queryTimestamp
@Deprecated(forRemoval=true) default Timestamp queryTimestamp(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
executeTimestampQuery
@Deprecated(forRemoval=true) default Timestamp executeTimestampQuery(int isolationLevel, boolean readOnly, boolean rowRequired, String sql, Object... params) throws NoRowException, ExtraRowException, SQLException Deprecated, for removal: This API element is subject to removal in a future version. -
update
Performs an update on the database and returns the number of rows affected.- Throws:
SQLException
-
largeUpdate
Performs an update on the database and returns the number of rows affected.- Throws:
SQLException
-
executeUpdate
@Deprecated(forRemoval=true) default int executeUpdate(String sql, Object... params) throws SQLException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLException
-

queryBigDecimal(int, boolean, boolean, boolean, java.lang.String, java.lang.Object...)