com.outr.query.orm

PolymorphicORMTable

Related Doc: package orm

abstract class PolymorphicORMTable[T] extends ORMTable[T]

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

Instance Constructors

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

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

Abstract Value Members

  1. abstract def caseClasses: Vector[Class[_ <: T]]

  2. abstract def typeColumn: Column[Int]

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def *: List[Column[_]]

    Definition Classes
    Table
  4. final def ==(arg0: Any): Boolean

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

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

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

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

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

    Definition Classes
    Table
  10. implicit def bigDecimalConverter: BigDecimalDataType.type

    Definition Classes
    Table
  11. implicit def blobConverter: BlobDataType.type

    Definition Classes
    Table
  12. implicit def booleanConverter: BooleanDataType.type

    Definition Classes
    Table
  13. 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
  14. implicit def byteArrayConverter: ByteArrayDataType.type

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

    Definition Classes
    MappedTable
  16. 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

    Definition Classes
    PolymorphicORMTableORMTable
  17. lazy val clazz: EnhancedClass

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

    Definition Classes
    MappedTable
  19. def clone(): AnyRef

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

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

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

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

    Definition Classes
    Table
  24. val datastore: Datastore

    Definition Classes
    Table
  25. 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
  26. val deleted: UnitProcessor[T]

    Fired immediately after successful delete.

    Fired immediately after successful delete.

    Definition Classes
    MappedTable
  27. 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
  28. implicit def doubleConverter: DoubleDataType.type

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ORMTable
  39. 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
  40. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  41. 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
  42. final 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
  43. val inserted: UnitProcessor[T]

    Fired immediate after successful insert.

    Fired immediate after successful insert.

    Definition Classes
    MappedTable
  44. 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
  45. implicit def intConverter: IntDataType.type

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

    Definition Classes
    Any
  47. implicit def javaDoubleConverter: JavaDoubleDataType.type

    Definition Classes
    Table
  48. implicit def javaIntConverter: JavaIntDataType.type

    Definition Classes
    Table
  49. implicit def javaLongConverter: JavaLongDataType.type

    Definition Classes
    Table
  50. implicit def listString2StringConverter: ListStringConverter.type

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

    Definition Classes
    Listenable
  52. val listeners: Listeners

    Definition Classes
    Listenable
  53. implicit def longConverter: LongDataType.type

    Definition Classes
    Table
  54. implicit val manifest: Manifest[T]

    Definition Classes
    MappedTable
  55. lazy val many2Many: List[Column[_]]

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

    Definition Classes
    Table
  57. final 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
  58. val merged: UnitProcessor[T]

    Fired immediate after successful merge.

    Fired immediate after successful merge.

    Definition Classes
    MappedTable
  59. 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
  60. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  63. 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
    PolymorphicORMTableORMTableMappedTable
  64. lazy val one2Many: List[Column[_]]

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

    Definition Classes
    Table
  66. implicit val optionDouble2DoubleConverter: Option2ValueConverter[Double]

    Definition Classes
    ORMTable
  67. implicit val optionDouble2JavaDoubleConverter: ConvertingOption2ValueConverter[Double, Double]

    Definition Classes
    ORMTable
  68. implicit val optionInt2IntConverter: Option2ValueConverter[Int]

    Definition Classes
    ORMTable
  69. implicit val optionInt2JavaIntConverter: ConvertingOption2ValueConverter[Integer, Int]

    Definition Classes
    ORMTable
  70. implicit val optionLong2JavaLongConverter: ConvertingOption2ValueConverter[Long, Long]

    Definition Classes
    ORMTable
  71. implicit val optionLong2LongConverter: Option2ValueConverter[Long]

    Definition Classes
    ORMTable
  72. implicit val optionString2StringConverter: Option2ValueConverter[String]

    Definition Classes
    ORMTable
  73. def orm[C](name: String, columnConverter: DataType[C], properties: ColumnProperty*)(implicit manifest: Manifest[C]): Column[C]

    Definition Classes
    ORMTable
  74. def orm[C](columnName: String, fieldName: String, properties: ColumnProperty*)(implicit columnConverter: DataType[C], manifest: Manifest[C]): Column[C]

    Definition Classes
    ORMTable
  75. def orm[C](name: String, properties: ColumnProperty*)(implicit columnConverter: DataType[C], manifest: Manifest[C]): Column[C]

    Definition Classes
    ORMTable
  76. def orm[C, F](columnName: String, fieldName: String, ormConverter: ORMConverter[C, F], properties: ColumnProperty*)(implicit columnConverter: DataType[C], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

    Definition Classes
    ORMTable
  77. def orm[C, F](columnName: String, fieldName: String, properties: ColumnProperty*)(implicit columnConverter: DataType[C], ormConverter: ORMConverter[C, F], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

    Definition Classes
    ORMTable
  78. def orm[C, F](name: String, columnConverter: DataType[C], ormConverter: ORMConverter[C, F], properties: ColumnProperty*)(implicit columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

    Definition Classes
    ORMTable
  79. def orm[C, F](name: String, columnConverter: DataType[C], properties: ColumnProperty*)(implicit ormConverter: ORMConverter[C, F], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

    Definition Classes
    ORMTable
  80. def orm[C, F](name: String, properties: ColumnProperty*)(implicit columnConverter: DataType[C], ormConverter: ORMConverter[C, F], columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

    Definition Classes
    ORMTable
  81. def orm[C, F](columnName: String, fieldName: String, columnConverter: DataType[C], ormConverter: ORMConverter[C, F], properties: ColumnProperty*)(implicit columnManifest: Manifest[C], fieldManifest: Manifest[F]): Column[C]

    Definition Classes
    ORMTable
  82. def ormColumns: List[ORMColumn[T, _, _]]

    Definition Classes
    ORMTable
  83. 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
  84. val persistFailing: OptionProcessor[(T, Throwable), T]

    Fired if an exception is thrown during persistence (insert, update, or merge).

    Fired if an exception is thrown during persistence (insert, update, or merge). If Some(t) is returned the attempt is made another time with the updated value.

    Definition Classes
    MappedTable
  85. 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
  86. def persistenceFor(caseClass: EnhancedClass): ORMPersistence[T]

    Attributes
    protected
    Definition Classes
    ORMTable
  87. 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
  88. lazy val primaryKeys: List[Column[_]]

    Definition Classes
    Table
  89. 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
  90. def prop[P <: TableProperty](propertyName: String): P

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

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

    Definition Classes
    Table
  93. lazy val q: Query

    Generates a query that will pull back all necessary fields and joins to represent the instance.

    Generates a query that will pull back all necessary fields and joins to represent the instance.

    Definition Classes
    ORMTableMappedTable
  94. 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
  95. def query(query: Query = q): 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
  96. 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
  97. implicit def stringConverter: StringDataType.type

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

    Definition Classes
    AnyRef
  99. lazy val tableName: String

    Definition Classes
    Table
  100. implicit val thisListenable: Listenable

    Definition Classes
    Listenable
  101. implicit def thisTable: Table

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

    Definition Classes
    ORMTable
  103. implicit def timestampConverter: TimestampDataType.type

    Definition Classes
    Table
  104. def toString(): String

    Definition Classes
    Table → AnyRef → Any
  105. final 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
  106. def updateCached(key: Any, instance: T): Unit

    Definition Classes
    MappedTable
  107. 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
  108. val updated: UnitProcessor[T]

    Fired immediately after successful update.

    Fired immediately after successful update.

    Definition Classes
    MappedTable
  109. 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
  110. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  113. implicit def wrappedStringConverter: WrappedStringDataType.type

    Definition Classes
    Table

Inherited from ORMTable[T]

Inherited from MappedTable[T]

Inherited from Listenable

Inherited from Table

Inherited from AnyRef

Inherited from Any

Ungrouped