Trait

skinny.orm.feature

OptimisticLockWithTimestampFeature

Related Doc: package feature

Permalink

trait OptimisticLockWithTimestampFeature[Entity] extends OptimisticLockWithTimestampFeatureWithId[Long, Entity]

Optimistic lock with timestamp.

Entity

entity

Linear Supertypes
OptimisticLockWithTimestampFeatureWithId[Long, Entity], CRUDFeatureWithId[Long, Entity], DynamicTableNameFeatureWithId[Long, Entity], FinderFeatureWithId[Long, Entity], NoIdFinderFeature[Entity], CalculationFeature[Entity], QueryingFeatureWithId[Long, Entity], IncludesFeatureWithId[Long, Entity], NoIdCUDFeature[Entity], StrongParametersFeature, JoinsFeature[Entity], AssociationsWithIdFeature[Long, Entity], IdFeature[Long], AssociationsFeature[Entity], LoggerProvider, AutoSessionFeature, ConnectionPoolFeature, SkinnyModel[Long, Entity], SkinnyMapperBase[Entity], scalikejdbc.SQLSyntaxSupport[Entity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptimisticLockWithTimestampFeature
  2. OptimisticLockWithTimestampFeatureWithId
  3. CRUDFeatureWithId
  4. DynamicTableNameFeatureWithId
  5. FinderFeatureWithId
  6. NoIdFinderFeature
  7. CalculationFeature
  8. QueryingFeatureWithId
  9. IncludesFeatureWithId
  10. NoIdCUDFeature
  11. StrongParametersFeature
  12. JoinsFeature
  13. AssociationsWithIdFeature
  14. IdFeature
  15. AssociationsFeature
  16. LoggerProvider
  17. AutoSessionFeature
  18. ConnectionPoolFeature
  19. SkinnyModel
  20. SkinnyMapperBase
  21. SQLSyntaxSupport
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AfterCreateHandler = (DBSession, Seq[(scalikejdbc.SQLSyntax, Any)], Option[Long]) ⇒ Unit

    Permalink

    #updateBy post-execution handler.

    #updateBy post-execution handler.

    Definition Classes
    CRUDFeatureWithId
  2. type AfterDeleteByHandler = (DBSession, scalikejdbc.SQLSyntax, Int) ⇒ Unit

    Permalink

    #updateBy post-execution handler.

    #updateBy post-execution handler.

    Definition Classes
    NoIdCUDFeature
  3. type AfterUpdateByHandler = (DBSession, scalikejdbc.SQLSyntax, Seq[(scalikejdbc.SQLSyntax, Any)], Int) ⇒ Unit

    Permalink

    #updateBy post-execution handler.

    #updateBy post-execution handler.

    Definition Classes
    NoIdCUDFeature
  4. type BeforeCreateHandler = (DBSession, Seq[(scalikejdbc.SQLSyntax, Any)]) ⇒ Unit

    Permalink

    #updateBy pre-execution handler.

    #updateBy pre-execution handler.

    Definition Classes
    CRUDFeatureWithId
  5. type BeforeDeleteByHandler = (DBSession, scalikejdbc.SQLSyntax) ⇒ Unit

    Permalink

    #updateBy pre-execution handler.

    #updateBy pre-execution handler.

    Definition Classes
    NoIdCUDFeature
  6. type BeforeUpdateByHandler = (DBSession, scalikejdbc.SQLSyntax, Seq[(scalikejdbc.SQLSyntax, Any)]) ⇒ Unit

    Permalink

    #updateBy pre-execution handler.

    #updateBy pre-execution handler.

    Definition Classes
    NoIdCUDFeature
  7. case class EntitiesSelectOperationBuilder(mapper: QueryingFeatureWithId[Id, Entity], conditions: Seq[scalikejdbc.SQLSyntax] = Nil, orderings: Seq[scalikejdbc.SQLSyntax] = Nil, limit: Option[Int] = None, offset: Option[Int] = None) extends SelectOperationBuilder with Product with Serializable

    Permalink

    Entities finder builder.

    Entities finder builder.

    mapper

    mapper

    conditions

    registered conditions

    limit

    limit

    offset

    offset

    Definition Classes
    QueryingFeatureWithId
  8. abstract class SelectOperationBuilder extends AnyRef

    Permalink

    Select query builder.

    Select query builder.

    Definition Classes
    QueryingFeatureWithId
  9. class UpdateOperationBuilder extends AnyRef

    Permalink

    Update query builder/executor.

    Update query builder/executor.

    Definition Classes
    NoIdCUDFeature
  10. class UpdateOperationBuilderWithVersion extends UpdateOperationBuilder

    Permalink

    Update query builder/executor.

    Update query builder/executor.

    Definition Classes
    OptimisticLockWithTimestampFeatureWithId

Abstract Value Members

  1. abstract def defaultAlias: Alias[Entity]

    Permalink

    Returns default table alias.

    Returns default table alias. This method is abstract and should be implemented with unique name. override def defaultAlias = createAlias("sm")

    Definition Classes
    SkinnyMapperBase
  2. abstract def extract(rs: WrappedResultSet, n: scalikejdbc.ResultName[Entity]): Entity

    Permalink

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    Definition Classes
    SkinnyMapperBase
  3. abstract def idToRawValue(id: Long): Any

    Permalink

    Returns actual value from identity value.

    Returns actual value from identity value.

    id

    identity

    returns

    actual value

    Definition Classes
    IdFeature
  4. abstract def rawValueToId(rawValue: Any): Long

    Permalink

    Returns identity value from raw value.

    Returns identity value from raw value.

    rawValue

    raw value

    returns

    identity value

    Definition Classes
    IdFeature

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 addAttributeForCreation(namedValue: ⇒ (scalikejdbc.SQLSyntax, Any)): OptimisticLockWithTimestampFeature.this.type

    Permalink

    Adds new attribute to be inserted when creation.

    Adds new attribute to be inserted when creation.

    namedValue

    named value

    returns

    self

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  5. def afterCreate(handler: AfterCreateHandler): Unit

    Permalink

    #createWithNamedValues post-execution.

    #createWithNamedValues post-execution.

    handler

    handler

    Definition Classes
    CRUDFeatureWithId
  6. val afterCreateHandlers: ListBuffer[AfterCreateHandler]

    Permalink

    Registered afterUpdateByHandlers.

    Registered afterUpdateByHandlers.

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
  7. def afterDeleteBy(handler: (DBSession, scalikejdbc.SQLSyntax, Int) ⇒ Unit): Unit

    Permalink

    #deleteBy post-execution.

    #deleteBy post-execution.

    handler

    handler

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  8. val afterDeleteByHandlers: ListBuffer[AfterDeleteByHandler]

    Permalink

    Registered afterUpdateByHandlers.

    Registered afterUpdateByHandlers.

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  9. def afterUpdateBy(handler: AfterUpdateByHandler): Unit

    Permalink

    Registers #updateBy post-execution handler.

    Registers #updateBy post-execution handler.

    handler

    event handler

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  10. val afterUpdateByHandlers: ListBuffer[AfterUpdateByHandler]

    Permalink

    Registered afterUpdateByHandlers.

    Registered afterUpdateByHandlers.

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  11. def appendIncludedAttributes(entity: Option[Entity])(implicit s: DBSession, repository: IncludesQueryRepository[Entity]): Option[Entity]

    Permalink

    Applies includes operations to query result.

    Applies includes operations to query result.

    entity

    entity

    s

    session

    repository

    repository

    returns

    entity with included attributes

    Definition Classes
    IncludesFeatureWithId
  12. def appendIncludedAttributes(entities: List[Entity])(implicit s: DBSession, repository: IncludesQueryRepository[Entity]): List[Entity]

    Permalink

    Applies includes operations to query results.

    Applies includes operations to query results.

    entities

    entities

    s

    session

    repository

    repository

    returns

    entities with included attributes

    Definition Classes
    IncludesFeatureWithId
  13. def apply(rs: WrappedResultSet): Entity

    Permalink

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    Definition Classes
    SkinnyMapperBase
  14. def apply(a: Alias[Entity])(rs: WrappedResultSet): Entity

    Permalink

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    Definition Classes
    SkinnyMapperBase
  15. def as(provider: scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[Entity], Entity]): scalikejdbc.TableAsAliasSQLSyntax

    Permalink
    Definition Classes
    SQLSyntaxSupport
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. val associations: LinkedHashSet[Association[_]]

    Permalink

    Associations

    Associations

    Definition Classes
    AssociationsFeature
  18. def autoSession: DBSession

    Permalink

    AutoSession definition.

    AutoSession definition.

    Definition Classes
    AutoSessionFeature
  19. def average(fieldName: Symbol, decimals: Option[Int] = None)(implicit s: DBSession = autoSession): BigDecimal

    Permalink

    Calculates average of a column.

    Calculates average of a column.

    Definition Classes
    CalculationFeature
  20. def avg(fieldName: Symbol, decimals: Option[Int] = None)(implicit s: DBSession = autoSession): BigDecimal

    Permalink
    Definition Classes
    CalculationFeature
  21. def beforeCreate(handler: BeforeCreateHandler): Unit

    Permalink

    #createWithNamedValues pre-execution.

    #createWithNamedValues pre-execution.

    handler

    handler

    Definition Classes
    CRUDFeatureWithId
  22. val beforeCreateHandlers: ListBuffer[BeforeCreateHandler]

    Permalink

    Registered beforeUpdateByHandlers.

    Registered beforeUpdateByHandlers.

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
  23. def beforeDeleteBy(handler: (DBSession, scalikejdbc.SQLSyntax) ⇒ Unit): Unit

    Permalink

    #deleteBy pre-execution.

    #deleteBy pre-execution.

    handler

    handler

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  24. val beforeDeleteByHandlers: ListBuffer[BeforeDeleteByHandler]

    Permalink

    Registered beforeUpdateByHandlers.

    Registered beforeUpdateByHandlers.

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  25. def beforeUpdateBy(handler: BeforeUpdateByHandler): Unit

    Permalink

    Registers #updateBy pre-execution handler.

    Registers #updateBy pre-execution handler.

    handler

    event handler

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  26. val beforeUpdateByHandlers: ListBuffer[BeforeUpdateByHandler]

    Permalink

    Registered beforeUpdateByHandlers.

    Registered beforeUpdateByHandlers.

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  27. def belongsTo[A](right: AssociationsWithIdFeature[_, A], merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  28. def belongsToWithAlias[A](right: (AssociationsWithIdFeature[_, A], Alias[A]), merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  29. def belongsToWithAliasAndFk[A](right: (AssociationsWithIdFeature[_, A], Alias[A]), fk: String, merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  30. def belongsToWithAliasAndFkAndJoinCondition[A](right: (AssociationsFeature[A], Alias[A]), fk: String, on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  31. def belongsToWithFk[A](right: AssociationsWithIdFeature[_, A], fk: String, merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  32. def belongsToWithFkAndJoinCondition[A](right: AssociationsFeature[A], fk: String, on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  33. def belongsToWithJoinCondition[A](right: AssociationsWithIdFeature[_, A], on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  34. def byId(id: Long): scalikejdbc.SQLSyntax

    Permalink

    Returns a query part which represents primary key search condition.

    Returns a query part which represents primary key search condition.

    id

    primary key

    returns

    query part

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
  35. def byIdAndTimestamp(id: Long, timestamp: Option[DateTime]): scalikejdbc.SQLSyntax

    Permalink

    Returns where condition part which search by primary key and lock timestamp.

    Returns where condition part which search by primary key and lock timestamp.

    id

    primary key

    timestamp

    lock timestamp

    returns

    query part

    Attributes
    protected
    Definition Classes
    OptimisticLockWithTimestampFeatureWithId
  36. def calculate(sql: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): BigDecimal

    Permalink

    Calculates rows.

    Calculates rows.

    Definition Classes
    CalculationFeature
  37. def clearLoadedColumns(): Unit

    Permalink
    Definition Classes
    SQLSyntaxSupport
  38. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def column: scalikejdbc.ColumnName[Entity]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  40. def columnNames: Seq[String]

    Permalink

    Returns column names.

    Returns column names.

    Definition Classes
    SkinnyMapperBase → SQLSyntaxSupport
  41. def columns: Seq[String]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  42. def connectionPool: ConnectionPool

    Permalink

    Returns connection pool.

    Returns connection pool.

    returns

    pool

    Definition Classes
    ConnectionPoolFeature
  43. def connectionPoolName: Any

    Permalink
    Definition Classes
    SQLSyntaxSupport
  44. def convertAutoGeneratedIdToId[A](id: Long): Option[Long]

    Permalink

    Returns actual value from identity value.

    Returns actual value from identity value.

    A

    actual value type

    id

    identity

    returns

    actual value

    Definition Classes
    IdFeature
  45. def count(fieldName: Symbol = Symbol(""), distinct: Boolean = false)(implicit s: DBSession = autoSession): Long

    Permalink

    Count only.

    Count only.

    Definition Classes
    CalculationFeature
  46. def countAllModels(): Long

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  47. def countBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Long

    Permalink

    Counts all rows by condition.

    Counts all rows by condition.

    Definition Classes
    NoIdFinderFeature
  48. def createAlias(name: String): Alias[Entity]

    Permalink

    Creates a new table alias for this mapper.

    Creates a new table alias for this mapper.

    Definition Classes
    SkinnyMapperBase
  49. def createJoinDefinition(joinType: JoinType, left: (AssociationsFeature[_], Alias[_]), right: (AssociationsFeature[_], Alias[_]), on: scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink

    Creates a new join definition.

    Creates a new join definition.

    joinType

    join type

    left

    left mapper and table alias

    right

    right mapper and table alias

    on

    join condition

    returns

    join definition

    Definition Classes
    AssociationsFeature
  50. def createNewModel(parameters: PermittedStrongParameters): Long

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  51. def createWithAttributes(parameters: (Symbol, Any)*)(implicit s: DBSession): Long

    Permalink

    Creates a new entity with non-permitted parameters.

    Creates a new entity with non-permitted parameters.

    CAUTION: If you use this method in some web apps, you might have mass assignment vulnerability.

    parameters

    parameters

    s

    db session

    returns

    created count (actually useless)

    Definition Classes
    CRUDFeatureWithIdNoIdCUDFeature
  52. def createWithNamedValues(namedValues: (scalikejdbc.SQLSyntax, Any)*)(implicit s: DBSession = autoSession): Long

    Permalink

    Creates a new entity with named values.

    Creates a new entity with named values.

    namedValues

    named values

    s

    db session

    returns

    generated id

    Definition Classes
    CRUDFeatureWithIdNoIdCUDFeature
  53. def createWithPermittedAttributes(strongParameters: PermittedStrongParameters)(implicit s: DBSession): Long

    Permalink

    Creates a new entity with permitted strong parameters.

    Creates a new entity with permitted strong parameters.

    strongParameters

    permitted parameters

    s

    db session

    returns

    created count (actually useless)

    Definition Classes
    CRUDFeatureWithIdNoIdCUDFeature
  54. val defaultBelongsToExtractors: LinkedHashSet[BelongsToExtractor[Entity]]

    Permalink
    Definition Classes
    AssociationsFeature
  55. val defaultHasOneExtractors: LinkedHashSet[HasOneExtractor[Entity]]

    Permalink
    Definition Classes
    AssociationsFeature
  56. val defaultJoinDefinitions: LinkedHashSet[JoinDefinition[_]]

    Permalink

    Join definitions that are enabled by default.

    Join definitions that are enabled by default.

    Definition Classes
    AssociationsFeature
  57. val defaultOneToManyExtractors: LinkedHashSet[HasManyExtractor[Entity]]

    Permalink
    Definition Classes
    AssociationsFeature
  58. def defaultOrdering: scalikejdbc.SQLSyntax

    Permalink

    Default ordering condition.

    Default ordering condition.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  59. def defaultOrderings: Seq[scalikejdbc.SQLSyntax]

    Permalink
    Definition Classes
    NoIdFinderFeature
  60. def defaultScope(alias: Alias[Entity]): Option[scalikejdbc.SQLSyntax]

    Permalink

    Returns default scope for select queries.

    Returns default scope for select queries.

    Definition Classes
    SkinnyMapperBase
  61. def defaultScopeForUpdateOperations: Option[scalikejdbc.SQLSyntax]

    Permalink

    Returns default scope for update/delete operations.

    Returns default scope for update/delete operations.

    returns

    default scope

    Definition Classes
    NoIdCUDFeature
  62. def defaultScopeWithDefaultAlias: Option[scalikejdbc.SQLSyntax]

    Permalink
    Definition Classes
    SkinnyMapperBase
  63. def defaultSelectQuery: scalikejdbc.SelectSQLBuilder[Entity]

    Permalink

    Returns th default select query builder for this mapper.

    Returns th default select query builder for this mapper.

    returns

    select query builder

    Definition Classes
    AssociationsFeatureSkinnyMapperBase
  64. def deleteAll()(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes all entities.

    Deletes all entities.

    Definition Classes
    NoIdCUDFeature
  65. def deleteBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes entities by condition.

    Deletes entities by condition.

    where

    condition

    s

    db session

    returns

    deleted count

    Definition Classes
    OptimisticLockWithTimestampFeatureWithIdNoIdCUDFeature
  66. def deleteById(id: Long)(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes a single entity by primary key.

    Deletes a single entity by primary key.

    id

    primary key

    s

    db session

    returns

    deleted count

    Definition Classes
    OptimisticLockWithTimestampFeatureWithIdCRUDFeatureWithId
  67. def deleteByIdAndOptionalTimestamp(id: Long, timestamp: Option[DateTime])(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes a single entity by primary key and lock timestamp.

    Deletes a single entity by primary key and lock timestamp.

    id

    primary key

    timestamp

    lock timestamp

    s

    db session

    returns

    deleted count

    Definition Classes
    OptimisticLockWithTimestampFeatureWithId
  68. def deleteByIdAndTimestamp(id: Long, timestamp: DateTime)(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes a single entity by primary key and lock timestamp.

    Deletes a single entity by primary key and lock timestamp.

    id

    primary key

    timestamp

    lock timestamp

    s

    db session

    returns

    deleted count

    Definition Classes
    OptimisticLockWithTimestampFeatureWithId
  69. def deleteModelById(id: Long): Int

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  70. def delimiterForResultName: String

    Permalink
    Definition Classes
    SQLSyntaxSupport
  71. def distinctCount(fieldName: Symbol = Symbol(primaryKeyFieldName))(implicit s: DBSession = autoSession): Long

    Permalink

    Counts distinct rows.

    Counts distinct rows.

    Definition Classes
    CalculationFeature
  72. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  74. def extract(sql: SQL[Entity, NoExtractor])(implicit includesRepository: IncludesQueryRepository[Entity]): SQL[Entity, HasExtractor]

    Permalink
    Definition Classes
    NoIdFinderFeatureAssociationsFeature
  75. def extractBelongsTo[That](mapper: AssociationsFeature[That], fk: String, alias: Alias[That], merge: (Entity, Option[That]) ⇒ Entity, includesMerge: (Seq[Entity], Seq[That]) ⇒ Seq[Entity] = defaultIncludesMerge[Entity, That]): BelongsToExtractor[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  76. def extractHasOne[That](mapper: AssociationsFeature[That], fk: String, alias: Alias[That], merge: (Entity, Option[That]) ⇒ Entity, includesMerge: (Seq[Entity], Seq[That]) ⇒ Seq[Entity] = defaultIncludesMerge[Entity, That]): HasOneExtractor[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  77. def extractOneToMany[M1](mapper: AssociationsFeature[M1], fk: String, alias: Alias[M1], merge: (Entity, Seq[M1]) ⇒ Entity, includesMerge: (Seq[Entity], Seq[M1]) ⇒ Seq[Entity] = defaultIncludesMerge[Entity, M1]): HasManyExtractor[Entity]

    Permalink

    One-to-Many relationship definition.

    One-to-Many relationship definition.

    object Member extends RelationshipFeature[Member] {
      oneToMany[Group](
        mapper = Group,
        merge = (m, c) => m.copy(company = c)
      )
    }
    Definition Classes
    AssociationsFeature
  78. def extractWithAssociations(sql: SQL[Entity, NoExtractor], belongsToAssociations: Seq[BelongsToAssociation[Entity]], hasOneAssociations: Seq[HasOneAssociation[Entity]], oneToManyAssociations: Seq[HasManyAssociation[Entity]])(implicit includesRepository: IncludesQueryRepository[Entity] = IncludesQueryRepository[Entity]()): SQL[Entity, HasExtractor]

    Permalink

    Creates an extractor for this query.

    Creates an extractor for this query.

    sql

    sql object

    belongsToAssociations

    belongsTo associations

    hasOneAssociations

    hasOne associations

    oneToManyAssociations

    hasMany associations

    returns

    sql object

    Definition Classes
    AssociationsFeature
  79. def extractWithOneToOneTables(rs: WrappedResultSet, belongsToExtractors: Set[BelongsToExtractor[Entity]], hasOneExtractors: Set[HasOneExtractor[Entity]])(implicit includesRepository: IncludesQueryRepository[Entity]): Entity

    Permalink

    Extracts entity with one-to-one tables.

    Extracts entity with one-to-one tables.

    rs

    result set

    belongsToExtractors

    belongsTo extractors

    hasOneExtractors

    hasOne extractors

    returns

    entity

    Definition Classes
    AssociationsFeature
  80. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  81. def findAll(orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities.

    Finds all entities.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  82. def findAllBy(where: scalikejdbc.SQLSyntax, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities by condition.

    Finds all entities by condition.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  83. def findAllByIds(ids: Long*)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities by several primary keys.

    Finds all entities by several primary keys.

    Definition Classes
    FinderFeatureWithId
  84. def findAllByWithLimitOffset(where: scalikejdbc.SQLSyntax, limit: Int = 100, offset: Int = 0, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities by condition and with pagination.

    Finds all entities by condition and with pagination.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  85. def findAllByWithLimitOffsetForOneToManyRelations(where: scalikejdbc.SQLSyntax, limit: Int = 100, offset: Int = 0, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink
    Definition Classes
    FinderFeatureWithId
  86. def findAllByWithPagination(where: scalikejdbc.SQLSyntax, pagination: Pagination, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities by condition and with pagination.

    Finds all entities by condition and with pagination.

    Definition Classes
    NoIdFinderFeature
  87. def findAllModels(): List[Entity]

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  88. def findAllWithLimitOffset(limit: Int = 100, offset: Int = 0, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities with pagination.

    Finds all entities with pagination.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  89. def findAllWithLimitOffsetForOneToManyRelations(limit: Int = 100, offset: Int = 0, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink
    Definition Classes
    FinderFeatureWithId
  90. def findAllWithPagination(pagination: Pagination, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Permalink

    Finds all entities with pagination.

    Finds all entities with pagination.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  91. def findBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Option[Entity]

    Permalink

    Finds an entity by condition.

    Finds an entity by condition.

    Definition Classes
    FinderFeatureWithIdNoIdFinderFeature
  92. def findById(id: Long)(implicit s: DBSession = autoSession): Option[Entity]

    Permalink

    Finds a single entity by primary key.

    Finds a single entity by primary key.

    Definition Classes
    FinderFeatureWithId
  93. def findModel(id: Long): Option[Entity]

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  94. def findModels(pageSize: Int, pageNo: Int): List[Entity]

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  95. def findModelsDesc(pageSize: Int, pageNo: Int): List[Entity]

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  96. def forceUpperCase: Boolean

    Permalink
    Definition Classes
    SQLSyntaxSupport
  97. def generateId: Long

    Permalink

    Generates auto-generated new Id.

    Generates auto-generated new Id.

    returns

    id

    Definition Classes
    IdFeature
  98. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  99. def getTypedValueFromStrongParameter(fieldName: String, value: Any, paramType: ParamType): Option[Any]

    Permalink

    Returns typed value from a strong parameter.

    Returns typed value from a strong parameter.

    fieldName

    field name

    value

    actual value

    paramType

    param type definition

    returns

    typed value if exists

    Attributes
    protected
    Definition Classes
    StrongParametersFeature
  100. def hasMany[M](many: (AssociationsFeature[M], Alias[M]), on: (Alias[Entity], Alias[M]) ⇒ scalikejdbc.SQLSyntax, merge: (Entity, Seq[M]) ⇒ Entity): HasManyAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  101. def hasManyThrough[M1, M2](through: (AssociationsFeature[M1], Alias[M1]), throughOn: (Alias[Entity], Alias[M1]) ⇒ scalikejdbc.SQLSyntax, many: (AssociationsWithIdFeature[_, M2], Alias[M2]), on: (Alias[M1], Alias[M2]) ⇒ scalikejdbc.SQLSyntax, merge: (Entity, Seq[M2]) ⇒ Entity): HasManyAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  102. def hasManyThrough[M2](through: AssociationsFeature[_], many: AssociationsWithIdFeature[_, M2], merge: (Entity, Seq[M2]) ⇒ Entity): HasManyAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  103. def hasManyThroughWithFk[M2](through: AssociationsFeature[_], many: AssociationsWithIdFeature[_, M2], throughFk: String, manyFk: String, merge: (Entity, Seq[M2]) ⇒ Entity): HasManyAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  104. def hasManyWithFk[M](many: (AssociationsFeature[M], Alias[M]), fk: String, on: (Alias[Entity], Alias[M]) ⇒ scalikejdbc.SQLSyntax, merge: (Entity, Seq[M]) ⇒ Entity): HasManyAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  105. def hasOne[A](right: AssociationsFeature[A], merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  106. def hasOneWithAlias[A](right: (AssociationsFeature[A], Alias[A]), merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  107. def hasOneWithAliasAndFk[A](right: (AssociationsFeature[A], Alias[A]), fk: String, merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  108. def hasOneWithAliasAndFkAndJoinCondition[A](right: (AssociationsFeature[A], Alias[A]), fk: String, on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  109. def hasOneWithAliasAndJoinCondition[A](right: (AssociationsFeature[A], Alias[A]), on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  110. def hasOneWithFk[A](right: AssociationsFeature[A], fk: String, merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  111. def hasOneWithFkAndJoinCondition[A](right: AssociationsFeature[A], fk: String, on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  112. def hasOneWithJoinCondition[A](right: AssociationsFeature[A], on: scalikejdbc.SQLSyntax, merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  113. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  114. def includes(associations: Association[_]*): IncludesFeatureWithId[Long, Entity] with FinderFeatureWithId[Long, Entity] with QueryingFeatureWithId[Long, Entity]

    Permalink

    Adds includes conditions.

    Adds includes conditions.

    associations

    associations

    returns

    extended self

    Definition Classes
    IncludesFeatureWithId
  115. def innerJoin[Left](left: (AssociationsFeature[Left], Alias[Left]), right: (AssociationsFeature[_], Alias[_]), on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  116. def innerJoin(right: (AssociationsFeature[_], Alias[_]), on: (Alias[Entity], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  117. def innerJoinWithDefaults[Left](left: AssociationsFeature[Left], right: AssociationsFeature[_], on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  118. def innerJoinWithDefaults(right: AssociationsFeature[_], on: (Alias[Entity], Alias[Any]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  119. def innerJoinWithDefaults(right: AssociationsFeature[_], on: scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  120. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  121. def isValidFieldName(name: String): Boolean

    Permalink

    Predicates the field name is valid.

    Predicates the field name is valid.

    Definition Classes
    SkinnyMapperBase
  122. def join[Left](left: (AssociationsFeature[Left], Alias[Left]), right: (AssociationsFeature[_], Alias[_]), on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  123. def join(right: (AssociationsFeature[_], Alias[_]), on: (Alias[Entity], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  124. def joinWithDefaults[Left](left: AssociationsFeature[Left], right: AssociationsFeature[_], on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  125. def joinWithDefaults(right: AssociationsFeature[_], on: (Alias[Entity], Alias[Any]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  126. def joinWithDefaults(right: AssociationsFeature[_], on: scalikejdbc.SQLSyntax): JoinDefinition[Entity]

    Permalink
    Definition Classes
    AssociationsFeature
  127. def joins[Id](associations: Association[_]*): CRUDFeatureWithId[Id, Entity]

    Permalink

    Appends join definition on runtime.

    Appends join definition on runtime.

    associations

    associations

    returns

    self

    Definition Classes
    CRUDFeatureWithIdJoinsFeature
  128. def leftJoin(left: (AssociationsFeature[_], Alias[_]), right: (AssociationsFeature[_], Alias[_]), on: (Alias[_], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[_]

    Permalink
    Definition Classes
    AssociationsFeature
  129. def leftJoin(right: (AssociationsFeature[_], Alias[_]), on: (Alias[Entity], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[_]

    Permalink
    Definition Classes
    AssociationsFeature
  130. def leftJoinWithDefaults(left: AssociationsFeature[_], right: AssociationsFeature[_], on: (Alias[_], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[_]

    Permalink
    Definition Classes
    AssociationsFeature
  131. def leftJoinWithDefaults(right: AssociationsFeature[_], on: (Alias[Entity], Alias[Any]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[_]

    Permalink
    Definition Classes
    AssociationsFeature
  132. def leftJoinWithDefaults(right: AssociationsFeature[_], on: scalikejdbc.SQLSyntax): JoinDefinition[_]

    Permalink
    Definition Classes
    AssociationsFeature
  133. def limit(n: Int): EntitiesSelectOperationBuilder

    Permalink

    Appends limit part.

    Appends limit part.

    n

    value

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  134. def lockTimestampFieldName: String

    Permalink

    Lock timestamp field name.

    Lock timestamp field name.

    Definition Classes
    OptimisticLockWithTimestampFeatureWithId
  135. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  136. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  137. def max(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

    Permalink
    Definition Classes
    CalculationFeature
  138. def maximum(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

    Permalink

    Calculates minimum value of a column.

    Calculates minimum value of a column.

    Definition Classes
    CalculationFeature
  139. def mergeNamedValuesForCreation(namedValues: Seq[(scalikejdbc.SQLSyntax, Any)]): Seq[(scalikejdbc.SQLSyntax, Any)]

    Permalink

    Merges already registered attributes to be inserted and parameters.

    Merges already registered attributes to be inserted and parameters.

    namedValues

    named values

    returns

    merged attributes

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  140. def min(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

    Permalink
    Definition Classes
    CalculationFeature
  141. def minimum(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

    Permalink

    Calculates minimum value of a column.

    Calculates minimum value of a column.

    Definition Classes
    CalculationFeature
  142. def nameConverters: Map[String, String]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  143. def namedValuesForCreation(strongParameters: PermittedStrongParameters): Seq[(scalikejdbc.SQLSyntax, Any)]

    Permalink

    Extracts named values from the permitted parameters.

    Extracts named values from the permitted parameters.

    strongParameters

    permitted parameters

    returns

    named values

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
  144. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  147. def offset(n: Int): EntitiesSelectOperationBuilder

    Permalink

    Appends offset part.

    Appends offset part.

    n

    value

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  148. def paginate(pagination: Pagination): EntitiesSelectOperationBuilder

    Permalink

    Appends pagination settings as limit/offset.

    Appends pagination settings as limit/offset.

    pagination

    pagination

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  149. def primaryKeyField: scalikejdbc.SQLSyntax

    Permalink
    Definition Classes
    SkinnyMapperBase
  150. def primaryKeyFieldName: String

    Permalink

    Returns primary key name.

    Returns primary key name. (default: "id") Notice: Not a column name but field name. For example, not "first_name" but "firstName"

    Definition Classes
    SkinnyMapperBase
  151. def schemaName: Option[String]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  152. def selectQueryWithAdditionalAssociations(sql: scalikejdbc.SelectSQLBuilder[Entity], belongsToAssociations: Seq[BelongsToAssociation[Entity]], hasOneAssociations: Seq[HasOneAssociation[Entity]], hasManyAssociations: Seq[HasManyAssociation[Entity]]): scalikejdbc.SelectSQLBuilder[Entity]

    Permalink

    Returns a select query builder that all associations are joined.

    Returns a select query builder that all associations are joined.

    sql

    sql object

    belongsToAssociations

    belongsTo associations

    hasOneAssociations

    hasOne associations

    hasManyAssociations

    hasMany associations

    returns

    select query builder

    Definition Classes
    AssociationsFeature
  153. def selectQueryWithAssociations: scalikejdbc.SelectSQLBuilder[Entity]

    Permalink
  154. def setAsByDefault(extractor: HasManyExtractor[Entity]): Unit

    Permalink
    Definition Classes
    AssociationsFeature
  155. def setAsByDefault(extractor: HasOneExtractor[Entity]): Unit

    Permalink
    Definition Classes
    AssociationsFeature
  156. def setAsByDefault(extractor: BelongsToExtractor[Entity]): Unit

    Permalink
    Definition Classes
    AssociationsFeature
  157. def settings: SettingsProvider

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SQLSyntaxSupport
  158. def singleSelectQuery: scalikejdbc.SelectSQLBuilder[Entity]

    Permalink

    Returns select query builder object to simply fetch rows without other joined tables.

    Returns select query builder object to simply fetch rows without other joined tables.

    Definition Classes
    SkinnyMapperBase
  159. def sum(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

    Permalink

    Calculates sum of a column.

    Calculates sum of a column.

    Definition Classes
    CalculationFeature
  160. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  161. def syntax(name: String): scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[Entity], Entity]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  162. def syntax: scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[Entity], Entity]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  163. def table: scalikejdbc.TableDefSQLSyntax

    Permalink
    Definition Classes
    SQLSyntaxSupport
  164. def tableName: String

    Permalink

    Returns table name.

    Returns table name.

    Definition Classes
    SkinnyMapperBase → SQLSyntaxSupport
  165. def tableNameWithSchema: String

    Permalink
    Definition Classes
    SQLSyntaxSupport
  166. def toDefaultForeignKeyName[A](mapper: AssociationsFeature[A]): String

    Permalink

    Expects mapper's name + primary key name by default.

    Expects mapper's name + primary key name by default.

    A

    entity type

    mapper

    mapper

    returns

    fk name

    Attributes
    protected
    Definition Classes
    AssociationsFeature
  167. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  168. def underlying: SkinnyMapperBase[Entity]

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyMapperBase
  169. def updateBy(where: scalikejdbc.SQLSyntax): UpdateOperationBuilder

    Permalink

    Returns update query builder with condition.

    Returns update query builder with condition.

    where

    where condition

    returns

    update query builder

    Definition Classes
    OptimisticLockWithTimestampFeatureWithIdNoIdCUDFeature
  170. def updateById(id: Long): UpdateOperationBuilder

    Permalink

    Returns update query builder with primary key.

    Returns update query builder with primary key.

    id

    primary key

    returns

    update query builder

    Definition Classes
    OptimisticLockWithTimestampFeatureWithIdCRUDFeatureWithId
  171. def updateById(id: Long, parameters: PermittedStrongParameters): Int

    Permalink

    Updates entities with parameters.

    Updates entities with parameters.

    id

    primary key

    parameters

    parameters

    returns

    updated count

    Definition Classes
    CRUDFeatureWithId
  172. def updateByIdAndTimestamp(id: Long, timestamp: DateTime): UpdateOperationBuilder

    Permalink

    Returns update query builder which updates a single entity by primary key and lock timestamp.

    Returns update query builder which updates a single entity by primary key and lock timestamp.

    id

    primary key

    timestamp

    lock timestamp

    returns

    updated count

    Definition Classes
    OptimisticLockWithTimestampFeatureWithId
  173. def updateByIdAndTimestamp(id: Long, timestamp: Option[DateTime]): UpdateOperationBuilder

    Permalink

    Returns update query builder which updates a single entity by primary key and lock timestamp.

    Returns update query builder which updates a single entity by primary key and lock timestamp.

    id

    primary key

    timestamp

    lock timestamp

    returns

    updated count

    Definition Classes
    OptimisticLockWithTimestampFeatureWithId
  174. def updateModelById(id: Long, parameters: PermittedStrongParameters): Int

    Permalink
    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  175. def useAutoIncrementPrimaryKey: Boolean

    Permalink

    Primary key should be Database's auto-increment value if true.

    Primary key should be Database's auto-increment value if true.

    Definition Classes
    IdFeature
  176. def useExternalIdGenerator: Boolean

    Permalink

    Primary key generation should be done by #generateNewId if true.

    Primary key generation should be done by #generateNewId if true.

    Definition Classes
    IdFeature
  177. def useShortenedResultName: Boolean

    Permalink
    Definition Classes
    SQLSyntaxSupport
  178. def useSnakeCaseColumnName: Boolean

    Permalink
    Definition Classes
    SQLSyntaxSupport
  179. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  182. def where(condition: scalikejdbc.SQLSyntax): EntitiesSelectOperationBuilder

    Permalink

    Appends a raw where condition.

    Appends a raw where condition.

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  183. def where(conditions: (Symbol, Any)*): EntitiesSelectOperationBuilder

    Permalink

    Appends where conditions.

    Appends where conditions.

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  184. def withAlias[A](name: String)(op: (Alias[Entity]) ⇒ A): A

    Permalink

    Provides a code block with a table alias.

    Provides a code block with a table alias.

    Definition Classes
    SkinnyMapperBase
  185. def withAlias[A](op: (Alias[Entity]) ⇒ A): A

    Permalink

    Provides a code block with a table alias.

    Provides a code block with a table alias.

    Definition Classes
    SkinnyMapperBase
  186. def withColumns[A](op: (scalikejdbc.ColumnName[Entity]) ⇒ A): A

    Permalink

    Provides a code block with the column name provider.

    Provides a code block with the column name provider.

    Definition Classes
    SkinnyMapperBase
  187. def withTableName(tableName: String): CRUDFeatureWithId[Long, Entity]

    Permalink

    Replaces table name on runtime.

    Replaces table name on runtime.

    tableName

    table name

    returns

    self

    Definition Classes
    CRUDFeatureWithIdDynamicTableNameFeatureWithId

Deprecated Value Members

  1. def afterCreate(namedValues: Seq[(scalikejdbc.SQLSyntax, Any)], generatedId: Option[Long])(implicit s: DBSession = autoSession): Unit

    Permalink

    #createWithNamedValues post-execution.

    #createWithNamedValues post-execution.

    namedValues

    named values

    generatedId

    generated id

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.12) Use afterCreate(handler) instead

  2. def afterDeleteBy(where: scalikejdbc.SQLSyntax, deletedCount: Int)(implicit s: DBSession = autoSession): Int

    Permalink

    #deleteBy post-execution.

    #deleteBy post-execution.

    where

    condition

    deletedCount

    deleted count

    returns

    count

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.12) Use afterDeleteBy(handler) instead

  3. def beforeCreate(namedValues: Seq[(scalikejdbc.SQLSyntax, Any)])(implicit s: DBSession = autoSession): Unit

    Permalink

    #createWithNamedValues pre-execution.

    #createWithNamedValues pre-execution.

    namedValues

    named values

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.12) Use beforeCreate(handler) instead

  4. def beforeDeleteBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Unit

    Permalink

    #deleteBy pre-execution.

    #deleteBy pre-execution.

    where

    condition

    Attributes
    protected
    Definition Classes
    NoIdCUDFeature
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.12) Use beforeDeleteBy(handler) instead

Inherited from OptimisticLockWithTimestampFeatureWithId[Long, Entity]

Inherited from CRUDFeatureWithId[Long, Entity]

Inherited from DynamicTableNameFeatureWithId[Long, Entity]

Inherited from FinderFeatureWithId[Long, Entity]

Inherited from NoIdFinderFeature[Entity]

Inherited from CalculationFeature[Entity]

Inherited from QueryingFeatureWithId[Long, Entity]

Inherited from IncludesFeatureWithId[Long, Entity]

Inherited from NoIdCUDFeature[Entity]

Inherited from StrongParametersFeature

Inherited from JoinsFeature[Entity]

Inherited from AssociationsWithIdFeature[Long, Entity]

Inherited from IdFeature[Long]

Inherited from AssociationsFeature[Entity]

Inherited from LoggerProvider

Inherited from AutoSessionFeature

Inherited from ConnectionPoolFeature

Inherited from SkinnyModel[Long, Entity]

Inherited from SkinnyMapperBase[Entity]

Inherited from scalikejdbc.SQLSyntaxSupport[Entity]

Inherited from AnyRef

Inherited from Any

Ungrouped