Class/Object

io.getquill.ast

Entity

Related Docs: object Entity | package ast

Permalink

class Entity extends Query

Entities represent the actual tables/views being selected. Typically, something like:

`SELECT p.name FROM People p`
comes from something like:
`Map(Entity("People", Nil), Ident("p"), Property(Ident(p), "name"))`.
When you define a querySchema, the fields you mention inside become PropertyAliass. For example something like:
`querySchema[Person]("t_person", _.name -> "s_name")`
Becomes something like:
`Entity("t_person", List(PropertyAlias(List("name"), "s_name"))) { def renameable = Fixed }`
Note that Entity has an Opinion called renameable which will be the value Fixed when a querySchema is specified. That means that even if the NamingSchema is UpperCase, the resulting query will select t_person as opposed to T_PERSON or Person.

SELECT p.name FROM People p something like:

`Map(Entity("People", Nil), Ident("p"), Property(Ident(p), "name"))`.
When you define a `querySchema`, the fields you mention inside become `PropertyAlias`s. For example something like:
`querySchema[Person]("t_person", _.name -> "s_name")`
Becomes something like:
`Entity("t_person", List(PropertyAlias(List("name"), "s_name"))) { def renameable = Fixed }`
Note that Entity has an Opinion called `renameable` which will be the value `Fixed` when a `querySchema` is specified. That means that even if the `NamingSchema` is `UpperCase`, the resulting query will select `t_person` as opposed to `T_PERSON` or `Person`.

Linear Supertypes
Query, Ast, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Entity
  2. Query
  3. Ast
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Entity(name: String, properties: List[PropertyAlias])(theQuat: ⇒ Product)

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def copy(name: String = this.name, properties: List[PropertyAlias] = this.properties, quat: Product = this.quat): Entity

    Permalink
  7. def countQuatFields: Int

    Permalink
    Definition Classes
    Ast
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(that: Any): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    Entity → AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val name: String

    Permalink
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  18. val properties: List[PropertyAlias]

    Permalink
  19. def quat: Product

    Permalink
    Definition Classes
    EntityAst
  20. def renameable: Renameable

    Permalink
  21. def syncToQuat: Entity

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Ast → AnyRef → Any
  24. final def wait(): Unit

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

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

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

Inherited from Query

Inherited from Ast

Inherited from AnyRef

Inherited from Any

Ungrouped