Packages

class AsyncSQLClient extends SQLClient

Represents an asynchronous SQL client

Linear Supertypes
SQLClient, SQLOperations, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncSQLClient
  2. SQLClient
  3. SQLOperations
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncSQLClient(_asJava: AnyRef)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asJava: AnyRef
    Definition Classes
    SQLClientSQLOperations
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Close the client

    Close the client

    Definition Classes
    SQLClient
  8. def close(handler: Handler[AsyncResult[Unit]]): Unit

    Close the client and release all resources.

    Close the client and release all resources. Call the handler when close is complete.

    handler

    the handler that will be called when close is complete

    Definition Classes
    SQLClient
  9. def closeFuture(): Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    SQLClient
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  14. def getConnection(handler: Handler[AsyncResult[SQLConnection]]): SQLClient

    Returns a connection that can be used to perform SQL operations on.

    Returns a connection that can be used to perform SQL operations on. It's important to remember to close the connection when you are done, so it is returned to the pool.

    handler

    the handler which is called when the JdbcConnection object is ready for use.

    Definition Classes
    SQLClient
  15. def getConnectionFuture(): Future[SQLConnection]

    Like getConnection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like getConnection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    SQLClient
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  21. def query(sql: String, handler: Handler[AsyncResult[ResultSet]]): SQLClient

    Execute a single SQL statement, this method acquires a connection from the the pool and executes the SQL statement and returns it back after the execution.

    Execute a single SQL statement, this method acquires a connection from the the pool and executes the SQL statement and returns it back after the execution.

    sql

    the statement to execute

    handler

    the result handler

    returns

    self

    Definition Classes
    SQLClientSQLOperations
  22. def queryFuture(sql: String): Future[ResultSet]

    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
    SQLClientSQLOperations
  23. def querySingle(sql: String, handler: Handler[AsyncResult[JsonArray]]): SQLOperations

    Execute a one shot SQL statement that returns a single SQL row.

    Execute a one shot SQL statement that returns a single SQL row. This method will reduce the boilerplate code by getting a connection from the pool (this object) and return it back after the execution. Only the first result from the result set is returned.

    sql

    the statement to execute

    handler

    the result handler

    returns

    self

    Definition Classes
    AsyncSQLClientSQLClientSQLOperations
  24. def querySingleFuture(sql: String): Future[JsonArray]

    Like querySingle but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like querySingle but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    AsyncSQLClientSQLClientSQLOperations
  25. def querySingleWithParams(sql: String, arguments: JsonArray, handler: Handler[AsyncResult[JsonArray]]): SQLOperations

    Execute a one shot SQL statement with arguments that returns a single SQL row.

    Execute a one shot SQL statement with arguments that returns a single SQL row. This method will reduce the boilerplate code by getting a connection from the pool (this object) and return it back after the execution. Only the first result from the result set is returned.

    sql

    the statement to execute

    arguments

    the arguments

    handler

    the result handler

    returns

    self

    Definition Classes
    AsyncSQLClientSQLClientSQLOperations
  26. def querySingleWithParamsFuture(sql: String, arguments: JsonArray): Future[JsonArray]

    Like querySingleWithParams but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like querySingleWithParams but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    AsyncSQLClientSQLClientSQLOperations
  27. def queryWithParams(sql: String, arguments: JsonArray, handler: Handler[AsyncResult[ResultSet]]): SQLClient

    Execute a single SQL prepared statement, this method acquires a connection from the the pool and executes the SQL prepared statement and returns it back after the execution.

    Execute a single SQL prepared statement, this method acquires a connection from the the pool and executes the SQL prepared statement and returns it back after the execution.

    sql

    the statement to execute

    arguments

    the arguments to the statement

    handler

    the result handler

    returns

    self

    Definition Classes
    SQLClientSQLOperations
  28. def queryWithParamsFuture(sql: String, arguments: JsonArray): Future[ResultSet]

    Like queryWithParams but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like queryWithParams but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    SQLClientSQLOperations
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def update(sql: String, handler: Handler[AsyncResult[UpdateResult]]): SQLClient

    Executes the given SQL statement which may be an INSERT, UPDATE, or DELETE statement.

    Executes the given SQL statement which may be an INSERT, UPDATE, or DELETE statement.

    sql

    the SQL to execute. For example INSERT INTO table ...

    handler

    the handler which is called once the operation completes.

    Definition Classes
    SQLClientSQLOperations
  32. def updateFuture(sql: String): Future[UpdateResult]

    Like update but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like update but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    SQLClientSQLOperations
  33. def updateWithParams(sql: String, params: JsonArray, handler: Handler[AsyncResult[UpdateResult]]): SQLClient

    Executes the given prepared statement which may be an INSERT, UPDATE, or DELETE statement with the given parameters

    Executes the given prepared statement which may be an INSERT, UPDATE, or DELETE statement with the given parameters

    sql

    the SQL to execute. For example INSERT INTO table ...

    params

    these are the parameters to fill the statement.

    handler

    the handler which is called once the operation completes.

    Definition Classes
    SQLClientSQLOperations
  34. def updateWithParamsFuture(sql: String, params: JsonArray): Future[UpdateResult]

    Like updateWithParams but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like updateWithParams but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    SQLClientSQLOperations
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SQLClient

Inherited from SQLOperations

Inherited from AnyRef

Inherited from Any

Ungrouped