skinny

orm

package orm

Skinny provides you Skinny-ORM as the default O/R mapper, which is built with ScalikeJDBC.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. orm
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Alias[A] = scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[A], A]

  2. trait SkinnyCRUDMapper[Entity] extends SkinnyMapper[Entity] with CRUDFeatureWithId[Long, Entity]

    Out-of-the-box Skinny-ORM CRUD mapper.

    Out-of-the-box Skinny-ORM CRUD mapper.

    Entity

    entity

  3. trait SkinnyCRUDMapperWithId[Id, Entity] extends SkinnyMapperWithId[Id, Entity] with CRUDFeatureWithId[Id, Entity]

    Out-of-the-box Skinny-ORM CRUD mapper.

    Out-of-the-box Skinny-ORM CRUD mapper.

    Id

    id

    Entity

    entity

  4. trait SkinnyJoinTable[Entity] extends SkinnyMapperBase[Entity] with AssociationsFeature[Entity] with NoIdCUDFeature[Entity] with NoIdQueryingFeature[Entity] with NoIdFinderFeature[Entity]

    SkinnyMapper which represents join table which is used for associations.

    SkinnyMapper which represents join table which is used for associations.

    This mapper don't have primary key search and so on because they cannot work as expected or no need to implement.

    Entity

    entity

  5. trait SkinnyMapper[Entity] extends SkinnyMapperWithId[Long, Entity]

    Basic SkinnyMapper implementation.

    Basic SkinnyMapper implementation.

    Entity

    entity

  6. trait SkinnyMapperBase[Entity] extends scalikejdbc.SQLSyntaxSupport[Entity]

    SkinnyMapper base.

    SkinnyMapper base.

    Entity

    entity

  7. trait SkinnyMapperWithId[Id, Entity] extends SkinnyMapperBase[Entity] with ConnectionPoolFeature with AutoSessionFeature with IdFeature[Id] with AssociationsWithIdFeature[Id, Entity] with FinderFeatureWithId[Id, Entity] with QueryingFeatureWithId[Id, Entity] with DynamicTableNameFeatureWithId[Id, Entity] with StrongParametersFeature

    Basic SkinnyMapper implementation.

    Basic SkinnyMapper implementation.

    Id

    id

    Entity

    entity

  8. trait SkinnyNoIdCRUDMapper[Entity] extends SkinnyNoIdMapper[Entity] with NoIdCUDFeature[Entity]

    CRUD mapper for tables that don't have single primary key.

    CRUD mapper for tables that don't have single primary key.

    Entity

    entity

  9. trait SkinnyNoIdMapper[Entity] extends SkinnyMapperBase[Entity] with ConnectionPoolFeature with AutoSessionFeature with NoIdFinderFeature[Entity] with NoIdQueryingFeature[Entity] with NoIdAssociationsFeature[Entity] with StrongParametersFeature

    Basic mapper for tables that don't have single primary key.

    Basic mapper for tables that don't have single primary key.

    Entity

    entity

  10. trait SkinnyRecord[Entity] extends SkinnyRecordWithId[Long, Entity]

    ActiveRecord::Base-like entity object base.

    ActiveRecord::Base-like entity object base.

    case class Company(id: Long, name: String) extends SkinnyResource[Company] {
      def skinnyCRUDMapper = Company
    }
    object Company extends SkinnyCRUDMapper[Long, Company] {
      def extract(rs: WrappedResultSet, s: ResultName[Company]): Company = new Company(
        id = rs.longOpt(s.id),
        name = rs.string(s.name)
      )
    }
    // usage
    val company = Company.findById(id).get
    company.copy(name = "Oracle").save()
    company.destroy()
    Entity

    entity

  11. trait SkinnyRecordBase[Entity] extends SkinnyRecordBaseWithId[Long, Entity]

    ActiveRecord::Base-like entity object base.

    ActiveRecord::Base-like entity object base.

    case class Company(id: Long, name: String) extends SkinnyResource[Company] {
      def skinnyCRUDMapper = Company
    }
    object Company extends SkinnyCRUDMapper[Company] {
      def extract(rs: WrappedResultSet, s: ResultName[Company]): Company = new Company(
        id = rs.longOpt(s.id),
        name = rs.string(s.name)
      )
    }
    // usage
    val company = Company.findById(id).get
    company.copy(name = "Oracle").save()
    company.destroy()
    Entity

    entity

  12. trait SkinnyRecordBaseWithId[Id, Entity] extends AnyRef

    ActiveRecord::Base-like entity object base.

    ActiveRecord::Base-like entity object base.

    case class Company(id: Long, name: String) extends SkinnyResource[Company] {
      def skinnyCRUDMapper = Company
    }
    object Company extends SkinnyCRUDMapper[Company] {
      def extract(rs: WrappedResultSet, s: ResultName[Company]): Company = new Company(
        id = rs.longOpt(s.id),
        name = rs.string(s.name)
      )
    }
    // usage
    val company = Company.findById(id).get
    company.copy(name = "Oracle").save()
    company.destroy()
    Id

    id

    Entity

    entity

  13. trait SkinnyRecordWithId[Id, Entity] extends SkinnyRecordBaseWithId[Id, Entity]

    ActiveRecord::Base-like entity object base.

    ActiveRecord::Base-like entity object base.

    case class Company(id: Long, name: String) extends SkinnyResource[Company] {
      def skinnyCRUDMapper = Company
    }
    object Company extends SkinnyCRUDMapper[Long, Company] {
      def extract(rs: WrappedResultSet, s: ResultName[Company]): Company = new Company(
        id = rs.longOpt(s.id),
        name = rs.string(s.name)
      )
    }
    // usage
    val company = Company.findById(id).get
    company.copy(name = "Oracle").save()
    company.destroy()
    Id

    id

    Entity

    entity

  14. trait SkinnyJoinTableWithId[Id, Entity] extends SkinnyMapperBase[Entity] with AssociationsFeature[Entity] with CRUDFeatureWithId[Id, Entity]

    [deprecated] SkinnyMapper which represents join table which is used for associations.

    [deprecated] SkinnyMapper which represents join table which is used for associations.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.14) Use SkinnyMapper or SkinnyCRUDMapper instead because this mapper has ID.

  15. trait SkinnyTable[Entity] extends SkinnyMapperBase[Entity] with ConnectionPoolFeature with AutoSessionFeature with AssociationsWithIdFeature[Long, Entity] with QueryingFeature[Entity] with StrongParametersFeature

    Table definition without single primary key specified by default.

    Table definition without single primary key specified by default.

    Entity

    entity

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.14) Use SkinnyNoIdMapper or SkinnyMapper instead.

Value Members

  1. package exception

  2. package feature

  3. package servlet

Inherited from AnyRef

Inherited from Any

Ungrouped