anorm

ToStatement

object ToStatement

Provided conversions to set statement parameter.

Source
ToStatement.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ToStatement
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. implicit object booleanToStatement extends ToStatement[Boolean]

    Sets boolean value on statement.

  8. implicit object byteToStatement extends ToStatement[Byte]

    Sets byte value on statement.

  9. implicit object charToStatement extends ToStatement[Char]

    Sets character as parameter value.

  10. implicit object characterToStatement extends ToStatement[Character]

    Sets Java Character as parameter value.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. implicit object dateToStatement extends ToStatement[Date]

    Sets date as statement parameter.

  13. implicit object doubleToStatement extends ToStatement[Double]

    Sets double value on statement.

  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. implicit object floatToStatement extends ToStatement[Float]

    Sets float value on statement.

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. implicit def idToStatement[A](implicit c: ToStatement[A]): ToStatement[Id[A]] with NotNullGuard

    Sets Id parameter on statement.

    Sets Id parameter on statement.

    SQL("INSERT INTO tbl(id, name) VALUES ({i}, {v}").
    on("i" -> anorm.Id("id"), "v" -> "name")
  21. implicit object intToStatement extends ToStatement[Int]

    Sets integer value on statement.

  22. implicit object integerToStatement extends ToStatement[Integer]

    Sets Java Integer object on statement.

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. implicit object javaBigDecimalToStatement extends ToStatement[BigDecimal]

    Sets Java big decimal on statement.

  25. implicit object javaBigIntegerToStatement extends ToStatement[BigInteger]

    Sets Java big integer on statement.

  26. implicit object javaBooleanToStatement extends ToStatement[Boolean]

    Sets Java Boolean object on statement.

  27. implicit object javaByteToStatement extends ToStatement[Byte]

    Sets Java Byte object on statement.

  28. implicit object javaDoubleToStatement extends ToStatement[Double]

    Sets Java Double object on statement.

  29. implicit object javaFloatToStatement extends ToStatement[Float]

    Sets Java Float object on statement.

  30. implicit object javaLongToStatement extends ToStatement[Long]

    Sets Java Long object on statement.

  31. implicit object javaShortToStatement extends ToStatement[Short]

    Sets Java Short object on statement.

  32. implicit object jodaDateTimeToStatement extends ToStatement[DateTime]

    Sets joda-time DateTime as statement parameter.

  33. implicit object jodaInstantToStatement extends ToStatement[Instant]

    Sets joda-time Instant as statement parameter.

  34. implicit object longToStatement extends ToStatement[Long]

    Sets long value on statement.

  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. implicit object noneToStatement extends ToStatement[None.type]

    Sets null for None value.

  37. implicit object notAssignedToStatement extends ToStatement[NotAssigned.type]

    Sets null for not assigned value.

  38. final def notify(): Unit

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

    Definition Classes
    AnyRef
  40. implicit object objectToStatement extends ToStatement[Object]

    Sets opaque value as statement parameter.

  41. implicit def optionToStatement[A](implicit c: ToStatement[A]): ToStatement[Option[A]] with NotNullGuard

    Sets optional A inferred as Option[A].

    Sets optional A inferred as Option[A].

    SQL("SELECT * FROM Test WHERE category = {c}")
    .on('c -> Option("cat"))
  42. implicit object scalaBigDecimalToStatement extends ToStatement[BigDecimal]

    Sets big decimal on statement.

  43. implicit object scalaBigIntegerToStatement extends ToStatement[BigInt]

    Sets big integer on statement.

  44. implicit def seqParamToStatement[A](implicit c: ToStatement[Seq[A]]): ToStatement[SeqParameter[A]] with NotNullGuard

    Sets multi-value parameter on statement, with custom formatting (using anorm.SeqParameter).

    Sets multi-value parameter on statement, with custom formatting (using anorm.SeqParameter).

    import anorm.SeqParameter
    SQL("SELECT * FROM Test t WHERE {categories}").
      on('categories -> SeqParameter(
        values = Seq("a", "b", "c"), separator = " OR ",
        pre = "EXISTS (SELECT NULL FROM j WHERE t.id=j.id AND name=",
        post = ")"))
  45. implicit def seqToStatement[A](implicit c: ToStatement[A]): ToStatement[Seq[A]] with NotNullGuard

    Sets multi-value parameter on statement.

    Sets multi-value parameter on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> Seq("a", "b", "c")
  46. implicit object shortToStatement extends ToStatement[Short]

    Sets short value on statement.

  47. implicit def someToStatement[A](implicit c: ToStatement[A]): ToStatement[Some[A]] with NotNullGuard

    Sets not empty optional A inferred as Some[A].

    Sets not empty optional A inferred as Some[A].

    SQL("SELECT * FROM Test WHERE category = {c}").on('c -> Some("cat"))
  48. implicit object stringToStatement extends ToStatement[String]

    Sets string as parameter value.

  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. implicit object timestampToStatement extends ToStatement[Timestamp]

    Sets timestamp as statement parameter.

  51. def toString(): String

    Definition Classes
    AnyRef → Any
  52. implicit object uuidToStatement extends ToStatement[UUID]

    Sets UUID as statement parameter.

  53. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped