Class

org.mybatis.scala.mapping

Update

Related Doc: package mapping

Permalink

abstract class Update[Param] extends Statement with SQLFunction1[Param, Int]

A mapped SQL UPDATE statement. Basically this defines a function: (Param => Int)

Param

Input parameter type of the apply method.

Version

$Revision$

Linear Supertypes
SQLFunction1[Param, Int], Statement, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Update
  2. SQLFunction1
  3. Statement
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Update()(implicit arg0: Manifest[Param])

    Permalink

Abstract Value Members

  1. abstract def xsql: XSQL

    Permalink

    Dynamic SQL definition, an xml node with root <xsql>

    Dynamic SQL definition, an xml node with root <xsql>

    Code sample

    As simple as an static SQL:

    def xsql = "SELECT * FROM mytable WHERE id = #{{id}}"

    Or using dynamic tags:

    def xsql =
      <xsql>
        SELECT *
        FROM mytable
        <where>
          <if test="name != null">
            name like #{{name}}
          </if>
        </where>
      <xsql>
    Definition Classes
    Statement

Concrete 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. def apply(param: Param)(implicit s: Session): Int

    Permalink

    Exceutes the SQL UPDATE Statement

    Exceutes the SQL UPDATE Statement

    param

    Input paramenter of the statement

    s

    Implicit Session

    returns

    number of affected rows

    Definition Classes
    UpdateSQLFunction1
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var databaseId: String

    Permalink

    Vendor ID

    Vendor ID

    Definition Classes
    Statement
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def execute[A](command: ⇒ A): A

    Permalink
    Definition Classes
    Statement
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. var flushCache: Boolean

    Permalink

    Setting this to true will cause the cache to be flushed whenever this statement is called.

    Setting this to true will cause the cache to be flushed whenever this statement is called. Default: false for select statements.

    Definition Classes
    Statement
  13. var fqi: FQI

    Permalink

    Fully qualified identifier of the statement.

    Fully qualified identifier of the statement. Autogenerated by the configuration space.

    Definition Classes
    Statement
  14. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  17. var languageDriver: DefaultScriptingDriver.type

    Permalink

    Scripting driver

    Scripting driver

    Definition Classes
    Statement
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def parameterTypeClass: Class[_]

    Permalink

    Returns the Class of the input parameter.

    Returns the Class of the input parameter.

    Definition Classes
    UpdateStatement
  22. var statementType: StatementType

    Permalink

    Any one of STATEMENT, PREPARED or CALLABLE.

    Any one of STATEMENT, PREPARED or CALLABLE. This causes MyBatis to use Statement, PreparedStatement or CallableStatement respectively. Default: PREPARED.

    Definition Classes
    Statement
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. var timeout: Int

    Permalink

    This sets the maximum time the driver will wait for the database to return from a request, before throwing an exception.

    This sets the maximum time the driver will wait for the database to return from a request, before throwing an exception. Default is unset (driver dependent).

    Definition Classes
    Statement
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SQLFunction1[Param, Int]

Inherited from Statement

Inherited from AnyRef

Inherited from Any

Ungrouped