skinny.orm.feature

TimestampsFeature

trait TimestampsFeature[Entity] extends TimestampsFeatureWithId[Long, Entity]

ActiveRecord timestamps feature.

Entity

entity

Linear Supertypes
TimestampsFeatureWithId[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], Logging, AutoSessionFeature, ConnectionPoolFeature, SkinnyModel[Long, Entity], SkinnyMapperBase[Entity], scalikejdbc.SQLSyntaxSupport[Entity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TimestampsFeature
  2. TimestampsFeatureWithId
  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. Logging
  17. AutoSessionFeature
  18. ConnectionPoolFeature
  19. SkinnyModel
  20. SkinnyMapperBase
  21. SQLSyntaxSupport
  22. AnyRef
  23. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type AfterUpdateByHandler = (DBSession, scalikejdbc.SQLSyntax, Seq[(scalikejdbc.SQLSyntax, Any)], Int) ⇒ Unit

    #updateBy post-execution handler.

    #updateBy post-execution handler.

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

    #updateBy pre-execution handler.

    #updateBy pre-execution handler.

    Definition Classes
    NoIdCUDFeature
  3. 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

    Entities finder builder.

    Entities finder builder.

    mapper

    mapper

    conditions

    registered conditions

    limit

    limit

    offset

    offset

    Definition Classes
    QueryingFeatureWithId
  4. abstract class SelectOperationBuilder extends AnyRef

    Select query builder.

    Select query builder.

    Definition Classes
    QueryingFeatureWithId
  5. class UpdateOperationBuilder extends AnyRef

    Update query builder/executor.

    Update query builder/executor.

    Definition Classes
    NoIdCUDFeature

Abstract Value Members

  1. abstract def defaultAlias: Alias[Entity]

    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

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

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

    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

    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

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

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

    Definition Classes
    AnyRef → Any
  4. def addAttributeForCreation(namedValue: ⇒ (scalikejdbc.SQLSyntax, Any)): NoIdCUDFeature[Entity]

    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(namedValues: Seq[(scalikejdbc.SQLSyntax, Any)], generatedId: Option[Long])(implicit s: DBSession = autoSession): Unit

    #createWithNamedValues post-execution.

    #createWithNamedValues post-execution.

    namedValues

    named values

    generatedId

    generated id

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
  6. def afterDeleteBy(where: scalikejdbc.SQLSyntax, deletedCount: Int)(implicit s: DBSession = autoSession): Int

    #deleteBy post-execution.

    #deleteBy post-execution.

    where

    condition

    deletedCount

    deleted count

    returns

    count

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

    Registers #updateBy post-execution handler.

    Registers #updateBy post-execution handler.

    handler

    event handler

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

    Registered afterUpdateByHandlers.

    Registered afterUpdateByHandlers.

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

    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
  10. def appendIncludedAttributes(entities: List[Entity])(implicit s: DBSession, repository: IncludesQueryRepository[Entity]): List[Entity]

    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
  11. def apply(rs: WrappedResultSet): Entity

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

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

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

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

    Definition Classes
    SQLSyntaxSupport
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def associations: LinkedHashSet[Association[_]]

    Associations

    Associations

    Definition Classes
    AssociationsFeature
  16. def autoSession: DBSession

    AutoSession definition.

    AutoSession definition.

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

    Calculates average of a column.

    Calculates average of a column.

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

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

    #createWithNamedValues pre-execution.

    #createWithNamedValues pre-execution.

    namedValues

    named values

    Attributes
    protected
    Definition Classes
    CRUDFeatureWithId
  20. def beforeDeleteBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Unit

    #deleteBy pre-execution.

    #deleteBy pre-execution.

    where

    condition

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

    Registers #updateBy pre-execution handler.

    Registers #updateBy pre-execution handler.

    handler

    event handler

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

    Registered beforeUpdateByHandlers.

    Registered beforeUpdateByHandlers.

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

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

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

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

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

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

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

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

    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
  31. def calculate(sql: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): BigDecimal

    Calculates rows.

    Calculates rows.

    Definition Classes
    CalculationFeature
  32. def clone(): AnyRef

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

    Definition Classes
    SQLSyntaxSupport
  34. def columnNames: Seq[String]

    Returns column names.

    Returns column names.

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

    Definition Classes
    SQLSyntaxSupport
  36. def connectionPool: ConnectionPool

    Returns connection pool.

    Returns connection pool.

    returns

    pool

    Definition Classes
    ConnectionPoolFeature
  37. def connectionPoolName: Any

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

    Returns actual value from identity value.

    Returns actual value from identity value.

    A

    actual value type

    id

    identity

    returns

    actual value

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

    Count only.

    Count only.

    Definition Classes
    CalculationFeature
  40. def countAllModels(): Long

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

    Counts all rows by condition.

    Counts all rows by condition.

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

    Creates a new table alias for this mapper.

    Creates a new table alias for this mapper.

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

    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
  44. def createNewModel(parameters: PermittedStrongParameters): Long

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

    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

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

    Creates a new entity with named values.

    Creates a new entity with named values.

    namedValues

    named values

    s

    db session

    returns

    created count

    Definition Classes
    TimestampsFeatureWithIdCRUDFeatureWithIdNoIdCUDFeature
  47. def createWithPermittedAttributes(strongParameters: PermittedStrongParameters)(implicit s: DBSession): Long

    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

    Definition Classes
    CRUDFeatureWithIdNoIdCUDFeature
  48. def createdAtFieldName: String

    createdAt field name.

    createdAt field name.

    Definition Classes
    TimestampsFeatureWithId
  49. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  50. def debug(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  51. val defaultBelongsToExtractors: LinkedHashSet[BelongsToExtractor[Entity]]

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

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

    Join definitions that are enabled by default.

    Join definitions that are enabled by default.

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

    Definition Classes
    AssociationsFeature
  55. def defaultOrdering: scalikejdbc.SQLSyntax

    Default ordering condition.

    Default ordering condition.

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

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

    Returns default scope for select queries.

    Returns default scope for select queries.

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

    Returns default scope for update/delete operations.

    Returns default scope for update/delete operations.

    returns

    default scope

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

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

    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
  61. def deleteAll()(implicit s: DBSession = autoSession): Int

    Deletes all entities.

    Deletes all entities.

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

    Deletes entities by condition.

    Deletes entities by condition.

    where

    condition

    s

    db session

    returns

    deleted count

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

    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
    CRUDFeatureWithId
  64. def deleteModelById(id: Long): Int

    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  65. def delimiterForResultName: String

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

    Counts distinct rows.

    Counts distinct rows.

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

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

    Definition Classes
    AnyRef → Any
  69. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  70. def error(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  71. def extract(sql: SQL[Entity, NoExtractor])(implicit includesRepository: IncludesQueryRepository[Entity]): SQL[Entity, HasExtractor]

    Definition Classes
    NoIdFinderFeatureAssociationsFeature
  72. 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]

    Definition Classes
    AssociationsFeature
  73. 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]

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

    Definition Classes
    AssociationsFeature
  75. def extractOneToManyWithDefaults[M1](mapper: AssociationsFeature[M1], merge: (Entity, Seq[M1]) ⇒ Entity, includesMerge: (Seq[Entity], Seq[M1]) ⇒ Seq[Entity] = defaultIncludesMerge[Entity, M1]): HasManyExtractor[Entity]

    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
  76. 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]

    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
  77. def extractWithOneToOneTables(rs: WrappedResultSet, belongsToExtractors: Set[BelongsToExtractor[Entity]], hasOneExtractors: Set[HasOneExtractor[Entity]])(implicit includesRepository: IncludesQueryRepository[Entity]): Entity

    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
  78. def finalize(): Unit

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

    Finds all entities.

    Finds all entities.

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

    Finds all entities by condition.

    Finds all entities by condition.

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

    Finds all entities by several primary keys.

    Finds all entities by several primary keys.

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

    Finds all entities by condition and with pagination.

    Finds all entities by condition and with pagination.

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

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

    Finds all entities by condition and with pagination.

    Finds all entities by condition and with pagination.

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

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

    Finds all entities with pagination.

    Finds all entities with pagination.

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

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

    Finds all entities with pagination.

    Finds all entities with pagination.

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

    Finds an entity by condition.

    Finds an entity by condition.

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

    Finds a single entity by primary key.

    Finds a single entity by primary key.

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

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

    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  93. def forceUpperCase: Boolean

    Definition Classes
    SQLSyntaxSupport
  94. def generateId: Long

    Generates auto-generated new Id.

    Generates auto-generated new Id.

    returns

    id

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

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

    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
  97. def hasMany[M](many: (AssociationsWithIdFeature[_, M], Alias[M]), on: (Alias[Entity], Alias[M]) ⇒ scalikejdbc.SQLSyntax, merge: (Entity, Seq[M]) ⇒ Entity): HasManyAssociation[Entity]

    Definition Classes
    AssociationsFeature
  98. 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]

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

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

    Definition Classes
    AssociationsFeature
  101. def hasOne[A](right: AssociationsWithIdFeature[_, A], merge: (Entity, Option[A]) ⇒ Entity): HasOneAssociation[Entity]

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

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

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

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

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

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

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

    Definition Classes
    AssociationsFeature
  109. def hashCode(): Int

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

    Adds includes conditions.

    Adds includes conditions.

    associations

    associations

    returns

    extended self

    Definition Classes
    IncludesFeatureWithId
  111. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  112. def info(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  113. def innerJoin[Left](left: (AssociationsFeature[Left], Alias[Left]), right: (AssociationsFeature[_], Alias[_]), on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

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

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

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

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

    Definition Classes
    AssociationsFeature
  118. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  119. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  120. def isInfoEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  121. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  122. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  123. def isValidFieldName(name: String): Boolean

    Predicates the field name is valid.

    Predicates the field name is valid.

    Definition Classes
    SkinnyMapperBase
  124. def isWarnEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  125. def join[Left](left: (AssociationsFeature[Left], Alias[Left]), right: (AssociationsFeature[_], Alias[_]), on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLSyntax): JoinDefinition[Entity]

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

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

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

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

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

    Appends join definition on runtime.

    Appends join definition on runtime.

    associations

    associations

    returns

    self

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

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

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

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

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

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

    Appends limit part.

    Appends limit part.

    n

    value

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  137. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  138. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  139. def max(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

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

    Calculates minimum value of a column.

    Calculates minimum value of a column.

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

    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
  142. def min(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

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

    Calculates minimum value of a column.

    Calculates minimum value of a column.

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

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

    Extracts named values from the permitted parameters.

    Extracts named values from the permitted parameters.

    strongParameters

    permitted parameters

    returns

    named values

    Attributes
    protected
    Definition Classes
    TimestampsFeatureWithIdNoIdCUDFeature
  146. final def ne(arg0: AnyRef): Boolean

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

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

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

    Appends offset part.

    Appends offset part.

    n

    value

    returns

    query builder

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

    Appends pagination settings as limit/offset.

    Appends pagination settings as limit/offset.

    pagination

    pagination

    returns

    query builder

    Definition Classes
    QueryingFeatureWithId
  151. def primaryKeyField: scalikejdbc.SQLSyntax

    Definition Classes
    SkinnyMapperBase
  152. def primaryKeyFieldName: String

    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
  153. def schemaName: Option[String]

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

    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
  155. def selectQueryWithAssociations: scalikejdbc.SelectSQLBuilder[Entity]

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

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

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

    Definition Classes
    AssociationsFeature
  159. def singleSelectQuery: scalikejdbc.SelectSQLBuilder[Entity]

    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
  160. def sum(fieldName: Symbol)(implicit s: DBSession = autoSession): BigDecimal

    Calculates sum of a column.

    Calculates sum of a column.

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

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

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

    Definition Classes
    SQLSyntaxSupport
  164. def table: scalikejdbc.TableDefSQLSyntax

    Definition Classes
    SQLSyntaxSupport
  165. def tableName: String

    Returns table name.

    Returns table name.

    Definition Classes
    SkinnyMapperBase → SQLSyntaxSupport
  166. def tableNameWithSchema: String

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

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

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

    A

    enitty type

    mapper

    mapper

    returns

    fk name

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

    Definition Classes
    AnyRef → Any
  169. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  170. def trace(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  171. def underlying: SkinnyMapperBase[Entity]

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

    Returns update query builder with condition.

    Returns update query builder with condition.

    where

    where condition

    returns

    update query builder

    Definition Classes
    TimestampsFeatureWithIdNoIdCUDFeature
  173. def updateById(id: Long, parameters: PermittedStrongParameters): Int

    Updates entities with parameters.

    Updates entities with parameters.

    id

    primary key

    parameters

    parameters

    returns

    updated count

    Definition Classes
    CRUDFeatureWithId
  174. def updateById(id: Long): UpdateOperationBuilder

    Returns update query builder with primary key.

    Returns update query builder with primary key.

    id

    primary key

    returns

    update query builder

    Definition Classes
    CRUDFeatureWithId
  175. def updateModelById(id: Long, parameters: PermittedStrongParameters): Int

    Definition Classes
    CRUDFeatureWithId → SkinnyModel
  176. def updatedAtFieldName: String

    updatedAt field name.

    updatedAt field name.

    Definition Classes
    TimestampsFeatureWithId
  177. def useAutoIncrementPrimaryKey: Boolean

    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
  178. def useExternalIdGenerator: Boolean

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

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

    Definition Classes
    IdFeature
  179. def useShortenedResultName: Boolean

    Definition Classes
    SQLSyntaxSupport
  180. def useSnakeCaseColumnName: Boolean

    Definition Classes
    SQLSyntaxSupport
  181. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  184. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  185. def warn(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  186. def where(condition: scalikejdbc.SQLSyntax): EntitiesSelectOperationBuilder

    Appends a raw where condition.

    Appends a raw where condition.

    condition
    returns

    query builder

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

    Appends where conditions.

    Appends where conditions.

    conditions
    returns

    query builder

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

    Provides a code block with a table alias.

    Provides a code block with a table alias.

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

    Provides a code block with a table alias.

    Provides a code block with a table alias.

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

    Provides a code block with the column name provider.

    Provides a code block with the column name provider.

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

    Replaces table name on runtime.

    Replaces table name on runtime.

    tableName

    table name

    returns

    self

    Definition Classes
    CRUDFeatureWithIdDynamicTableNameFeatureWithId

Deprecated Value Members

  1. def findAllByPaging(where: scalikejdbc.SQLSyntax, limit: Int = 100, offset: Int = 0, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Definition Classes
    FinderFeatureWithId
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use #findAllByWithLimitOffset or #findAllByWithPagination instead. This method will be removed since version 1.1.0.

  2. def findAllPaging(limit: Int = 100, offset: Int = 0, orderings: Seq[scalikejdbc.SQLSyntax] = defaultOrderings)(implicit s: DBSession = autoSession): List[Entity]

    Definition Classes
    FinderFeatureWithId
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use #findAllWithLimitOffset or #findAllWithPagination instead. This method will be removed since version 1.1.0.

Inherited from TimestampsFeatureWithId[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 Logging

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