com.atomizesoftware.spin.data.dao

Table

abstract class Table[T] extends AnyRef

Trait that defines a Table in the database and links the table to a model

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Table
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Table()(implicit arg0: ClassTag[T])

Abstract Value Members

  1. abstract val columns: List[Column]

    The list of Columns in the database

  2. abstract val fromModel: (T) ⇒ Seq[Any]

    Function that transforms an instance of T into list of values to be used in SELECT and INSERT operations.

  3. abstract val name: String

    The name of the table, as defined in the database.

    The name of the table, as defined in the database.

    It should be a simple string without quotes. Example, if using SQL Server and there is a table named Users, this value should be Users and not [Users]

  4. abstract val pathCoordinate: String

    Representation used when constructing/reading the alias

  5. abstract def toModel(implicit r: PositionedResult, alias: String = name): Option[T]

    Function that transforms a [scala.slick.Session.PositionedResult] into an instance of T.

    Function that transforms a [scala.slick.Session.PositionedResult] into an instance of T. If it fails, returns None

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val fullTextSearchColumn: String

    Name of the fulltext search column.

    Name of the fulltext search column. It defaults to _search

  10. def get[A](label: String)(implicit r: PositionedResult, alias: String): A

    Retrieves a value of type A from the implicit PositionedResult, from the field with the given label

    Retrieves a value of type A from the implicit PositionedResult, from the field with the given label

    This was developed to help in defining the toModel function.

    label

    label of the value in the ResultSet. It should be the simple column name and gets converted to the standard alias . Example: if getting the Id column, label parameter should be Id and not TableNameId

  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getOption[A](label: String)(implicit r: PositionedResult, alias: String): Option[A]

    Retrieves the value of type A from the implicit PositionedResult with the given label, but where the value night be NULL

  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. def innerType[R](implicit tag: ClassTag[R]): ClassTag[R]

    Gets the type of R

    Gets the type of R

    This is an helper method that is used by modelType to help get around the JVM type erasure

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val mandatoryReferences: List[Reference]

    List of mandatory references for the table.

  17. def modelType: ClassTag[T]

    Retrieves the inner type of Table

    Retrieves the inner type of Table

    Example: for Table[Container] this method returns the type Container

  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. val pk: String

    Name of the primary key column.

    Name of the primary key column. It defaults to Id

  22. val references: List[Reference]

    The list of references the table contains

  23. val searchColumns: List[String]

    List of column names that are used for search in sql server

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped