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
- Alphabetic
- By Inheritance
- CaseClassShape
- MappedScalaProductShape
- MappedProductShape
- ProductNodeShape
- Shape
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CaseClassShape(mapLifted: (LiftedTuple) ⇒ LiftedCaseClass, mapPlain: (PlainTuple) ⇒ PlainCaseClass)(implicit columnShapes: Shape[FlatShapeLevel, LiftedTuple, PlainTuple, LiftedTuple], classTag: ClassTag[PlainCaseClass])
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to any2stringadd[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass], B)
- Implicit
- 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 ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
- ProductNodeShape → Shape
-
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
- CaseClassShape → ProductNodeShape
-
implicit
val
classTag: ClassTag[PlainCaseClass]
- Definition Classes
- MappedScalaProductShape → MappedProductShape
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
copy(s: Seq[Shape[_ <: ShapeLevel, _, _, _]]): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] { val shapes: Seq[scala.slick.lifted.Shape[_ <: scala.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
- CaseClassShape → ProductNodeShape
-
def
encodeRef(value: Mixed, path: List[ast.Symbol]): 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
- ProductNodeShape → Shape
-
def
ensuring(cond: (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]) ⇒ Boolean, msg: ⇒ Any): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]
- Implicit
- 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 Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]) ⇒ Boolean): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]
- Implicit
- 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 Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]
- Implicit
- 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 Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]
- Implicit
- 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 Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass] to StringFormat[CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
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
- MappedScalaProductShape → ProductNodeShape
-
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
- MappedScalaProductShape → ProductNodeShape
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
- ProductNodeShape → Shape
-
def
packedShape: Shape[FlatShapeLevel, Packed, Unpacked, Packed]
Return the fully packed Shape
Return the fully packed Shape
- Definition Classes
- ProductNodeShape → Shape
-
val
shapes: collection.Seq[Shape[_, _, _, _]]
- Definition Classes
- CaseClassShape → ProductNodeShape
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBase(v: Any): ProductWrapper
- Definition Classes
- MappedProductShape
-
def
toMapped(v: Any): PlainCaseClass
- Definition Classes
- CaseClassShape → MappedProductShape
-
def
toNode(value: Mixed): TypeMapping
Return an AST Node representing a mixed value.
Return an AST Node representing a mixed value.
- Definition Classes
- MappedProductShape → ProductNodeShape → Shape
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass], B)
- Implicit
- 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 ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
edit this text on github
Scala Language-Integrated Connection Kit
This is the documentation for the Slick database library. Slick is a joint effort by Typesafe and LAMP, EPFL Lausanne.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...
Important places
Type-safe query operators
Plain SQL queries
Driver / Connection related
Mapping related
Model / Table class related
Other