final class ScalaCompositeHandler extends AbstractCompositeHandler[ScalaCompositeHandler]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ScalaCompositeHandler
- AbstractCompositeHandler
- StatementHandler
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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
-
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()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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()
-
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
isQuery(arg0: String): Boolean
- Definition Classes
- AbstractCompositeHandler → StatementHandler
-
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
queryDetectionPattern(arg0: <repeated...>[Pattern]): Array[Pattern]
- Attributes
- protected[acolyte.jdbc]
- Definition Classes
- AbstractCompositeHandler
- Annotations
- @transient()
-
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( ... )
-
def
whenSQLQuery(arg0: String, arg1: List[Parameter]): QueryResult
- Definition Classes
- AbstractCompositeHandler → StatementHandler
- Annotations
- @throws( classOf[java.sql.SQLException] )
-
def
whenSQLUpdate(arg0: String, arg1: List[Parameter]): UpdateResult
- Definition Classes
- AbstractCompositeHandler → StatementHandler
- Annotations
- @throws( classOf[java.sql.SQLException] )
-
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
-
def
withQueryDetection(arg0: <repeated...>[String]): ScalaCompositeHandler
- Definition Classes
- AbstractCompositeHandler
- Annotations
- @transient()
-
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 } }
-
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 } }
-
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