Class/Object

scalikejdbc

SQL

Related Docs: object SQL | package scalikejdbc

Permalink

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

SQL abstraction.

A

return type

Source
SQL.scala
Linear Supertypes
Extractor[A], AnyRef, Any
Known Subclasses
AllOutputDecisionsUnsupported, OneToManies10SQL, OneToManies10SQLToCollection, OneToManies10SQLToList, OneToManies10SQLToOption, OneToManies10SQLToTraversable, OneToManies11SQL, OneToManies11SQLToCollection, OneToManies11SQLToList, OneToManies11SQLToOption, OneToManies11SQLToTraversable, OneToManies12SQL, OneToManies12SQLToCollection, OneToManies12SQLToList, OneToManies12SQLToOption, OneToManies12SQLToTraversable, OneToManies13SQL, OneToManies13SQLToCollection, OneToManies13SQLToList, OneToManies13SQLToOption, OneToManies13SQLToTraversable, OneToManies14SQL, OneToManies14SQLToCollection, OneToManies14SQLToList, OneToManies14SQLToOption, OneToManies14SQLToTraversable, OneToManies15SQL, OneToManies15SQLToCollection, OneToManies15SQLToList, OneToManies15SQLToOption, OneToManies15SQLToTraversable, OneToManies16SQL, OneToManies16SQLToCollection, OneToManies16SQLToList, OneToManies16SQLToOption, OneToManies16SQLToTraversable, OneToManies17SQL, OneToManies17SQLToCollection, OneToManies17SQLToList, OneToManies17SQLToOption, OneToManies17SQLToTraversable, OneToManies18SQL, OneToManies18SQLToCollection, OneToManies18SQLToList, OneToManies18SQLToOption, OneToManies18SQLToTraversable, OneToManies19SQL, OneToManies19SQLToCollection, OneToManies19SQLToList, OneToManies19SQLToOption, OneToManies19SQLToTraversable, OneToManies20SQL, OneToManies20SQLToCollection, OneToManies20SQLToList, OneToManies20SQLToOption, OneToManies20SQLToTraversable, OneToManies21SQL, OneToManies21SQLToCollection, OneToManies21SQLToList, OneToManies21SQLToOption, OneToManies21SQLToTraversable, OneToManies2SQL, OneToManies2SQLToCollection, OneToManies2SQLToList, OneToManies2SQLToOption, OneToManies2SQLToTraversable, OneToManies3SQL, OneToManies3SQLToCollection, OneToManies3SQLToList, OneToManies3SQLToOption, OneToManies3SQLToTraversable, OneToManies4SQL, OneToManies4SQLToCollection, OneToManies4SQLToList, OneToManies4SQLToOption, OneToManies4SQLToTraversable, OneToManies5SQL, OneToManies5SQLToCollection, OneToManies5SQLToList, OneToManies5SQLToOption, OneToManies5SQLToTraversable, OneToManies6SQL, OneToManies6SQLToCollection, OneToManies6SQLToList, OneToManies6SQLToOption, OneToManies6SQLToTraversable, OneToManies7SQL, OneToManies7SQLToCollection, OneToManies7SQLToList, OneToManies7SQLToOption, OneToManies7SQLToTraversable, OneToManies8SQL, OneToManies8SQLToCollection, OneToManies8SQLToList, OneToManies8SQLToOption, OneToManies8SQLToTraversable, OneToManies9SQL, OneToManies9SQLToCollection, OneToManies9SQLToList, OneToManies9SQLToOption, OneToManies9SQLToTraversable, OneToManySQL, OneToManySQLToCollection, OneToManySQLToList, OneToManySQLToOption, OneToManySQLToTraversable, OneToOneSQL, OneToOneSQLToCollection, OneToOneSQLToList, OneToOneSQLToOption, OneToOneSQLToTraversable, OneToXSQL, SQLToCollection, SQLToCollectionImpl, SQLToList, SQLToListImpl, SQLToOption, SQLToOptionImpl, SQLToResult, SQLToTraversable, SQLToTraversableImpl
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SQL
  2. Extractor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SQL(statement: String, rawParameters: Seq[Any])(f: (WrappedResultSet) ⇒ A)

    Permalink

    statement

    SQL template

    rawParameters

    parameters

    f

    extractor function

Type Members

  1. type SQLWithExtractor = SQL[A, HasExtractor]

    Permalink
  2. type ThisSQL = SQL[A, E]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def batch(parameters: Seq[Any]*): SQLBatch

    Permalink

    Binds parameters for batch

    Binds parameters for batch

    parameters

    parameters

    returns

    SQL for batch

  6. def batchAndReturnGeneratedKey(generatedKeyName: String, parameters: Seq[Any]*): SQLBatchWithGeneratedKey

    Permalink

    Binds parameters for batch

    Binds parameters for batch

    generatedKeyName

    generated key name

    parameters

    parameters

    returns

    SQL for batch

  7. def batchAndReturnGeneratedKey(parameters: Seq[Any]*): SQLBatchWithGeneratedKey

    Permalink

    Binds parameters for batch

    Binds parameters for batch

    parameters

    parameters

    returns

    SQL for batch

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

    Permalink

    Binds parameters for batch

    Binds parameters for batch

    parameters

    parameters

    returns

    SQL for batch

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

    Permalink

    Binds parameters to SQL template in order.

    Binds parameters to SQL template in order.

    parameters

    parameters

    returns

    SQL instance

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

    Permalink

    Binds named parameters to SQL template.

    Binds named parameters to SQL template.

    parametersByName

    named parameters

    returns

    SQL instance

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collection: SQLToCollection[A, E]

    Permalink

    Set execution type as collection.

    Set execution type as collection.

    returns

    SQL instance

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

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

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

    Permalink

    Set execution type as execute

    Set execution type as execute

    returns

    SQL instance

  16. def executeUpdate(): SQLUpdate

    Permalink

    Set execution type as executeUpdate

    Set execution type as executeUpdate

    returns

    SQL instance

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

    Permalink

    Set execution type as executeUpdate with filters

    Set execution type as executeUpdate with filters

    before

    before filter

    after

    after filter

    returns

    SQL instance

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

    Permalink

    Set execution type as execute with filters

    Set execution type as execute with filters

    before

    before filter

    after

    after filter

    returns

    SQL instance

  19. def extractor: (WrappedResultSet) ⇒ A

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

    Permalink

    Returns fetchSize for this query.

    Returns fetchSize for this query.

    returns

    fetch size

  21. def fetchSize(fetchSize: Option[Int]): SQL.this.type

    Permalink
  22. def fetchSize(fetchSize: Int): SQL.this.type

    Permalink

    Set fetchSize for this query.

    Set fetchSize for this query.

    fetchSize

    fetch size

    returns

    this

  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def first(): SQLToOption[A, E]

    Permalink

    Set execution type as first.

    Set execution type as first.

    returns

    SQL instance

  25. def foldLeft[A](z: A)(op: (A, WrappedResultSet) ⇒ A)(implicit session: DBSession): A

    Permalink

    folding into one value

    folding into one value

    z

    initial value

    op

    operation

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

    Permalink

    Apply the operation to all elements of result set

    Apply the operation to all elements of result set

    op

    operation

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def headOption(): SQLToOption[A, E]

    Permalink

    Same as #first.

    Same as #first.

    returns

    SQL instance

  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def list(): SQLToList[A, E]

    Permalink

    Set execution type as list.

    Set execution type as list.

    returns

    SQL instance

  32. def map[A](f: (WrappedResultSet) ⇒ A): SQL[A, HasExtractor]

    Permalink

    Maps values from each scalikejdbc.WrappedResultSet object.

    Maps values from each scalikejdbc.WrappedResultSet object.

    A

    return type

    f

    extractor function

    returns

    SQL instance

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

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

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

    Permalink

    Returns One-to-X API builder.

  37. final lazy val parameters: Seq[Any]

    Permalink
  38. def queryTimeout: Option[Int]

    Permalink

    Returns queryTimeout for this query.

    Returns queryTimeout for this query.

    returns

    query timeout seconds

  39. def queryTimeout(seconds: Option[Int]): SQL.this.type

    Permalink
  40. def queryTimeout(seconds: Int): SQL.this.type

    Permalink

    Set queryTimeout for this query.

    Set queryTimeout for this query.

    seconds

    query timeout seconds

    returns

    this

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

    Permalink

    Set execution type as single.

    Set execution type as single.

    returns

    SQL instance

  42. val statement: String

    Permalink

    SQL template

  43. def stripMargin: SQL[A, E]

    Permalink
  44. def stripMargin(marginChar: Char): SQL[A, E]

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

    Permalink
    Definition Classes
    AnyRef
  46. def tags: Seq[String]

    Permalink

    Returns tags for this SQL object.

    Returns tags for this SQL object.

    returns

    tags

  47. def tags(tags: String*): SQL.this.type

    Permalink

    Appends tags to this SQL object.

    Appends tags to this SQL object.

    tags

    tags

    returns

    this

  48. def toCollection: SQLToCollection[A, E]

    Permalink

    Same as #collection

    Same as #collection

    returns

    SQL instance

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

    Permalink

    Same as #list

    Same as #list

    returns

    SQL instance

  50. def toMap(): SQL[Map[String, Any], HasExtractor]

    Permalink

    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

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

    Permalink

    Same as #single.

    Same as #single.

    returns

    SQL instance

  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. def toTraversable(): SQLToTraversable[A, E]

    Permalink

    Same as #traversable.

    Same as #traversable.

    returns

    SQL instance

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

    Permalink

    Set execution type as traversable.

    Set execution type as traversable.

    returns

    SQL instance

  55. def update(): SQLUpdate

    Permalink

    Set execution type as executeUpdate

    Set execution type as executeUpdate

    returns

    SQL instance

  56. def updateAndReturnGeneratedKey(index: Int): SQLUpdateWithGeneratedKey

    Permalink
  57. def updateAndReturnGeneratedKey(name: String): SQLUpdateWithGeneratedKey

    Permalink
  58. def updateAndReturnGeneratedKey(): SQLUpdateWithGeneratedKey

    Permalink

    Set execution type as updateAndReturnGeneratedKey

    Set execution type as updateAndReturnGeneratedKey

    returns

    SQL instance

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

    Permalink

    Set execution type as executeUpdate with filters

    Set execution type as executeUpdate with filters

    before

    before filter

    after

    after filter

    returns

    SQL instance

  60. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. def withExtractor[B](f: (WrappedResultSet) ⇒ B): SQL[B, HasExtractor]

    Permalink
    Attributes
    protected
  64. def withParameters(params: Seq[Any]): SQL[A, E]

    Permalink
    Attributes
    protected
  65. def withStatementAndParameters(state: String, params: Seq[Any]): SQL[A, E]

    Permalink
    Attributes
    protected

Inherited from Extractor[A]

Inherited from AnyRef

Inherited from Any

Ungrouped