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.
- Alphabetic
- By Inheritance
- Parameter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
of(value: Any): Parameter
Converts the given
valueinto a Parameter at runtime.Converts the given
valueinto 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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unsafeWrap(value: Any): Parameter
Synonym for of.
-
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
- @throws( ... ) @native()
-
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.
-
implicit
def
wrapOption[_A](option: Option[_A])(implicit ev: CanBeParameter[_A]): Parameter
Generally used via implicits.
Generally used via implicits. Input of
Noneis treated as aNULL.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.
-
object
NullParameter extends Parameter
Java users can use Parameters.nullParameter.