scalikejdbc

SQL

abstract class SQL[A, E <: WithExtractor] extends Extractor[A]

SQL abstraction.

A

return type

Linear Supertypes
Extractor[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SQL
  2. Extractor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SQL(statement: String)(parameters: Any*)(f: (WrappedResultSet) ⇒ A)(output: SQL.Output.Value = Output.traversable)

    statement

    SQL template

    parameters

    parameters

    f

    extractor function

    output

    output type

Type Members

  1. type SQLWithExtractor = SQL[A, HasExtractor]

  2. type ThisSQL = SQL[A, E]

Abstract Value Members

  1. abstract def first(): SQLToOption[A, E]

    Set execution type as first.

    Set execution type as first.

    returns

    SQL instance

  2. abstract def headOption(): SQLToOption[A, E]

    Same as #first.

    Same as #first.

    returns

    SQL instance

  3. abstract def list(): SQLToList[A, E]

    Set execution type as list.

    Set execution type as list.

    returns

    SQL instance

  4. abstract def single(): SQLToOption[A, E]

    Set execution type as single.

    Set execution type as single.

    returns

    SQL instance

  5. abstract def toList(): SQLToList[A, E]

    Same as #list

    Same as #list

    returns

    SQL instance

  6. abstract def toOption(): SQLToOption[A, E]

    Same as #single.

    Same as #single.

    returns

    SQL instance

  7. abstract def toTraversable(): SQLToTraversable[A, E]

    Same as #traversable.

    Same as #traversable.

    returns

    SQL instance

  8. abstract def traversable(): SQLToTraversable[A, E]

    Set execution type as traversable.

    Set execution type as traversable.

    returns

    SQL instance

Concrete 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 batch(parameters: Seq[Any]*): SQLBatch

    Binds parameters for batch

    Binds parameters for batch

    parameters

    parameters

    returns

    SQL for batch

  6. def batchByName(parameters: Seq[(Symbol, Any)]*): SQLBatch

    Binds parameters for batch

    Binds parameters for batch

    parameters

    parameters

    returns

    SQL for batch

  7. def bind(parameters: Any*): SQL[A, E]

    Binds parameters to SQL template in order.

    Binds parameters to SQL template in order.

    parameters

    parameters

    returns

    SQL instance

  8. def bindByName(parametersByName: (Symbol, Any)*): SQL[A, E]

    Binds named parameters to SQL template.

    Binds named parameters to SQL template.

    parametersByName

    named parameters

    returns

    SQL instance

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def execute(): SQLExecution

    Set execution type as execute

    Set execution type as execute

    returns

    SQL instance

  13. def executeUpdate(): SQLUpdate

    Set execution type as executeUpdate

    Set execution type as executeUpdate

    returns

    SQL instance

  14. def executeUpdateWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLUpdate

    Set execution type as executeUpdate with filters

    Set execution type as executeUpdate with filters

    before

    before filter

    after

    after filter

    returns

    SQL instance

  15. def executeWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLExecution

    Set execution type as execute with filters

    Set execution type as execute with filters

    before

    before filter

    after

    after filter

    returns

    SQL instance

  16. def extractor: (WrappedResultSet) ⇒ A

    Definition Classes
    SQL → Extractor
  17. def fetchSize: Option[Int]

    Returns fetchSize for this query.

    Returns fetchSize for this query.

    returns

    fetch size

  18. def fetchSize(fetchSize: Option[Int]): SQL[A, E]

  19. def fetchSize(fetchSize: Int): SQL[A, E]

    Set fetchSize for this query.

    Set fetchSize for this query.

    fetchSize

    fetch size

    returns

    this

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def foldLeft[A](z: A)(op: (A, WrappedResultSet) ⇒ A)(implicit session: DBSession): A

    folding into one value

    folding into one value

    z

    initial value

    op

    operation

  22. def foreach(op: (WrappedResultSet) ⇒ Unit)(implicit session: DBSession): Unit

    Aplly the operation to all elements of result set

    Aplly the operation to all elements of result set

    op

    operation

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

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

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def map[A](f: (WrappedResultSet) ⇒ A): SQL[A, HasExtractor]

    Maps values from each scalikejdbc.WrappedResultSet object.

    Maps values from each scalikejdbc.WrappedResultSet object.

    A

    return type

    f

    extractor function

    returns

    SQL instance

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

    Definition Classes
    AnyRef
  28. final def notify(): Unit

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

    Definition Classes
    AnyRef
  30. def one[Z](f: (WrappedResultSet) ⇒ A): OneToXSQL[A, E, Z]

    Returns One-to-X API builder.

  31. val parameters: Any*

    parameters

  32. val statement: String

    SQL template

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

    Definition Classes
    AnyRef
  34. def toMap(): SQL[Map[String, Any], HasExtractor]

    Maps values as a Map value from each scalikejdbc.WrappedResultSet object.

    Maps values as a Map value from each scalikejdbc.WrappedResultSet object.

    returns

    SQL instance

  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def update(): SQLUpdate

    Set execution type as executeUpdate

    Set execution type as executeUpdate

    returns

    SQL instance

  37. def updateAndReturnGeneratedKey(index: Int): SQLUpdateWithGeneratedKey

  38. def updateAndReturnGeneratedKey(name: String): SQLUpdateWithGeneratedKey

  39. def updateAndReturnGeneratedKey(): SQLUpdateWithGeneratedKey

    Set execution type as updateAndReturnGeneratedKey

    Set execution type as updateAndReturnGeneratedKey

    returns

    SQL instance

  40. def updateWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit): SQLUpdate

    Set execution type as executeUpdate with filters

    Set execution type as executeUpdate with filters

    before

    before filter

    after

    after filter

    returns

    SQL instance

  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Extractor[A]

Inherited from AnyRef

Inherited from Any

Ungrouped