scalikejdbc

AutoSession

object AutoSession extends DBSession with Product with Serializable

Represents that already existing session will be used or a new session will be started.

Linear Supertypes
Serializable, Serializable, Product, Equals, DBSession, LoanPattern, LogSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AutoSession
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. DBSession
  7. LoanPattern
  8. LogSupport
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Closable = AnyRef { def close(): Unit }

    Definition Classes
    LoanPattern

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(template: String, paramsList: Seq[Any]*): Seq[Int]

    Executes java.sql.PreparedStatement#executeBatch().

    Executes java.sql.PreparedStatement#executeBatch().

    template

    SQL template

    paramsList

    list of parameters

    returns

    count list

    Definition Classes
    DBSession
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Close the connection.

    Close the connection.

    Definition Classes
    DBSession
  8. lazy val connection: Connection

    Connection

    Connection

    Definition Classes
    DBSession
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def execute(template: String, params: Any*): Boolean

    Executes java.sql.PreparedStatement#execute().

    Executes java.sql.PreparedStatement#execute().

    template

    SQL template

    params

    parameters

    returns

    flag

    Definition Classes
    DBSession
  12. def executeUpdate(template: String, params: Any*): Int

    Executes java.sql.PreparedStatement#executeUpdate().

    Executes java.sql.PreparedStatement#executeUpdate().

    template

    SQL template

    params

    parameters

    returns

    result count

    Definition Classes
    DBSession
  13. def executeWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit, template: String, params: Any*): Boolean

    Executes java.sql.PreparedStatement#execute().

    Executes java.sql.PreparedStatement#execute().

    before

    before filter

    after

    after filter

    template

    SQL template

    params

    parameters

    returns

    flag

    Definition Classes
    DBSession
  14. def fetchSize: Option[Int]

    Returns fetchSize for this session.

    Returns fetchSize for this session.

    returns

    fetch size

    Definition Classes
    DBSession
  15. def fetchSize(fetchSize: Option[Int]): DBSession

    Definition Classes
    DBSession
  16. def fetchSize(fetchSize: Int): DBSession

    Set fetchSize for this session.

    Set fetchSize for this session.

    fetchSize

    fetch size

    returns

    this

    Definition Classes
    DBSession
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def first[A](template: String, params: Any*)(extract: (WrappedResultSet) ⇒ A): Option[A]

    Returns the first row optionally.

    Returns the first row optionally.

    A

    return type

    template

    SQL template

    params

    parameters

    extract

    extract function

    returns

    result optionally

    Definition Classes
    DBSession
  19. def foldLeft[A](template: String, params: Any*)(z: A)(op: (A, WrappedResultSet) ⇒ A): A

    folding into one value.

    folding into one value.

    template

    SQL template

    params

    parameters

    z

    initial value

    op

    function

    returns

    folded value

    Definition Classes
    DBSession
  20. def foreach(template: String, params: Any*)(f: (WrappedResultSet) ⇒ Unit): Unit

    Applies side-effect to each row iteratively.

    Applies side-effect to each row iteratively.

    template

    SQL template

    params

    parameters

    f

    function

    returns

    result as list

    Definition Classes
    DBSession
  21. def futureUsing[R <: Closable, A](resource: R)(f: (R) ⇒ Future[A])(implicit ec: ExecutionContext): Future[A]

    Guarantees a Closeable resource will be closed after being passed to a block that takes the resource as a parameter and returns a Future.

    Guarantees a Closeable resource will be closed after being passed to a block that takes the resource as a parameter and returns a Future.

    Definition Classes
    LoanPattern
  22. final def getClass(): Class[_]

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

    Definition Classes
    Any
  24. val isReadOnly: Boolean

    is read-only session

    is read-only session

    Definition Classes
    AutoSessionDBSession
  25. def list[A](template: String, params: Any*)(extract: (WrappedResultSet) ⇒ A): List[A]

    Returns query result as scala.List object.

    Returns query result as scala.List object.

    A

    return type

    template

    SQL template

    params

    parameters

    extract

    extract function

    returns

    result as list

    Definition Classes
    DBSession
  26. val log: Log

    Logger

    Logger

    Attributes
    protected
    Definition Classes
    LogSupport
  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 single[A](template: String, params: Any*)(extract: (WrappedResultSet) ⇒ A): Option[A]

    Returns single result optionally.

    Returns single result optionally. If the result is not single, scalikejdbc.TooManyRowsException will be thrown.

    A

    return type

    template

    SQL template

    params

    parameters

    extract

    extract function

    returns

    result optionally

    Definition Classes
    DBSession
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toBatchStatementExecutor(template: String): StatementExecutor

    Definition Classes
    DBSession
  33. def toStatementExecutor(template: String, params: Seq[Any], returnGeneratedKeys: Boolean = false): StatementExecutor

    Definition Classes
    DBSession
  34. def traversable[A](template: String, params: Any*)(extract: (WrappedResultSet) ⇒ A): Traversable[A]

    Returns query result as scala.collection.Traversable object.

    Returns query result as scala.collection.Traversable object.

    A

    return type

    template

    SQL template

    params

    parameters

    extract

    extract function

    returns

    result as traversable

    Definition Classes
    DBSession
  35. val tx: Option[Tx]

  36. def update(template: String, params: Any*): Int

    Executes java.sql.PreparedStatement#executeUpdate().

    Executes java.sql.PreparedStatement#executeUpdate().

    template

    SQL template

    params

    parameters

    returns

    result count

    Definition Classes
    DBSession
  37. def updateAndReturnGeneratedKey(template: String, params: Any*): Long

    Executes java.sql.PreparedStatement#executeUpdate() and returns the generated key.

    Executes java.sql.PreparedStatement#executeUpdate() and returns the generated key.

    template

    SQL template

    params

    parameters

    returns

    generated key as a long value

    Definition Classes
    DBSession
  38. def updateAndReturnSpecifiedGeneratedKey(template: String, params: Any*)(key: Any): Long

    Executes java.sql.PreparedStatement#executeUpdate() and returns the generated key.

    Executes java.sql.PreparedStatement#executeUpdate() and returns the generated key.

    template

    SQL template

    params

    parameters

    key

    name

    returns

    generated key as a long value

    Definition Classes
    DBSession
  39. def updateWithFilters(returnGeneratedKeys: Boolean, before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit, template: String, params: Any*): Int

    Executes java.sql.PreparedStatement#executeUpdate().

    Executes java.sql.PreparedStatement#executeUpdate().

    returnGeneratedKeys

    is generated keys required

    before

    before filter

    after

    after filter

    template

    SQL template

    params

    parameters

    returns

    result count

    Definition Classes
    DBSession
  40. def updateWithFilters(before: (PreparedStatement) ⇒ Unit, after: (PreparedStatement) ⇒ Unit, template: String, params: Any*): Int

    Executes java.sql.PreparedStatement#executeUpdate().

    Executes java.sql.PreparedStatement#executeUpdate().

    before

    before filter

    after

    after filter

    template

    SQL template

    params

    parameters

    returns

    result count

    Definition Classes
    DBSession
  41. def using[R <: Closable, A](resource: R)(f: (R) ⇒ A): A

    Definition Classes
    LoanPattern
  42. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DBSession

Inherited from LoanPattern

Inherited from LogSupport

Inherited from AnyRef

Inherited from Any

Ungrouped