Uses of Class
org.jdbi.v3.core.Handle
-
Packages that use Handle Package Description org.jdbi.v3.core The 'core' package hosts the top level interface into jdbi core.org.jdbi.v3.core.extension Theextensionclasses allow you to extendJdbi's functionality by declaring interface types that may attach toHandleinstances.org.jdbi.v3.core.spi Thespipackage includes entrypoints to extendingJdbiinstances with your own custom functionality.org.jdbi.v3.core.statement Thestatementpackage provides most of the Fluent API to drive statement execution.org.jdbi.v3.core.transaction Thetransactionpackage implements the strategyJdbiuses to open and close transactions.org.jdbi.v3.postgres Thepostgresplugin provides improved support forjava.time,hstore,uuid, andenumtypes when configured with a recent Postgres database server.org.jdbi.v3.sqlobject SQL Objectsorg.jdbi.v3.sqlobject.statement.internal -
-
Uses of Handle in org.jdbi.v3.core
Fields in org.jdbi.v3.core declared as Handle Modifier and Type Field Description private HandleConstantHandleSupplier. handleFields in org.jdbi.v3.core with type parameters of type Handle Modifier and Type Field Description private MemoizingSupplier<Handle>LazyHandleSupplier. handleHolderMethods in org.jdbi.v3.core that return Handle Modifier and Type Method Description (package private) HandleHandle. acceptExtensionContext(ExtensionContext extensionContext)HandleHandle. addHandleListener(HandleListener handleListener)Add a specificHandleListenerwhich is called for specific events for this Handle.(package private) HandleHandle. addTransactionCallback(TransactionCallback cb)HandleHandle. afterCommit(java.lang.Runnable afterCommit)Execute an action the next time this Handle commits, unless it is rolled back first.HandleHandle. afterRollback(java.lang.Runnable afterRollback)Execute an action the next time this Handle rolls back, unless it is committed first.HandleHandle. begin()Start a transaction.HandleHandle. commit()Commit a transaction.(package private) static HandleHandle. createHandle(Jdbi jdbi, Cleanable connectionCleaner, TransactionHandler transactionHandler, StatementBuilder statementBuilder, java.sql.Connection connection)private HandleLazyHandleSupplier. createHandle()HandleConstantHandleSupplier. getHandle()HandleLazyHandleSupplier. getHandle()HandleJdbi. open()Obtain a Handle to the data source wrapped by this Jdbi instance.static HandleJdbi. open(java.lang.String url)Obtain a handle with just a JDBC URLstatic HandleJdbi. open(java.lang.String url, java.lang.String username, java.lang.String password)Obtain a handle with just a JDBC URLstatic HandleJdbi. open(java.lang.String url, java.util.Properties props)Obtain a handle with just a JDBC URLstatic HandleJdbi. open(java.sql.Connection connection)Create a Handle wrapping a particular JDBC Connectionstatic HandleJdbi. open(javax.sql.DataSource dataSource)Convenience method used to obtain a handle from a specific data sourcestatic HandleJdbi. open(ConnectionFactory connectionFactory)Convenience method used to obtain a handle from aConnectionFactory.HandleHandle. release(java.lang.String savepointName)Deprecated.HandleHandle. releaseSavepoint(java.lang.String savepointName)Release a previously created savepoint.HandleHandle. removeHandleListener(HandleListener handleListener)Remove aHandleListenerfrom this handle.HandleHandle. rollback()Rollback a transaction.HandleHandle. rollbackToSavepoint(java.lang.String savepointName)Rollback a transaction to a named savepoint.HandleHandle. savepoint(java.lang.String name)Create a transaction savepoint with the name provided.HandleHandle. setReadOnly(boolean readOnly)Set the Handle read-only.HandleHandle. setStatementBuilder(StatementBuilder builder)Set the statement builder for this handle.Methods in org.jdbi.v3.core with parameters of type Handle Modifier and Type Method Description default voidHandleListener. handleClosed(Handle handle)A handle was closed.default voidHandleListener. handleCreated(Handle handle)A handle was created.(package private) static HandleSupplierConstantHandleSupplier. of(Handle handle)voidHandleConsumer. useHandle(Handle handle)Will be invoked with an open Handle.THandleCallback. withHandle(Handle handle)Will be invoked with an open Handle.Method parameters in org.jdbi.v3.core with type arguments of type Handle Modifier and Type Method Description protected abstract voidAbstractHandleSupplier. withHandle(java.util.function.Consumer<Handle> handleConsumer)protected voidConstantHandleSupplier. withHandle(java.util.function.Consumer<Handle> handleConsumer)protected voidLazyHandleSupplier. withHandle(java.util.function.Consumer<Handle> handleConsumer)Constructors in org.jdbi.v3.core with parameters of type Handle Constructor Description ConstantHandleSupplier(Handle handle) -
Uses of Handle in org.jdbi.v3.core.extension
Methods in org.jdbi.v3.core.extension that return Handle Modifier and Type Method Description HandleHandleSupplier. getHandle()Returns a handle, possibly creating it lazily. -
Uses of Handle in org.jdbi.v3.core.spi
Methods in org.jdbi.v3.core.spi that return Handle Modifier and Type Method Description default HandleJdbiPlugin. customizeHandle(Handle handle)Configure customizations for a new Handle instance.Methods in org.jdbi.v3.core.spi with parameters of type Handle Modifier and Type Method Description default HandleJdbiPlugin. customizeHandle(Handle handle)Configure customizations for a new Handle instance. -
Uses of Handle in org.jdbi.v3.core.statement
Fields in org.jdbi.v3.core.statement declared as Handle Modifier and Type Field Description private HandleBaseStatement. handleMethods in org.jdbi.v3.core.statement that return Handle Modifier and Type Method Description HandleBaseStatement. getHandle()Methods in org.jdbi.v3.core.statement with parameters of type Handle Modifier and Type Method Description private static voidBaseStatement. attachToHandleForCleanup(Handle handle, StatementContext context)Method parameters in org.jdbi.v3.core.statement with type arguments of type Handle Modifier and Type Method Description private ThisSqlStatement. cleanupHandle(java.util.function.Consumer<Handle> action)Constructors in org.jdbi.v3.core.statement with parameters of type Handle Constructor Description BaseStatement(Handle handle)Batch(Handle handle)Call(Handle handle, java.lang.CharSequence sql)Call(Handle handle, java.lang.String sql)Backwards compatible constructor that takes an explicit string argument.MetaData(Handle handle, MetaData.MetaDataValueProvider<?> metaDataFunction)PreparedBatch(Handle handle, java.lang.CharSequence sql)PreparedBatch(Handle handle, java.lang.String sql)Backwards compatible constructor that takes an explicit string argument.Query(Handle handle, java.lang.CharSequence sql)Query(Handle handle, java.lang.String sql)Backwards compatible constructor that takes an explicit string argument.Script(Handle handle, java.lang.CharSequence sql)Script(Handle handle, java.lang.String sql)Backwards compatible constructor that takes an explicit string argument.SqlStatement(Handle handle, java.lang.CharSequence sql)Update(Handle handle, java.lang.CharSequence sql)Update(Handle handle, java.lang.String sql)Backwards compatible constructor that takes an explicit string argument. -
Uses of Handle in org.jdbi.v3.core.transaction
Fields in org.jdbi.v3.core.transaction with type parameters of type Handle Modifier and Type Field Description private java.util.Map<Handle,LocalTransactionHandler.BoundLocalTransactionHandler>LocalTransactionHandler. boundMethods in org.jdbi.v3.core.transaction with parameters of type Handle Modifier and Type Method Description voidCMTTransactionHandler. begin(Handle handle)Called when a transaction is startedvoidDelegatingTransactionHandler. begin(Handle handle)voidLocalTransactionHandler. begin(Handle handle)voidLocalTransactionHandler.BoundLocalTransactionHandler. begin(Handle handle)voidTransactionHandler. begin(Handle handle)Begin a transaction.voidCMTTransactionHandler. commit(Handle handle)Called when a transaction is committedvoidDelegatingTransactionHandler. commit(Handle handle)voidLocalTransactionHandler.BoundLocalTransactionHandler. commit(Handle handle)voidLocalTransactionHandler. commit(Handle handle)voidRollbackOnlyTransactionHandler. commit(Handle handle)voidTransactionHandler. commit(Handle handle)Commit the transaction.<R,X extends java.lang.Exception>
RCMTTransactionHandler. inTransaction(Handle handle, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RCMTTransactionHandler. inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RDelegatingTransactionHandler. inTransaction(Handle handle, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RDelegatingTransactionHandler. inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RLocalTransactionHandler.BoundLocalTransactionHandler. inTransaction(Handle handle, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RLocalTransactionHandler.BoundLocalTransactionHandler. inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RLocalTransactionHandler. inTransaction(Handle handle, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RLocalTransactionHandler. inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RSerializableTransactionRunner. inTransaction(Handle handle, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RSerializableTransactionRunner. inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback)<R,X extends java.lang.Exception>
RTransactionHandler. inTransaction(Handle handle, HandleCallback<R,X> callback)Run a transaction.<R,X extends java.lang.Exception>
RTransactionHandler. inTransaction(Handle handle, TransactionIsolationLevel level, HandleCallback<R,X> callback)Run a transaction.booleanCMTTransactionHandler. isInTransaction(Handle handle)Called to test if a handle is in a transactionbooleanDelegatingTransactionHandler. isInTransaction(Handle handle)booleanLocalTransactionHandler.BoundLocalTransactionHandler. isInTransaction(Handle handle)booleanLocalTransactionHandler. isInTransaction(Handle handle)booleanTransactionHandler. isInTransaction(Handle handle)Returns whether a given Handle is in the transaction.(package private) TransactionHandlerLocalTransactionHandler. nonspecial(Handle handle)voidCMTTransactionHandler. releaseSavepoint(Handle handle, java.lang.String savepointName)Savepoints are not supported.voidDelegatingTransactionHandler. releaseSavepoint(Handle handle, java.lang.String name)voidLocalTransactionHandler.BoundLocalTransactionHandler. releaseSavepoint(Handle handle, java.lang.String name)voidLocalTransactionHandler. releaseSavepoint(Handle handle, java.lang.String savepointName)voidTransactionHandler. releaseSavepoint(Handle handle, java.lang.String savepointName)Release a previously created savepoint.private voidLocalTransactionHandler.BoundLocalTransactionHandler. restoreAutoCommitState(Handle handle)voidCMTTransactionHandler. rollback(Handle handle)Called when a transaction is rolled back Will throw a RuntimeException to force transactional rollbackvoidDelegatingTransactionHandler. rollback(Handle handle)voidLocalTransactionHandler.BoundLocalTransactionHandler. rollback(Handle handle)voidLocalTransactionHandler. rollback(Handle handle)voidTransactionHandler. rollback(Handle handle)Roll back the transaction.voidCMTTransactionHandler. rollbackToSavepoint(Handle handle, java.lang.String name)Savepoints are not supported.voidDelegatingTransactionHandler. rollbackToSavepoint(Handle handle, java.lang.String name)voidLocalTransactionHandler.BoundLocalTransactionHandler. rollbackToSavepoint(Handle handle, java.lang.String name)voidLocalTransactionHandler. rollbackToSavepoint(Handle handle, java.lang.String savepointName)voidTransactionHandler. rollbackToSavepoint(Handle handle, java.lang.String savepointName)Roll back to a named savepoint.voidCMTTransactionHandler. savepoint(Handle handle, java.lang.String name)Savepoints are not supported.voidDelegatingTransactionHandler. savepoint(Handle handle, java.lang.String name)voidLocalTransactionHandler.BoundLocalTransactionHandler. savepoint(Handle handle, java.lang.String name)voidLocalTransactionHandler. savepoint(Handle handle, java.lang.String savepointName)voidTransactionHandler. savepoint(Handle handle, java.lang.String savepointName)Create a new savepoint.TransactionHandlerLocalTransactionHandler.BindingLocalTransactionHandler. specialize(Handle handle)TransactionHandlerSerializableTransactionRunner. specialize(Handle handle)default TransactionHandlerTransactionHandler. specialize(Handle handle)Bind a TransactionHandler to a Handle, to allow it to track handle-local state.Constructors in org.jdbi.v3.core.transaction with parameters of type Handle Constructor Description BoundLocalTransactionHandler(Handle handle) -
Uses of Handle in org.jdbi.v3.postgres
Methods in org.jdbi.v3.postgres that return Handle Modifier and Type Method Description HandlePostgresPlugin. customizeHandle(Handle handle)Methods in org.jdbi.v3.postgres with parameters of type Handle Modifier and Type Method Description HandlePostgresPlugin. customizeHandle(Handle handle) -
Uses of Handle in org.jdbi.v3.sqlobject
Methods in org.jdbi.v3.sqlobject that return Handle Modifier and Type Method Description HandleSqlObject. getHandle()Returns the handle used in the current sql object context. -
Uses of Handle in org.jdbi.v3.sqlobject.statement.internal
Methods in org.jdbi.v3.sqlobject.statement.internal with parameters of type Handle Modifier and Type Method Description (package private) abstract StatementTypeCustomizingStatementHandler. createStatement(Handle handle, java.lang.String locatedSql)(package private) PreparedBatchSqlBatchHandler. createStatement(Handle handle, java.lang.String locatedSql)(package private) CallSqlCallHandler. createStatement(Handle handle, java.lang.String locatedSql)(package private) QuerySqlQueryHandler. createStatement(Handle handle, java.lang.String locatedSql)(package private) ScriptSqlScriptsHandler. createStatement(Handle handle, java.lang.String locatedSql)(package private) UpdateSqlUpdateHandler. createStatement(Handle handle, java.lang.String locatedSql)private ResultIterator<?>SqlBatchHandler. executeBatch(Handle handle, java.util.function.Supplier<PreparedBatch> preparedBatchSupplier)(package private) java.lang.StringCustomizingStatementHandler. locateSql(Handle h)
-