slick.lifted

CaseClassShape

class CaseClassShape[P <: Product, LiftedTuple, LiftedCaseClass <: P, PlainTuple, PlainCaseClass <: P] extends MappedScalaProductShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass]

A generic case class shape that can be used to lift a case class of plain Scala types to a case class of lifted types. This allows the type to be used as a record type (like tuples and HLists) in the Lifted Embedding.

Example:

case class C(a: Int, b: Option[String])
case class LiftedC(a: Column[Int], b: Column[Option[String]])
implicit object cShape extends CaseClassShape(LiftedC.tupled, C.tupled)
Source
Shape.scala
Linear Supertypes
MappedScalaProductShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass], MappedProductShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass], ProductNodeShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass], Shape[FlatShapeLevel, LiftedCaseClass, PlainCaseClass, LiftedCaseClass], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CaseClassShape
  2. MappedScalaProductShape
  3. MappedProductShape
  4. ProductNodeShape
  5. Shape
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CaseClassShape(mapLifted: (LiftedTuple) ⇒ LiftedCaseClass, mapPlain: (PlainTuple) ⇒ PlainCaseClass)(implicit columnShapes: Shape[FlatShapeLevel, LiftedTuple, PlainTuple, LiftedTuple], classTag: ClassTag[PlainCaseClass])

Type Members

  1. type Mixed = LiftedCaseClass

    Definition Classes
    Shape
  2. type Packed = LiftedCaseClass

    Definition Classes
    Shape
  3. type Unpacked = PlainCaseClass

    Definition Classes
    Shape

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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass], B)

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to ArrowAssoc[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def buildParams(extract: (Any) ⇒ Unpacked): Packed

    Build a packed representation containing QueryParameters that can extract data from the unpacked representation later.

    Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

    Definition Classes
    ProductNodeShapeShape
  10. def buildValue(elems: IndexedSeq[Any]): LiftedCaseClass

    Build a record value represented by this Shape from its element values.

    Build a record value represented by this Shape from its element values.

    Definition Classes
    CaseClassShapeProductNodeShape
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copy(s: Seq[Shape[_ <: ShapeLevel, _, _, _]]): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] { val shapes: Seq[slick.lifted.Shape[_ <: slick.lifted.ShapeLevel, _, _, _]] }

    Create a copy of this Shape with new element Shapes.

    Create a copy of this Shape with new element Shapes. This is used for packing Shapes recursively.

    Definition Classes
    CaseClassShapeProductNodeShape
  13. def encodeRef(value: Mixed, path: Node): Any

    Encode a reference into a value of this Shape.

    Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

    Definition Classes
    ProductNodeShapeShape
  14. def ensuring(cond: (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]) ⇒ Boolean, msg: ⇒ Any): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]) ⇒ Boolean): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getElement(value: P, idx: Int): Any

    Get the element value from a record value at the specified index.

    Get the element value from a record value at the specified index.

    Definition Classes
    MappedScalaProductShapeProductNodeShape
  24. def getIterator(value: P): Iterator[Any]

    Get an Iterator of a record value's element values.

    Get an Iterator of a record value's element values. The default implementation repeatedly calls getElement.

    Definition Classes
    MappedScalaProductShapeProductNodeShape
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. def pack(value: Mixed): Packed

    Convert a value of this Shape's (mixed) type to the fully packed type

    Convert a value of this Shape's (mixed) type to the fully packed type

    Definition Classes
    ProductNodeShapeShape
  31. def packedShape: Shape[FlatShapeLevel, Packed, Unpacked, Packed]

    Return the fully packed Shape

    Return the fully packed Shape

    Definition Classes
    ProductNodeShapeShape
  32. val shapes: Seq[Shape[_, _, _, _]]

    The Shapes for the product elements.

    The Shapes for the product elements.

    Definition Classes
    CaseClassShapeProductNodeShape
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toBase(v: Any): ProductWrapper

    Definition Classes
    MappedProductShape
  35. def toMapped(v: Any): PlainCaseClass

    Definition Classes
    CaseClassShapeMappedProductShape
  36. def toNode(value: Mixed): TypeMapping

    Return an AST Node representing a mixed value.

    Return an AST Node representing a mixed value.

    Definition Classes
    MappedProductShapeProductNodeShapeShape
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def [B](y: B): (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass], B)

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to ArrowAssoc[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (caseClassShape: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (caseClassShape: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to ArrowAssoc[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (caseClassShape: ArrowAssoc[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]

    Implicit information
    This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (caseClassShape: Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from MappedScalaProductShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass]

Inherited from MappedProductShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass]

Inherited from ProductNodeShape[FlatShapeLevel, P, LiftedCaseClass, PlainCaseClass, LiftedCaseClass]

Inherited from Shape[FlatShapeLevel, LiftedCaseClass, PlainCaseClass, LiftedCaseClass]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringAdd

Inherited by implicit conversion any2stringfmt from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to ArrowAssoc[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]]

Inherited by implicit conversion any2Ensuring from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to Ensuring[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]]

Ungrouped