Packages

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
Visibility
  1. Public
  2. All

Type Members

  1. type Alias[A] = scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[A], A]
  2. trait JodaImplicits extends AnyRef
  3. trait ParameterBinderOps extends AnyRef
  4. 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

  5. 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

  6. 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

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

    Basic SkinnyMapper implementation.

    Basic SkinnyMapper implementation.

    Entity

    entity

  8. trait SkinnyMapperBase[Entity] extends scalikejdbc.SQLSyntaxSupport[Entity] with JodaImplicits

    SkinnyMapper base.

    SkinnyMapper base.

    Entity

    entity

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

Inherited from AnyRef

Inherited from Any

Ungrouped