com.websudos.morpheus.sql

SQLTable

abstract class SQLTable[Owner <: BaseTable[Owner, Record], Record] extends BaseTable[Owner, Record] with SelectTable[Owner, Record, AbstractRootSelectQuery, AbstractSelectSyntaxBlock]

Linear Supertypes
SelectTable[Owner, Record, AbstractRootSelectQuery, AbstractSelectSyntaxBlock], dsl.BaseTable[Owner, Record], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SQLTable
  2. SelectTable
  3. BaseTable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SQLTable()

Abstract Value Members

  1. abstract def fromRow(row: morpheus.Row): Record

    The most notable and honorable of functions in this file, this is what allows our DSL to provide type-safety.

    The most notable and honorable of functions in this file, this is what allows our DSL to provide type-safety. It works by requiring a user to define a type-safe mapping between a buffered Result and the above refined Record.

    Objects delimiting pre-defined columns also have a pre-defined "apply" method, allowing the user to simply autofill the type-safe mapping by using pre-existing definitions.

    row

    The row incoming as a result from a MySQL query.

    returns

    A Record instance.

    Definition Classes
    BaseTable

Concrete 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. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def columns: List[AbstractColumn[_]]

    Definition Classes
    BaseTable
  9. def create: RootCreateQuery[Owner, Record]

    Definition Classes
    SQLTableBaseTable
  10. def createRootSelect[A <: sql.BaseTable[A, _], B](table: A, block: AbstractSelectSyntaxBlock, rowFunc: (sql.Row) ⇒ B): AbstractRootSelectQuery[A, B]

    This allows a table implementation targeting a specific database to specify it's own root select query.

    This allows a table implementation targeting a specific database to specify it's own root select query. It's used to allow variations in SELECT syntax operators and quantifiers.

    For instance, MySQL has DISTINCT ROW as a valid SELECT quantifier whereas Postgres doesn't. This is part of the mechanism allowing for the invisible swap of features through a single import.

    A

    The type of the owner table.

    B

    The type of the record.

    table

    The table object used.

    block

    The select syntax block to use.

    rowFunc

    The function mapping a record to a type safe user defined output.

    returns

    A root select query implementation.

    Attributes
    protected[this]
    Definition Classes
    SQLTable → SelectTable
  11. def createSelectSyntaxBlock(query: String, tableName: String, cols: List[String] = List("*")): AbstractSelectSyntaxBlock

    Attributes
    protected[this]
    Definition Classes
    SQLTable → SelectTable
  12. def delete: RootDeleteQuery[Owner, Record]

    Definition Classes
    SQLTableBaseTable
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  18. def insert: RootInsertQuery[Owner, Record]

    Definition Classes
    SQLTableBaseTable
  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  23. val queryBuilder: DefaultQueryBuilder.type

    Definition Classes
    SQLTableBaseTable
  24. def select[T1, T2, T3, T4, T5](f1: (Owner) ⇒ SelectColumn[T1], f2: (Owner) ⇒ SelectColumn[T2], f3: (Owner) ⇒ SelectColumn[T3], f4: (Owner) ⇒ SelectColumn[T4], f5: (Owner) ⇒ SelectColumn[T5]): AbstractRootSelectQuery[Owner, (T1, T2, T3, T4, T5)]

    This is the SELECT column1 column2 column3 column4 query, where 4 columns are specified to be partially selected.

    This is the SELECT column1 column2 column3 column4 query, where 4 columns are specified to be partially selected.

    returns

    An instance of a RootSelectQuery.

    Definition Classes
    SelectTable
  25. def select[T1, T2, T3, T4](f1: (Owner) ⇒ SelectColumn[T1], f2: (Owner) ⇒ SelectColumn[T2], f3: (Owner) ⇒ SelectColumn[T3], f4: (Owner) ⇒ SelectColumn[T4]): AbstractRootSelectQuery[Owner, (T1, T2, T3, T4)]

    This is the SELECT column1 column2 column3 column4 query, where 4 columns are specified to be partially selected.

    This is the SELECT column1 column2 column3 column4 query, where 4 columns are specified to be partially selected.

    returns

    An instance of a RootSelectQuery.

    Definition Classes
    SelectTable
  26. def select[T1, T2, T3](f1: (Owner) ⇒ SelectColumn[T1], f2: (Owner) ⇒ SelectColumn[T2], f3: (Owner) ⇒ SelectColumn[T3]): AbstractRootSelectQuery[Owner, (T1, T2, T3)]

    This is the SELECT column1 column2 column3 query, where 3 columns are specified to be partially selected.

    This is the SELECT column1 column2 column3 query, where 3 columns are specified to be partially selected.

    returns

    An instance of a RootSelectQuery.

    Definition Classes
    SelectTable
  27. def select[T1, T2](f1: (Owner) ⇒ SelectColumn[T1], f2: (Owner) ⇒ SelectColumn[T2]): AbstractRootSelectQuery[Owner, (T1, T2)]

    This is the SELECT column1 column2 query, where 2 columns are specified to be partially selected.

    This is the SELECT column1 column2 query, where 2 columns are specified to be partially selected.

    returns

    An instance of a RootSelectQuery.

    Definition Classes
    SelectTable
  28. def select[T1](f1: (Owner) ⇒ SelectColumn[T1]): AbstractRootSelectQuery[Owner, T1]

    This is the SELECT column1 query, where a single column is specified to be partially selected.

    This is the SELECT column1 query, where a single column is specified to be partially selected.

    returns

    An instance of a RootSelectQuery.

    Definition Classes
    SelectTable
  29. def select: AbstractRootSelectQuery[Owner, Record]

    This is the SELECT * query, where the user won't specify any partial select.

    This is the SELECT * query, where the user won't specify any partial select.

    returns

    An instance of a RootSelectQuery.

    Definition Classes
    SelectTable
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. val syntax: DefaultSQLSyntax.type

    Definition Classes
    SQLTableBaseTable
  32. def tableName: String

    Definition Classes
    BaseTable
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def update: RootUpdateQuery[Owner, Record]

    Definition Classes
    SQLTableBaseTable
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SelectTable[Owner, Record, AbstractRootSelectQuery, AbstractSelectSyntaxBlock]

Inherited from dsl.BaseTable[Owner, Record]

Inherited from AnyRef

Inherited from Any

Ungrouped