class MySQLConnection extends SqlConnection
A connection to MySQL server.
- Alphabetic
- By Inheritance
- MySQLConnection
- SqlConnection
- SqlClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MySQLConnection(_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
- Definition Classes
- SqlConnection
-
def
changeUser(options: MySQLAuthOptions, handler: Handler[AsyncResult[Unit]]): MySQLConnection
Send a CHANGE_USER command to change the user of the current connection, this operation will also reset connection state.
Send a CHANGE_USER command to change the user of the current connection, this operation will also reset connection state. * @param options authentication options see MySQLAuthOptions
- handler
the handler
- returns
a reference to this, so the API can be used fluently
-
def
changeUserFuture(options: MySQLAuthOptions): Future[Unit]
Like changeUser but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
- Definition Classes
- SqlConnection → SqlClient
-
def
closeHandler(handler: Handler[Unit]): MySQLConnection
- Definition Classes
- MySQLConnection → SqlConnection
-
def
debug(handler: Handler[AsyncResult[Unit]]): MySQLConnection
Send a DEBUG command to dump debug information to the server's stdout.
Send a DEBUG command to dump debug information to the server's stdout. * @param handler the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
-
def
debugFuture(): Future[Unit]
Like debug 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
exceptionHandler(handler: Handler[Throwable]): MySQLConnection
- Definition Classes
- MySQLConnection → SqlConnection
-
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
getInternalStatistics(handler: Handler[AsyncResult[String]]): MySQLConnection
Send a STATISTICS command to get a human readable string of the server internal status.
Send a STATISTICS command to get a human readable string of the server internal status. * @param handler the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
-
def
getInternalStatisticsFuture(): Future[String]
Like getInternalStatistics but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSSL(): Boolean
- Definition Classes
- SqlConnection
-
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
ping(handler: Handler[AsyncResult[Unit]]): MySQLConnection
Send a PING command to check if the server is alive.
Send a PING command to check if the server is alive. * @param handler the handler notified when the server responses to client
- returns
a reference to this, so the API can be used fluently
-
def
pingFuture(): Future[Unit]
Like ping but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
prepare(sql: String, handler: Handler[AsyncResult[PreparedStatement]]): MySQLConnection
- Definition Classes
- MySQLConnection → SqlConnection
-
def
prepareFuture(sql: String): Future[PreparedStatement]
- Definition Classes
- MySQLConnection → SqlConnection
-
def
preparedQuery(sql: String): PreparedQuery[RowSet[Row]]
- Definition Classes
- SqlClient
-
def
query(sql: String): Query[RowSet[Row]]
- Definition Classes
- SqlClient
-
def
resetConnection(handler: Handler[AsyncResult[Unit]]): MySQLConnection
Send a RESET_CONNECTION command to reset the session state.
Send a RESET_CONNECTION command to reset the session state. * @param handler the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
-
def
resetConnectionFuture(): Future[Unit]
Like resetConnection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setOption(option: MySQLSetOption, handler: Handler[AsyncResult[Unit]]): MySQLConnection
Send a SET_OPTION command to set options for the current connection.
Send a SET_OPTION command to set options for the current connection. * @param option the options to set
- handler
the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
-
def
setOptionFuture(option: MySQLSetOption): Future[Unit]
Like setOption but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
specifySchema(schemaName: String, handler: Handler[AsyncResult[Unit]]): MySQLConnection
Send a INIT_DB command to change the default schema of the connection.
Send a INIT_DB command to change the default schema of the connection. * @param schemaName name of the schema to change to
- handler
the handler notified with the execution result
- returns
a reference to this, so the API can be used fluently
-
def
specifySchemaFuture(schemaName: String): Future[Unit]
Like specifySchema 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( ... )