com.github.mauricio.async.db.postgresql

DatabaseConnectionHandler

class DatabaseConnectionHandler extends SimpleChannelHandler with Connection

Linear Supertypes
Connection, SimpleChannelHandler, ChannelDownstreamHandler, ChannelUpstreamHandler, ChannelHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DatabaseConnectionHandler
  2. Connection
  3. SimpleChannelHandler
  4. ChannelDownstreamHandler
  5. ChannelUpstreamHandler
  6. ChannelHandler
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DatabaseConnectionHandler(configuration: Configuration = ..., encoderRegistry: ColumnEncoderRegistry = ..., decoderRegistry: ColumnDecoderRegistry = ...)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bindRequested(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  8. def channelBound(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  9. def channelClosed(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  10. def channelConnected(ctx: ChannelHandlerContext, e: ChannelStateEvent): Unit

    Definition Classes
    DatabaseConnectionHandler → SimpleChannelHandler
  11. def channelDisconnected(ctx: ChannelHandlerContext, e: ChannelStateEvent): Unit

    Definition Classes
    DatabaseConnectionHandler → SimpleChannelHandler
  12. def channelInterestChanged(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  13. def channelOpen(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  14. def channelUnbound(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  15. def childChannelClosed(arg0: ChannelHandlerContext, arg1: ChildChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  16. def childChannelOpen(arg0: ChannelHandlerContext, arg1: ChildChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def closeRequested(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  19. def connect: Future[Map[String, String]]

    Connects this object to the database.

    Connects this object to the database. Connection objects are not necessarily created with a connection to the database so you might have to call this method to be able to run queries against it.

    returns

    Definition Classes
    DatabaseConnectionHandlerConnection
  20. def connectRequested(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  21. def disconnect: Future[Connection]

    Disconnects this object.

    Disconnects this object. You should discard this object after calling this method. No more queries will be accepted.

    returns

    Definition Classes
    DatabaseConnectionHandlerConnection
  22. def disconnectRequested(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  23. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  25. def exceptionCaught(ctx: ChannelHandlerContext, e: ExceptionEvent): Unit

    Definition Classes
    DatabaseConnectionHandler → SimpleChannelHandler
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def handleDownstream(arg0: ChannelHandlerContext, arg1: ChannelEvent): Unit

    Definition Classes
    SimpleChannelHandler → ChannelDownstreamHandler
    Annotations
    @throws()
  29. def handleUpstream(arg0: ChannelHandlerContext, arg1: ChannelEvent): Unit

    Definition Classes
    SimpleChannelHandler → ChannelUpstreamHandler
    Annotations
    @throws()
  30. def hasRecentError: Boolean

  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. def isConnected: Boolean

    Checks whether we are still connected to the database.

    Checks whether we are still connected to the database.

    returns

    Definition Classes
    DatabaseConnectionHandlerConnection
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def isReadyForQuery: Boolean

  35. def messageReceived(ctx: ChannelHandlerContext, e: MessageEvent): Unit

    Definition Classes
    DatabaseConnectionHandler → SimpleChannelHandler
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def parameterStatuses: Map[String, String]

  40. def processData: Option[ProcessData]

  41. def sendPreparedStatement(query: String, values: Seq[Any] = List()): Future[QueryResult]

    Sends a prepared statement to the database.

    Sends a prepared statement to the database. Prepared statements are special statements that are pre-compiled by the database to run faster, they also allow you to avoid SQL injection attacks by not having to concatenate strings from possibly unsafe sources (like users) and sending them directy to the database.

    When sending a prepared statement, you can insert ? signs in your statement and then provide values at the method call 'values' parameter, as in:

    connection.sendPreparedStatement( "SELECT * FROM users WHERE users.login = ?", Array( "john-doe" ) )

    As you are using the ? as the placeholder for the value, you don't have to perform any kind of manipulation to the value, just provide it as is and the database will clean it up. You must provide as many parameters as you have provided placeholders, so, if your query is as "INSERT INTO users (login,email) VALUES (?,?)" you have to provide an array with at least two values, as in:

    Array("john-doe", "[email protected]")

    You can still use this method if your statement doesn't take any parameters, the default is an empty collection.

    query
    values
    returns

    Definition Classes
    DatabaseConnectionHandlerConnection
  42. def sendQuery(query: String): Future[QueryResult]

    Sends a statement to the database.

    Sends a statement to the database. The statement can be anything your database can execute. Not all statements will return a collection of rows, so check the returned object if there are rows available.

    query
    returns

    Definition Classes
    DatabaseConnectionHandlerConnection
  43. def setInterestOpsRequested(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    DatabaseConnectionHandler → AnyRef → Any
  46. def unbindRequested(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  47. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. def writeComplete(arg0: ChannelHandlerContext, arg1: WriteCompletionEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()
  51. def writeRequested(arg0: ChannelHandlerContext, arg1: MessageEvent): Unit

    Definition Classes
    SimpleChannelHandler
    Annotations
    @throws()

Inherited from Connection

Inherited from SimpleChannelHandler

Inherited from ChannelDownstreamHandler

Inherited from ChannelUpstreamHandler

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped