c

acolyte.jdbc

ScalaCompositeHandler

final class ScalaCompositeHandler extends AbstractCompositeHandler[ScalaCompositeHandler]

Linear Supertypes
AbstractCompositeHandler[ScalaCompositeHandler], StatementHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaCompositeHandler
  2. AbstractCompositeHandler
  3. StatementHandler
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaCompositeHandler(qd: Array[Pattern], qh: QueryHandler, uh: UpdateHandler)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to any2stringadd[ScalaCompositeHandler] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScalaCompositeHandler, B)
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to ArrowAssoc[ScalaCompositeHandler] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def ensuring(cond: (ScalaCompositeHandler) ⇒ Boolean, msg: ⇒ Any): ScalaCompositeHandler
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to Ensuring[ScalaCompositeHandler] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (ScalaCompositeHandler) ⇒ Boolean): ScalaCompositeHandler
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to Ensuring[ScalaCompositeHandler] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): ScalaCompositeHandler
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to Ensuring[ScalaCompositeHandler] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): ScalaCompositeHandler
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to Ensuring[ScalaCompositeHandler] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to StringFormat[ScalaCompositeHandler] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isQuery(arg0: String): Boolean
    Definition Classes
    AbstractCompositeHandler → StatementHandler
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def queryDetectionPattern(arg0: <repeated...>[Pattern]): Array[Pattern]
    Attributes
    protected[acolyte.jdbc]
    Definition Classes
    AbstractCompositeHandler
    Annotations
    @transient()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  29. def whenSQLQuery(arg0: String, arg1: List[Parameter]): QueryResult
    Definition Classes
    AbstractCompositeHandler → StatementHandler
    Annotations
    @throws( classOf[java.sql.SQLException] )
  30. def whenSQLUpdate(arg0: String, arg1: List[Parameter]): UpdateResult
    Definition Classes
    AbstractCompositeHandler → StatementHandler
    Annotations
    @throws( classOf[java.sql.SQLException] )
  31. def withQueryDetection(pattern: Array[Pattern]): ScalaCompositeHandler

    Returns handler that detects statement matching given pattern(s) as query.

    Returns handler that detects statement matching given pattern(s) as query.

    import acolyte.jdbc.AcolyteDSL.handleStatement
    
    // Created handle will detect as query statements
    // either starting with 'SELECT ' or containing 'EXEC proc'.
    handleStatement.withQueryDetection("^SELECT ", "EXEC proc")
    Definition Classes
    ScalaCompositeHandler → AbstractCompositeHandler
  32. def withQueryDetection(arg0: <repeated...>[String]): ScalaCompositeHandler
    Definition Classes
    AbstractCompositeHandler
    Annotations
    @transient()
  33. def withQueryHandler(h: (QueryExecution) ⇒ QueryResult): ScalaCompositeHandler

    Returns handler that delegates query execution to h function.

    Returns handler that delegates query execution to h function. Given function will be used only if executed statement is detected as a query by withQueryDetection.

    import acolyte.jdbc.QueryExecution
    import acolyte.jdbc.AcolyteDSL.handleStatement
    
    handleStatement withQueryHandler { e: QueryExecution => aQueryResult }
    
    // With pattern matching ...
    import acolyte.jdbc.ParameterVal
    
    handleStatement withQueryHandler {
      _ match {
        case QueryExecution("SELECT * FROM Test WHERE id = ?", ParameterVal(1) :: Nil) => aQueryResult
        case _ => otherResult
      }
    }
  34. def withUpdateHandler(h: (UpdateExecution) ⇒ UpdateResult): ScalaCompositeHandler

    Returns handler that delegates update execution to h function.

    Returns handler that delegates update execution to h function. Given function will be used only if executed statement is not detected as a query by withQueryDetection.

    import acolyte.jdbc.UpdateExecution
    import acolyte.jdbc.AcolyteDSL.handleStatement
    
    handleStatement withUpdateHandler { e: UpdateExecution => aQueryResult }
    
    // With pattern matching ...
    import acolyte.jdbc.ParameterVal
    
    handleStatement withUpdateHandler {
      _ match {
        case UpdateExecution("INSERT INTO Country (code, name) VALUES (?, ?)", ParameterVal(code) :: ParameterVal(name) :: Nil) => 1 /* update count */
        case _ => otherResult
      }
    }
  35. def [B](y: B): (ScalaCompositeHandler, B)
    Implicit
    This member is added by an implicit conversion from ScalaCompositeHandler to ArrowAssoc[ScalaCompositeHandler] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AbstractCompositeHandler[ScalaCompositeHandler]

Inherited from StatementHandler

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ScalaCompositeHandler to any2stringadd[ScalaCompositeHandler]

Inherited by implicit conversion StringFormat from ScalaCompositeHandler to StringFormat[ScalaCompositeHandler]

Inherited by implicit conversion Ensuring from ScalaCompositeHandler to Ensuring[ScalaCompositeHandler]

Inherited by implicit conversion ArrowAssoc from ScalaCompositeHandler to ArrowAssoc[ScalaCompositeHandler]

Ungrouped