Packages

object Parameter

For Scala users, the typical usage is by importing the implicit conversions and then letting the compiler do the conversions for you. Explicit runtime conversions are also available via Parameter.of.

Java users should generally be using Parameters.of to do explicit conversions.

A Scala example with implicits:

import com.twitter.finagle.mysql.Parameter
import com.twitter.finagle.mysql.Parameter._

val p: Parameter = "this will get implicitly converted to a Parameter"

A Scala example without implicits:

import com.twitter.finagle.mysql.Parameter

val p: Parameter = Parameter.of("explicitly converted to a Parameter")

A Java example:

import com.twitter.finagle.mysql.Parameter;
import com.twitter.finagle.mysql.Parameters;

Parameter p = Parameters.of("explicitly converted to a Parameter");
See also

Parameters for a Java-friendly API.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parameter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def of(value: Any): Parameter

    Converts the given value into a Parameter at runtime.

    Converts the given value into a Parameter at runtime.

    Scala users may use the implicit conversions if they prefer.

    import com.twitter.finagle.mysql.Parameter
    
    val p: Parameter = Parameter.of("a string")
    Note

    Any unknown types are treated as a SQL NULL.

    See also

    Parameters.of for Java users.

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. def unsafeWrap(value: Any): Parameter

    Synonym for of.

  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. implicit def wrap[_A](_value: _A)(implicit _evidence: CanBeParameter[_A]): Parameter

    Generally used via implicits.

    Generally used via implicits.

    import com.twitter.finagle.mysql.Parameter
    import com.twitter.finagle.mysql.Parameter._
    
    val p: Parameter = "this will get implicitly converted to a Parameter"

    Java users can use Parameters.of.

  23. implicit def wrapOption[_A](option: Option[_A])(implicit ev: CanBeParameter[_A]): Parameter

    Generally used via implicits.

    Generally used via implicits. Input of None is treated as a NULL.

    import com.twitter.finagle.mysql.Parameter
    import com.twitter.finagle.mysql.Parameter._
    
    val p: Parameter = Some("this will get implicitly converted to a Parameter")

    Java users can use Parameters.of.

  24. object NullParameter extends Parameter

    Java users can use Parameters.nullParameter.

Inherited from AnyRef

Inherited from Any

Ungrouped