com.outr.query.orm

ORMTable

abstract class ORMTable[T] extends MappedTable[T]

Linear Supertypes
MappedTable[T], Listenable, Table, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ORMTable
  2. MappedTable
  3. Listenable
  4. Table
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ORMTable(datastore: Datastore, tableProperties: TableProperty*)(implicit manifest: Manifest[T])

  2. new ORMTable(datastore: Datastore, name: String, tableProperties: TableProperty*)(implicit manifest: Manifest[T])

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. def *: List[Column[_]]

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

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

    Definition Classes
    Any
  7. def addColumn[T](column: Column[T]): ListBuffer[Column[_]]

    Attributes
    protected[com.outr.query]
    Definition Classes
    Table
  8. def addForeignColumn[T](column: Column[T]): ListBuffer[Column[_]]

    Attributes
    protected[com.outr.query]
    Definition Classes
    Table
  9. def as(alias: String): TableAlias

    Definition Classes
    Table
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. lazy val autoIncrement: Option[Column[_]]

    Definition Classes
    Table
  12. implicit def bigDecimalConverter: BigDecimalConverter.type

    Definition Classes
    Table
  13. implicit def blobConverter: BlobConverter.type

    Definition Classes
    Table
  14. implicit def booleanConverter: BooleanConverter.type

    Definition Classes
    Table
  15. def byId(primaryKey: Any): Option[T]

    Retrieves an instance by id.

    Retrieves an instance by id.

    primaryKey

    the primary key to look up the instance

    returns

    Option[T]

    Definition Classes
    MappedTable
  16. implicit def byteArrayConverter: ByteArrayConverter.type

    Definition Classes
    Table
  17. def cached(key: Any): Option[T]

    Definition Classes
    MappedTable
  18. def caseClassForRow(result: QueryResult): EnhancedClass

    Determines the class representation for the supplied QueryResult row.

    Determines the class representation for the supplied QueryResult row. Overriding this allows for polymorphism to function properly on this table. Defaults to using table's type.

    result

    the class representation for this row

    returns

    EnhancedClass

  19. lazy val clazz: EnhancedClass

    Definition Classes
    MappedTable
  20. def clearCached(key: Any): Unit

    Definition Classes
    MappedTable
  21. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def column[T](name: String, converter: ColumnConverter[T], properties: ColumnProperty*)(implicit manifest: Manifest[T]): Column[T]

    Definition Classes
    Table
  23. def column[T](name: String, properties: ColumnProperty*)(implicit converter: ColumnConverter[T], manifest: Manifest[T]): Column[T]

    Definition Classes
    Table
  24. def columns: List[Column[_]]

    Definition Classes
    Table
  25. def columnsByName[T](names: String*): Seq[Column[T]]

    Definition Classes
    Table
  26. def delete(t: T): Boolean

    Deletes the supplied instance.

    Deletes the supplied instance.

    t

    the instance to delete

    returns

    true if the delete was successful - will only be false if "deleting" event processor returns None

    Definition Classes
    MappedTable
  27. val deleted: UnitProcessor[T]

    Fired immediately after successful delete.

    Fired immediately after successful delete.

    Definition Classes
    MappedTable
  28. val deleting: ModifiableOptionProcessor[T]

    Fired immediately before deleting an object from the database.

    Fired immediately before deleting an object from the database. The instance may be modified or None returned to avoid deletion.

    Definition Classes
    MappedTable
  29. implicit def doubleConverter: DoubleConverter.type

    Definition Classes
    Table
  30. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. lazy val foreignKeys: List[Column[_]]

    Definition Classes
    Table
  34. def get[P <: TableProperty](propertyName: String): Option[P]

    Definition Classes
    Table
  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. def getColumn[T](name: String): Option[Column[T]]

    Definition Classes
    Table
  37. def has(propertyName: String): Boolean

    Definition Classes
    Table
  38. def has(property: TableProperty): Boolean

    Definition Classes
    Table
  39. def hasFieldsForThisTable(result: QueryResult): Boolean

    Attributes
    protected
  40. def hasId(instance: T): Boolean

    True if the supplied instance has an id assigned (meaning it has been persisted).

    True if the supplied instance has an id assigned (meaning it has been persisted).

    Definition Classes
    MappedTable
  41. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  42. def idFor[C](instance: T): Option[ColumnValue[C]]

    Returns an optional ColumnValue[C] for the supplied instance based on whether it has been persisted.

    Returns an optional ColumnValue[C] for the supplied instance based on whether it has been persisted.

    Definition Classes
    MappedTable
  43. def insert(t: T): T

    Inserts the supplied instance into the datastore.

    Inserts the supplied instance into the datastore.

    t

    the instance to insert

    returns

    updated instance reflecting any changes resulting from the insert

    Definition Classes
    MappedTable
  44. val inserted: UnitProcessor[T]

    Fired immediate after successful insert.

    Fired immediate after successful insert.

    Definition Classes
    MappedTable
  45. val inserting: ModifiableProcessor[T]

    Fired immediately before inserting a new object into the database.

    Fired immediately before inserting a new object into the database. The instance may be modified in the response.

    Definition Classes
    MappedTable
  46. implicit def intConverter: IntConverter.type

    Definition Classes
    Table
  47. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  48. def listen[Event, Response, Result](name: String, priority: Priority, modes: ListenMode*)(f: (Event) ⇒ Response)(implicit eventManifest: Manifest[Event]): FunctionalListener[Event, Response]

    Definition Classes
    Listenable
  49. val listeners: Listeners

    Definition Classes
    Listenable
  50. implicit def longConverter: LongConverter.type

    Definition Classes
    Table
  51. lazy val many2Many: List[Column[_]]

    Definition Classes
    Table
  52. lazy val many2One: List[Column[_]]

    Definition Classes
    Table
  53. def merge(t: T): T

    Merges the instance into the database.

    Merges the instance into the database. If a row already exists matching the primary keys of the instance it will be replaced, otherwise the record will be inserted.

    t

    the instance to merge

    returns

    updated instance reflecting any changes resulting from the merge

    Definition Classes
    MappedTable
  54. val merged: UnitProcessor[T]

    Fired immediate after successful merge.

    Fired immediate after successful merge.

    Definition Classes
    MappedTable
  55. val merging: ModifiableProcessor[T]

    Fired immediately before merging a new object into the database.

    Fired immediately before merging a new object into the database. The instance may be modified in the response.

    Definition Classes
    MappedTable
  56. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  59. def object2Row(instance: T, onlyChanges: Boolean): MappedObject[T]

    Converts the supplied object to a MappedObject representing the modified object (during persistence) along with the column values to send to the database.

    Converts the supplied object to a MappedObject representing the modified object (during persistence) along with the column values to send to the database.

    onlyChanges

    true if only the changed values should be supplied

    returns

    MappedObject[T]

    Definition Classes
    ORMTableMappedTable
  60. lazy val one2Many: List[Column[_]]

    Definition Classes
    Table
  61. lazy val one2One: List[Column[_]]

    Definition Classes
    Table
  62. implicit val optionInt2IntConverter: Option2ValueConverter[Int]

  63. def orm[C](name: String, columnConverter: ColumnConverter[C], properties: ColumnProperty*)(implicit manifest: Manifest[C]): Column[C]

  64. def orm[C](columnName: String, fieldName: String, properties: ColumnProperty*)(implicit columnConverter: ColumnConverter[C], manifest: Manifest[C]): Column[C]

  65. def orm[C](name: String, properties: ColumnProperty*)(implicit columnConverter: ColumnConverter[C], manifest: Manifest[C]): Column[C]

  66. def orm[C, F](columnName: String, fieldName: String, ormConverter: ORMConverter[C, F], properties: ColumnProperty*)(implicit columnConverter: ColumnConverter[C], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

  67. def orm[C, F](columnName: String, fieldName: String, properties: ColumnProperty*)(implicit columnConverter: ColumnConverter[C], ormConverter: ORMConverter[C, F], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

  68. def orm[C, F](name: String, columnConverter: ColumnConverter[C], ormConverter: ORMConverter[C, F], properties: ColumnProperty*)(implicit columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

  69. def orm[C, F](name: String, columnConverter: ColumnConverter[C], properties: ColumnProperty*)(implicit ormConverter: ORMConverter[C, F], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

  70. def orm[C, F](name: String, properties: ColumnProperty*)(implicit columnConverter: ColumnConverter[C], ormConverter: ORMConverter[C, F], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

  71. def orm[C, F](columnName: String, fieldName: String, columnConverter: ColumnConverter[C], ormConverter: ORMConverter[C, F], properties: ColumnProperty*)(implicit columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

  72. def ormColumns: List[ORMColumn[T, _, _]]

  73. def persist(t: T): T

    Inserts or updates the supplied instance based on whether an id is assigned to the instance.

    Inserts or updates the supplied instance based on whether an id is assigned to the instance.

    t

    the instance to persist

    returns

    updated instance reflecting any changes resulting from the persist

    Definition Classes
    MappedTable
  74. val persisted: ModifiableProcessor[T]

    Fired immediate after successful persisting.

    Fired immediate after successful persisting. Persisted is called after insert, merge, and update.

    Definition Classes
    MappedTable
  75. def persistenceFor(caseClass: EnhancedClass): ORMPersistence[T]

    Attributes
    protected
  76. val persisting: ModifiableProcessor[T]

    Fired immediately before persisting an object to the database.

    Fired immediately before persisting an object to the database. The instance may be modified in the response. Persisting is called before insert, merge, and update.

    Definition Classes
    MappedTable
  77. lazy val primaryKeys: List[Column[_]]

    Definition Classes
    Table
  78. def primaryKeysFor(instance: T): List[ColumnValue[_]]

    Retrieves a list of ColumnValue entries representing the primary keys for this table and their values based upon the supplied instance.

    Retrieves a list of ColumnValue entries representing the primary keys for this table and their values based upon the supplied instance.

    returns

    List of primary keys tied to columns

    Definition Classes
    ORMTableMappedTable
  79. def prop[P <: TableProperty](propertyName: String): P

    Definition Classes
    Table
  80. def properties: Iterable[TableProperty]

    Definition Classes
    Table
  81. def props(properties: TableProperty*): Table

    Definition Classes
    Table
  82. lazy val q: Query

    Definition Classes
    ORMTableMappedTable
  83. val queried: ModifiableProcessor[T]

    Fired immediately after querying an instance.

    Fired immediately after querying an instance. Listeners have the ability to modify the resulting instance.

    Definition Classes
    MappedTable
  84. def query(query: Query): ORMResultsIterator[T]

    Queries the datastore for results based upon the supplied query.

    Queries the datastore for results based upon the supplied query.

    query

    the query to utilize

    returns

    iterator to cycle through instances derived from query result rows

    Definition Classes
    MappedTable
  85. def result2Object(result: QueryResult): T

    Responsible method for converting a QueryResult into an instance of T.

    Responsible method for converting a QueryResult into an instance of T.

    result

    representation of result as an object T

    returns

    T

    Definition Classes
    ORMTableMappedTable
  86. implicit def stringConverter: StringConverter.type

    Definition Classes
    Table
  87. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  88. lazy val tableName: String

    Definition Classes
    Table
  89. implicit val thisListenable: Listenable

    Definition Classes
    Listenable
  90. implicit def thisTable: Table

    Definition Classes
    Table
  91. implicit val timestamp2LongConverter: Timestamp2Long.type

  92. implicit def timestampConverter: TimestampConverter.type

    Definition Classes
    Table
  93. def toString(): String

    Definition Classes
    Table → AnyRef → Any
  94. def update(t: T): T

    Updates the provided instance to the database.

    Updates the provided instance to the database.

    t

    the instance to update

    returns

    updated instance reflecting any changes resulting from the update to the database

    Definition Classes
    MappedTable
  95. def updateCached(key: Any, instance: T): Unit

    Definition Classes
    MappedTable
  96. def updateWithId(t: T, id: Int): T

    Updates the supplied instance with a new id and returns the updated instance.

    Updates the supplied instance with a new id and returns the updated instance.

    t

    the instance to assign an id to

    id

    the id to be assigned

    returns

    a copy of the instance with the new id

    Definition Classes
    ORMTableMappedTable
  97. val updated: UnitProcessor[T]

    Fired immediately after successful update.

    Fired immediately after successful update.

    Definition Classes
    MappedTable
  98. val updating: ModifiableProcessor[T]

    Fired immediately before updating an object in the database.

    Fired immediately before updating an object in the database. The instance may be modified in the response.

    Definition Classes
    MappedTable
  99. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. implicit def wrappedStringConverter: WrappedStringConverter.type

    Definition Classes
    Table

Inherited from MappedTable[T]

Inherited from Listenable

Inherited from Table

Inherited from AnyRef

Inherited from Any

Ungrouped