class SqlConnection extends SqlClient
A connection to database server.
- Alphabetic
- By Inheritance
- SqlConnection
- SqlClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SqlConnection(_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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: AnyRef
- Definition Classes
- SqlClient
-
def
begin(): Transaction
Begin a transaction and returns a io.vertx.scala.sqlclient.Transaction for controlling and tracking this transaction.
Begin a transaction and returns a io.vertx.scala.sqlclient.Transaction for controlling and tracking this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked. * @return the transaction instance
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Close the current connection after all the pending commands have been processed.
Close the current connection after all the pending commands have been processed.
- Definition Classes
- SqlConnection → SqlClient
-
def
closeHandler(handler: Handler[Unit]): SqlConnection
Set an handler called when the connection is closed.
Set an handler called when the connection is closed. * @param handler the handler
- returns
a reference to this, so the API can be used fluently
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exceptionHandler(handler: Handler[Throwable]): SqlConnection
Set an handler called with connection errors.
Set an handler called with connection errors. * @param handler the handler
- returns
a reference to this, so the API can be used fluently
-
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
-
def
isSSL(): Boolean
- returns
whether the connection uses SSL
-
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[PreparedStatement]]): SqlConnection
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[PreparedStatement]
Like prepare but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
preparedQuery(sql: String): PreparedQuery[RowSet[Row]]
Create a prepared query, one of the io.vertx.scala.sqlclient.Query#execute or io.vertx.scala.sqlclient.PreparedQuery#executeBatch methods must be called to execute the query.
Create a prepared query, one of the io.vertx.scala.sqlclient.Query#execute or io.vertx.scala.sqlclient.PreparedQuery#executeBatch methods must be called to execute the query. * @return the prepared query
- Definition Classes
- SqlClient
-
def
query(sql: String): Query[RowSet[Row]]
Create a query, the io.vertx.scala.sqlclient.Query#execute method must be called to execute the query.
Create a query, the io.vertx.scala.sqlclient.Query#execute method must be called to execute the query. * @return the query
- Definition Classes
- SqlClient
-
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( ... )