Trait

co.actioniq.luna.dao

DAOLongIdQuery

Related Doc: package dao

Permalink

trait DAOLongIdQuery[T <: Table[V, DbLongOptId, P], V <: IdModel[DbLongOptId], P <: JdbcProfile] extends IdQuery[T, V, DbLongOptId, P] with JdbcTypes[P] with InSeqDbUUIDImplicits

Implementation of handling queries with option[long] id

T

slick table, extends aiqtable

V

case class to store result set rows

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DAOLongIdQuery
  2. InSeqDbUUIDImplicits
  3. JdbcTypes
  4. IdQuery
  5. DefaultFilter
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class EqAnyValuesHelper[T] extends AnyRef

    Permalink

    Implicit class to allow filtering on sequence of uuid

    Implicit class to allow filtering on sequence of uuid

    T

    underlying field type

    Definition Classes
    InSeqDbUUIDImplicits
  2. type QueryJoin[A, B] = Query[(T, A), (V, B), Seq]

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter
  3. type QueryJoinTwo[A, B, AA, BB] = Query[((T, A), AA), ((V, B), BB), Seq]

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter
  4. type QueryLeftJoin[A, B] = Query[(T, slick.jdbc.JdbcProfile.API.Rep[Option[A]]), (V, Option[B]), Seq]

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter
  5. type QueryWithFilter = Query[T, V, Seq]

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter

Abstract Value Members

  1. abstract def optLongJdbcType: P.DriverJdbcType[DbLongOptId]

    Permalink
    Definition Classes
    JdbcTypes
  2. abstract val profile: JdbcProfile

    Permalink
    Attributes
    protected
    Definition Classes
    DAOLongIdQueryInSeqDbUUIDImplicitsIdQueryDefaultFilter
  3. abstract val slickQuery: slick.jdbc.JdbcProfile.API.TableQuery[T]

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter
  4. abstract def uuidJdbcType: P.DriverJdbcType[DbUUID]

    Permalink
    Definition Classes
    JdbcTypes

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addDefaultFilter(filter: (T) ⇒ slick.jdbc.JdbcProfile.API.Rep[Boolean]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter
  5. def addDefaultOptFilter(filter: (T) ⇒ slick.jdbc.JdbcProfile.API.Rep[Option[Boolean]]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFilter
  6. def applyDefaultFilters[A <: Table[B, _, P], B <: IdModel[_]](query: QueryJoin[A, B], other: DefaultFilter[A, B, _, P]): QueryJoin[A, B]

    Permalink
    Definition Classes
    DefaultFilter
  7. def applyDefaultFilters(query: QueryWithFilter): QueryWithFilter

    Permalink
    Definition Classes
    DefaultFilter
  8. def applyDefaultFiltersLeftJoin[A <: Table[B, _, P], B <: IdModel[_]](query: QueryLeftJoin[A, B]): QueryLeftJoin[A, B]

    Permalink
    Definition Classes
    DefaultFilter
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def createQuery(input: V)(implicit ec: ExecutionContext): slick.jdbc.JdbcProfile.API.DBIOAction[DbLongOptId, slick.jdbc.JdbcProfile.API.NoStream, Read with Write]

    Permalink

    Generate create query

    Generate create query

    input

    new row

    returns

    autoinc id

    Definition Classes
    DAOLongIdQueryIdQuery
  12. implicit val dbOptLongJdbcType: P.DriverJdbcType[DbLongOptId]

    Permalink
    Attributes
    protected
    Definition Classes
    JdbcTypes
  13. implicit val dbUuidJdbcType: P.DriverJdbcType[DbUUID]

    Permalink
    Attributes
    protected
    Definition Classes
    JdbcTypes
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getCompiledQuerySeq[A, B](originalQuery: QueryWithFilter, fieldFunc: (T) ⇒ slick.jdbc.JdbcProfile.API.Rep[DbLongOptId], keyPrefix: String, storage: SlickCompiledFunctionSingleton, ids: Seq[DbLongOptId], field1: (T, slick.jdbc.JdbcProfile.API.Rep[A]) ⇒ slick.jdbc.JdbcProfile.API.Rep[Boolean], field1Value: A, field2: (T, slick.jdbc.JdbcProfile.API.Rep[B]) ⇒ slick.jdbc.JdbcProfile.API.Rep[Boolean], field2Value: B)(implicit aTpe: P.DriverJdbcType[A], bTpe: P.DriverJdbcType[B]): AppliedCompiledFunction[_, _, Seq[V]]

    Permalink

    Get compiled query with input applied.

    Get compiled query with input applied. Adds TWO extra field for filtering

    A

    type of field1

    B

    type of field2

    originalQuery

    baseline query to add IN filter to

    fieldFunc

    lambda to get id field from table

    keyPrefix

    string keyprefix for storing in singleton

    storage

    singleton to store compiled queries

    ids

    to filter the field defined in fieldFunc

    field1

    lambda function to apply first filter for extra field

    field1Value

    value to filter first extra field on

    field2

    lambda function to apply second filter for extra field

    field2Value

    value to filter second extra field on

    aTpe

    implicit way to query type A

    bTpe

    implicit way to query type B

    returns

    applied compiled function

    Definition Classes
    DAOLongIdQueryIdQuery
  19. def getCompiledQuerySeq[A](originalQuery: QueryWithFilter, fieldFunc: (T) ⇒ slick.jdbc.JdbcProfile.API.Rep[DbLongOptId], keyPrefix: String, storage: SlickCompiledFunctionSingleton, ids: Seq[DbLongOptId], field1: (T, slick.jdbc.JdbcProfile.API.Rep[A]) ⇒ slick.jdbc.JdbcProfile.API.Rep[Boolean], field1Value: A)(implicit aTpe: P.DriverJdbcType[A]): AppliedCompiledFunction[_, _, Seq[V]]

    Permalink

    Get compiled query with input applied.

    Get compiled query with input applied. Adds extra field for filtering

    A

    type of field1

    originalQuery

    baseline query to add IN filter to

    fieldFunc

    lambda to get id field from table

    keyPrefix

    string keyprefix for storing in singleton

    storage

    singleton to store compiled queries

    ids

    to filter the field defined in fieldFunc

    field1

    lambda function to apply filter for extra field

    field1Value

    value to filter extra field on

    aTpe

    implicit way to query type A

    returns

    applied compiled function

    Definition Classes
    DAOLongIdQueryIdQuery
  20. def getCompiledQuerySeq(originalQuery: QueryWithFilter, fieldFunc: (T) ⇒ slick.jdbc.JdbcProfile.API.Rep[DbLongOptId], keyPrefix: String, storage: SlickCompiledFunctionSingleton, ids: Seq[DbLongOptId]): AppliedCompiledFunction[_, _, Seq[V]]

    Permalink

    Get compiled query with input applied

    Get compiled query with input applied

    originalQuery

    baseline query to add IN filter to

    fieldFunc

    lambda to get id field from table

    keyPrefix

    string keyprefix for storing in singleton

    storage

    singleton to store compiled queries

    ids

    ids to filter the field defined in fieldFunc

    returns

    applied compiled function

    Definition Classes
    DAOLongIdQueryIdQuery
  21. def getDefaultFilters(t: T): slick.jdbc.JdbcProfile.API.Rep[Option[Boolean]]

    Permalink
    Definition Classes
    DefaultFilter
  22. def getSlickQuery: slick.jdbc.JdbcProfile.API.TableQuery[T]

    Permalink
    Definition Classes
    DefaultFilter
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def idEquals(query: QueryWithFilter, id: DbLongOptId): QueryWithFilter

    Permalink

    Filter id equals DbLongOptID

    Filter id equals DbLongOptID

    query

    existing query

    id

    id to filter on

    Definition Classes
    DAOLongIdQueryIdQuery
  25. def idInSet(query: QueryWithFilter, ids: Seq[DbLongOptId]): QueryWithFilter

    Permalink

    Filter id in seq of DbLongOptID

    Filter id in seq of DbLongOptID

    query

    existing query

    ids

    ids to filter on

    Definition Classes
    DAOLongIdQueryIdQuery
  26. def idMap: slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Rep[DbLongOptId], DbLongOptId, Seq]

    Permalink

    Retrieve ID column from query

    Retrieve ID column from query

    Definition Classes
    DAOLongIdQueryIdQuery
  27. def idsAsSeq(input: Seq[V]): Seq[DbLongOptId]

    Permalink

    Retrieve seq of ids from resultset

    Retrieve seq of ids from resultset

    input

    sequence of rows

    Definition Classes
    DAOLongIdQueryIdQuery
  28. def ifDefaultFiltersExist[R](exists: () ⇒ R, doesNotExist: () ⇒ R): R

    Permalink
    Definition Classes
    DefaultFilter
  29. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  31. implicit def nonersJdbcType: PlaceholderJdbc

    Permalink

    Implicit evidence on how to write a placeholder

    Implicit evidence on how to write a placeholder

    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. val optWrapper: SeqLongOptJdbcType

    Permalink
    Definition Classes
    InSeqDbUUIDImplicits
  35. val placeholderWrapper: PlaceholderJdbcType

    Permalink
    Definition Classes
    InSeqDbUUIDImplicits
  36. implicit def seqDbUUID1000Implicit: SeqDbUUIDJdbcType1000

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  37. implicit def seqDbUUID100Implicit: SeqDbUUIDJdbcType100

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  38. implicit def seqDbUUID200Implicit: SeqDbUUIDJdbcType200

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  39. implicit def seqDbUUID500Implicit: SeqDbUUIDJdbcType500

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  40. implicit def seqDbUUIDImplicit: SeqDbUUIDJdbcTypeBase

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  41. implicit def seqLongOpt1000Implicit: SeqLongOptJdbcType1000

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  42. implicit def seqLongOpt100Implicit: SeqLongOptJdbcType100

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  43. implicit def seqLongOpt200Implicit: SeqLongOptJdbcType200

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  44. implicit def seqLongOpt500Implicit: SeqLongOptJdbcType500

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  45. implicit def seqLongOptImplicit: SeqLongOptJdbcTypeBase

    Permalink
    Attributes
    protected
    Definition Classes
    InSeqDbUUIDImplicits
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  48. val uuidWrapper: SeqDbUUIDJdbcType

    Permalink
    Definition Classes
    InSeqDbUUIDImplicits
  49. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from InSeqDbUUIDImplicits

Inherited from JdbcTypes[P]

Inherited from IdQuery[T, V, DbLongOptId, P]

Inherited from DefaultFilter[T, V, DbLongOptId, P]

Inherited from AnyRef

Inherited from Any

Ungrouped