skinny.orm.feature

FinderFeature

trait FinderFeature[Entity] extends FinderFeatureWithId[Long, Entity]

Provides #find something APIs.

Linear Supertypes
FinderFeatureWithId[Long, Entity], IncludesFeatureWithId[Long, Entity], IdFeature[Long], JoinsFeature[Entity], AssociationsFeature[Entity], AutoSessionFeature, ConnectionPoolFeature, SkinnyMapperBase[Entity], scalikejdbc.SQLInterpolation.SQLSyntaxSupport[Entity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FinderFeature
  2. FinderFeatureWithId
  3. IncludesFeatureWithId
  4. IdFeature
  5. JoinsFeature
  6. AssociationsFeature
  7. AutoSessionFeature
  8. ConnectionPoolFeature
  9. SkinnyMapperBase
  10. SQLSyntaxSupport
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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")

    returns

    default table alias

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

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    rs

    result set

    n

    result name

    returns

    entity

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. 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
  7. 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
  8. def apply(rs: WrappedResultSet): Entity

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    rs

    result set

    returns

    entity

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

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    a

    table alias

    rs

    result set

    returns

    entity

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

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

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

    Associations

    Associations

    Definition Classes
    AssociationsFeature
  13. def autoSession: DBSession

    AutoSession definition.

    AutoSession definition.

    Definition Classes
    AutoSessionFeature
  14. def belongsTo[A](right: AssociationsFeature[A], merge: (Entity, Option[A]) ⇒ Entity): BelongsToAssociation[Entity]

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

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

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

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

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

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

    Definition Classes
    AssociationsFeature
  21. def clone(): AnyRef

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

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

    Returns column names.

    Returns column names.

    returns

    column names

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

    Definition Classes
    SQLSyntaxSupport
  25. def connectionPool: ConnectionPool

    Returns connection pool.

    Returns connection pool.

    returns

    pool

    Definition Classes
    ConnectionPoolFeature
  26. def connectionPoolName: Any

    Definition Classes
    SQLSyntaxSupport
  27. 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
  28. def countAll()(implicit s: DBSession = autoSession): Long

    Counts all rows.

    Counts all rows.

    s

    db session

    returns

    count

    Definition Classes
    FinderFeatureWithId
  29. def countBy(where: scalikejdbc.SQLInterpolation.SQLSyntax)(implicit s: DBSession = autoSession): Long

    Counts all rows by condition.

    Counts all rows by condition.

    where

    where condition

    s

    db session

    returns

    entities

    Definition Classes
    FinderFeatureWithId
  30. def createAlias(name: String): Alias[Entity]

    Creates a new table alias for this mapper.

    Creates a new table alias for this mapper.

    name

    alias name

    returns

    alias

    Definition Classes
    SkinnyMapperBase
  31. def createJoinDefinition(joinType: JoinType, left: (AssociationsFeature[_], Alias[_]), right: (AssociationsFeature[_], Alias[_]), on: scalikejdbc.SQLInterpolation.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
  32. val defaultBelongsToExtractors: LinkedHashSet[BelongsToExtractor[Entity]]

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

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

    Join definitions that are enabled by default.

    Join definitions that are enabled by default.

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

    Definition Classes
    AssociationsFeature
  36. def defaultScopeWithDefaultAlias: Option[scalikejdbc.SQLInterpolation.SQLSyntax]

    Returns default scope for select queries.

    Returns default scope for select queries.

    returns

    default scope

    Definition Classes
    SkinnyMapperBase
  37. def defaultSelectQuery: scalikejdbc.SQLInterpolation.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
  38. def delimiterForResultName: String

    Definition Classes
    SQLSyntaxSupport
  39. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    JoinsFeatureAssociationsFeature
  42. def extractBelongsTo[That](mapper: AssociationsFeature[That], fk: String, alias: Alias[That], merge: (Entity, Option[That]) ⇒ Entity, includesMerge: (Seq[Entity], Seq[That]) ⇒ Seq[Entity]): BelongsToExtractor[Entity]

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

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

    Definition Classes
    AssociationsFeature
  45. def extractOneToManyWithDefaults[M1](mapper: AssociationsFeature[M1], merge: (Entity, Seq[M1]) ⇒ Entity, includesMerge: (Seq[Entity], Seq[M1]) ⇒ Seq[Entity]): 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
  46. 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
  47. 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
  48. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. def findAll(ordering: scalikejdbc.SQLInterpolation.SQLSyntax = ...)(implicit s: DBSession = autoSession): List[Entity]

    Finds all entities.

    Finds all entities.

    s

    db session

    returns

    entities

    Definition Classes
    FinderFeatureWithId
  50. def findAllBy(where: scalikejdbc.SQLInterpolation.SQLSyntax, ordering: scalikejdbc.SQLInterpolation.SQLSyntax = ...)(implicit s: DBSession = autoSession): List[Entity]

    Finds all entities by condition.

    Finds all entities by condition.

    where

    where condition

    s

    db session

    returns

    entities

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

    Finds all entities by several primary keys.

    Finds all entities by several primary keys.

    ids

    several ids

    s

    db session

    returns

    entities

    Definition Classes
    FinderFeatureWithId
  52. def findAllByPaging(where: scalikejdbc.SQLInterpolation.SQLSyntax, limit: Int = 100, offset: Int = 0, ordering: scalikejdbc.SQLInterpolation.SQLSyntax = ...)(implicit s: DBSession = autoSession): List[Entity]

    Finds all entities by condition and paging.

    Finds all entities by condition and paging.

    where

    where condition

    limit

    limit

    offset

    offset

    s

    db session

    returns

    entities

    Definition Classes
    FinderFeatureWithId
  53. def findAllPaging(limit: Int = 100, offset: Int = 0, ordering: scalikejdbc.SQLInterpolation.SQLSyntax = ...)(implicit s: DBSession = autoSession): List[Entity]

    Finds all entities by paging.

    Finds all entities by paging.

    limit

    limit

    offset

    offset

    s

    db session

    returns

    entities

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

    Finds an entity by condition.

    Finds an entity by condition.

    where

    where condition

    s

    db session

    returns

    single entity

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

    Finds a single entity by primary key.

    Finds a single entity by primary key.

    id

    id

    s

    db session

    returns

    single entity if exists

    Definition Classes
    FinderFeatureWithId
  56. def forceUpperCase: Boolean

    Definition Classes
    SQLSyntaxSupport
  57. def generateId: Long

    Generates auto-generated new Id.

    Generates auto-generated new Id.

    returns

    id

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

    Definition Classes
    AnyRef → Any
  59. def hasMany[M](many: (AssociationsFeature[M], Alias[M]), on: (Alias[Entity], Alias[M]) ⇒ scalikejdbc.SQLInterpolation.SQLSyntax, merge: (Entity, Seq[M]) ⇒ Entity): HasManyAssociation[Entity]

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AssociationsFeature
  71. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  72. 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
  73. def innerJoin[Left](left: (AssociationsFeature[Left], Alias[Left]), right: (AssociationsFeature[_], Alias[_]), on: (Alias[Left], Alias[_]) ⇒ scalikejdbc.SQLInterpolation.SQLSyntax): JoinDefinition[Entity]

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

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

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

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

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

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

    Predicates the field name is valid.

    Predicates the field name is valid.

    name

    field name

    returns

    valid if true

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

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

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

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

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

    Definition Classes
    AssociationsFeature
  85. def joins[Id](associations: Association[_]*): JoinsFeature[Entity] with IdFeature[Id] with FinderFeatureWithId[Id, Entity] with QueryingFeatureWithId[Id, Entity]

    Appends join definition on runtime.

    Appends join definition on runtime.

    associations

    associations

    returns

    self

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

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

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

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

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

    Definition Classes
    AssociationsFeature
  91. def nameConverters: Map[String, String]

    Definition Classes
    SQLSyntaxSupport
  92. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  95. 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"

    returns

    primary key name

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

    Definition Classes
    SQLSyntaxSupport
  97. def selectQueryWithAdditionalAssociations(sql: scalikejdbc.SQLInterpolation.SelectSQLBuilder[Entity], belongsToAssociations: Seq[BelongsToAssociation[Entity]], hasOneAssociations: Seq[HasOneAssociation[Entity]], hasManyAssociations: Seq[HasManyAssociation[Entity]]): scalikejdbc.SQLInterpolation.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
  98. def selectQueryWithAssociations: scalikejdbc.SQLInterpolation.SelectSQLBuilder[Entity]

    Definition Classes
    IncludesFeatureWithIdJoinsFeature
  99. def setAsByDefault(extractor: HasManyExtractor[Entity]): Unit

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

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

    Definition Classes
    AssociationsFeature
  102. def singleSelectQuery: scalikejdbc.SQLInterpolation.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.

    returns

    SQL builder object

    Attributes
    protected
    Definition Classes
    SkinnyMapperBase
  103. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Definition Classes
    SQLSyntaxSupport
  106. def table: scalikejdbc.SQLInterpolation.TableDefSQLSyntax

    Definition Classes
    SQLSyntaxSupport
  107. def tableName: String

    Returns table name.

    Returns table name.

    returns

    table name

    Definition Classes
    SkinnyMapperBase → SQLSyntaxSupport
  108. def tableNameWithSchema: String

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

    Expects mapper's name + "Id" by default.

    Expects mapper's name + "Id" by default.

    A

    enitty type

    mapper

    mapper

    returns

    fk name

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

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

    Attributes
    protected
    Definition Classes
    SkinnyMapperBase
  112. 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
  113. 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
  114. def useShortenedResultName: Boolean

    Definition Classes
    SQLSyntaxSupport
  115. def useSnakeCaseColumnName: Boolean

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  119. 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.

    A

    return type

    name

    table alias name

    op

    operation

    returns

    result

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

    Provides a code block with a table alias.

    Provides a code block with a table alias.

    A

    return type

    op

    operation

    returns

    result

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

    Provides a code block with the column name provider.

    Provides a code block with the column name provider.

    A

    return type

    op

    operation

    returns

    result

    Definition Classes
    SkinnyMapperBase

Deprecated Value Members

  1. def primaryKeyName: String

    Definition Classes
    SkinnyMapperBase
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.22) Use primaryKeyFieldName instead. This API will be removed in version 1.0.0.

Inherited from FinderFeatureWithId[Long, Entity]

Inherited from IncludesFeatureWithId[Long, Entity]

Inherited from IdFeature[Long]

Inherited from JoinsFeature[Entity]

Inherited from AssociationsFeature[Entity]

Inherited from AutoSessionFeature

Inherited from ConnectionPoolFeature

Inherited from SkinnyMapperBase[Entity]

Inherited from scalikejdbc.SQLInterpolation.SQLSyntaxSupport[Entity]

Inherited from AnyRef

Inherited from Any

Ungrouped