class Transaction extends SqlClient
A transaction that allows to control the transaction and receive events.
- Alphabetic
- By Inheritance
- Transaction
- SqlClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Transaction(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
abortHandler(handler: Handler[Unit]): Transaction
Set an handler to be called when the transaction is aborted.
Set an handler to be called when the transaction is aborted. * @param handler the handler
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: AnyRef
- Definition Classes
- SqlClient
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Rollback the transaction and release the associated resources.
Rollback the transaction and release the associated resources.
- Definition Classes
- Transaction → SqlClient
-
def
commit(handler: Handler[AsyncResult[Unit]]): Unit
Like io.vertx.scala.sqlclient.Transaction#commit with an handler to be notified when the transaction commit has completed
-
def
commit(): Unit
Commit the current transaction.
-
def
commitFuture(): Future[Unit]
Like commit but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prepare(sql: String, handler: Handler[AsyncResult[PreparedQuery]]): Transaction
Create a prepared query.
Create a prepared query. * @param sql the sql
- handler
the handler notified with the prepared query asynchronously
-
def
prepareFuture(sql: String): Future[PreparedQuery]
Like prepare but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
preparedBatch(sql: String, batch: Buffer[Tuple], handler: Handler[AsyncResult[RowSet[Row]]]): Transaction
Prepare and execute a createBatch.
Prepare and execute a createBatch. * @param sql the prepared query SQL
- batch
the batch of tuples
- handler
the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
- Definition Classes
- Transaction → SqlClient
-
def
preparedBatchFuture(sql: String, batch: Buffer[Tuple]): Future[RowSet[Row]]
Like preparedBatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
Like preparedBatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
- Definition Classes
- Transaction → SqlClient
-
def
preparedQuery(sql: String, arguments: Tuple, handler: Handler[AsyncResult[RowSet[Row]]]): Transaction
Prepare and execute a query.
Prepare and execute a query. * @param sql the prepared query SQL
- arguments
the list of arguments
- handler
the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
- Definition Classes
- Transaction → SqlClient
-
def
preparedQuery(sql: String, handler: Handler[AsyncResult[RowSet[Row]]]): Transaction
Prepare and execute a query.
Prepare and execute a query. * @param sql the prepared query SQL
- handler
the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
- Definition Classes
- Transaction → SqlClient
-
def
preparedQueryFuture(sql: String, arguments: Tuple): Future[RowSet[Row]]
Like preparedQuery but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
Like preparedQuery but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
- Definition Classes
- Transaction → SqlClient
-
def
preparedQueryFuture(sql: String): Future[RowSet[Row]]
Like preparedQuery but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
Like preparedQuery but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
- Definition Classes
- Transaction → SqlClient
-
def
query(sql: String, handler: Handler[AsyncResult[RowSet[Row]]]): Transaction
Execute a simple query.
Execute a simple query. * @param sql the query SQL
- handler
the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
- Definition Classes
- Transaction → SqlClient
-
def
queryFuture(sql: String): Future[RowSet[Row]]
Like query but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
Like query but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
- Definition Classes
- Transaction → SqlClient
-
def
rollback(handler: Handler[AsyncResult[Unit]]): Unit
Like io.vertx.scala.sqlclient.Transaction#rollback with an handler to be notified when the transaction rollback has completed
-
def
rollback(): Unit
Rollback the current transaction.
-
def
rollbackFuture(): Future[Unit]
Like rollback but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )