Packages

package orm

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class AlwaysOne[Schema[_]](children: List[Schema[_]]) extends ChildrenInSchema[Schema] with Product with Serializable
  2. case class BatchDetails(batchSize: Int, index: Int, whereForTable: WhereForTable) extends Product with Serializable
  3. sealed trait BulkDataPointer extends AnyRef
  4. sealed trait ChildArity extends AnyRef
  5. trait ChildBulkDataPointer extends BulkDataPointer
  6. sealed trait ChildEntity extends OrmEntity
  7. trait ChildOrmBulkData[E] extends OrmBulkData[E]
  8. sealed abstract class ChildrenInSchema[Schema[_]] extends AnyRef
  9. case class EntityStrategy[X](mainEntityFn: (MainEntity) ⇒ X, childFn: (OrmEntity) ⇒ (ChildEntity) ⇒ X) extends Product with Serializable
  10. trait FastOrmSql extends AnyRef

    This is the layer of abstraction that needs to be rewritten for different databases.

    This is the layer of abstraction that needs to be rewritten for different databases. It's just a block of sql for each operation

  11. trait FastReader[T] extends (MainEntity) ⇒ (Int) ⇒ Stream[T]
  12. trait FastReaderDal extends AnyRef
  13. class FastReaderImpl[T] extends FastReader[T]
  14. trait FieldFilter[F[_]] extends AnyRef
  15. case class FieldType[T](name: String, typeName: String, numericSort: Boolean)(implicit writeToJson: WriteToJson[T], getFromJson: GetFromJson[T], classTag: ClassTag[T]) extends Product with Serializable
  16. case class FieldTypeAndIndex[T](fieldType: FieldType[T], index: Int) extends Product with Serializable
  17. trait FieldTypeToIndex extends AnyRef
  18. case class FoundChildBulkDataPointer(nth: Int, indexIntoBulkData: Int, parentId: Any, bulkData: ChildOrmBulkData[_], children: List[ChildBulkDataPointer]) extends ChildBulkDataPointer with Product with Serializable
  19. class GetKey extends (List[Any]) ⇒ Any
  20. case class IDWhereForTable[ID](idField: FieldType[ID], id: ID) extends WhereForTable with Product with Serializable
  21. trait IsLinkFieldFilter[F[_]] extends FieldFilter[F]
  22. trait IsObjectFieldFilter[F[_]] extends FieldFilter[F]
  23. trait IsSimpleFieldFilter[F[_]] extends FieldFilter[F]
  24. trait JsonToStream[Context, F[_], T] extends AnyRef
  25. trait JsonToStreamFor[Context, Schema[_]] extends AnyRef
  26. case class Keys(list: List[FieldType[_]]) extends Product with Serializable
  27. case class KeysAndIndex(list: List[(Int, FieldType[_])]) extends Product with Serializable
  28. case class MainBulkData(ormEntity: MainEntity, tableNameToData: Map[String, List[List[Any]]], children: List[ChildOrmBulkData[_]]) extends OrmBulkData[MainEntity] with Product with Serializable
  29. case class MainBulkDataPointer(nth: Int, bulkData: OrmBulkData[_], children: List[ChildBulkDataPointer]) extends BulkDataPointer with Product with Serializable
  30. case class MainEntity(tableName: TableName, alias: String, primaryKeyField: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends OrmEntity with Product with Serializable
  31. case class ManyToOneBulkData(parentEntity: OrmEntity, ormEntity: ManyToOneEntity, tableNameToData: Map[String, List[List[Any]]], children: List[ChildOrmBulkData[_]]) extends ChildOrmBulkData[ManyToOneEntity] with Product with Serializable
  32. case class ManyToOneEntity(tableName: TableName, alias: String, primaryKeyField: Keys, idInParent: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable

    this is typically a look up reference.

    this is typically a look up reference. It is very similar to 'oneToZeroOneEntity' except that many of the parent are likely to share the same value. Thus it won't be in sync

  33. case class NullBulkDataPointer(bulkData: ChildOrmBulkData[_], children: List[ChildBulkDataPointer]) extends ChildBulkDataPointer with Product with Serializable
  34. case class OneToManyBulkData(parentEntity: OrmEntity, ormEntity: OneToManyEntity, tableNameToData: Map[String, List[List[Any]]], children: List[ChildOrmBulkData[_]]) extends ChildOrmBulkData[OneToManyEntity] with Product with Serializable
  35. case class OneToManyEntity(tableName: TableName, alias: String, primaryKeyField: Keys, parentId: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends ChildEntity with Product with Serializable
  36. case class OneToZeroOneEntity(tableName: TableName, alias: String, primaryKeyField: Keys, idInParent: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable

    This will have zero or one entries for each item in the parent.

    This will have zero or one entries for each item in the parent. It will be in 'step' with it... allowing cursors to advance together

  37. case class OrmBatchConfig(dataSource: DataSource, batchSize: Int, whereForTable: WhereForTable = NullWhereForTable) extends Product with Serializable
  38. trait OrmBulkData[E] extends AnyRef
  39. trait OrmEntity extends FieldTypeToIndex
  40. trait OrmFactory[Schema[_]] extends AnyRef
  41. class OrmFactoryImpl[Context, Schema[_]] extends OrmFactory[Schema]
  42. trait OrmMaker[T] extends (MainEntity) ⇒ (Map[OrmEntity, List[List[AnyRef]]]) ⇒ Stream[T]
  43. trait OrmStrategies extends AnyRef
  44. case class PartitionedSchema[Schema[_]](key: String, links: List[Schema[_]], simple: List[Schema[_]], singleChildObjects: List[PartitionedSchema[Schema]], manyChildObjects: List[(TableName, PartitionedSchema[Schema])]) extends Product with Serializable
  45. trait Placeholder extends AnyRef
  46. case class SameIdBulkData(ormEntity: SameIdEntity, tableNameToData: Map[String, List[List[Any]]], children: List[ChildOrmBulkData[_]]) extends ChildOrmBulkData[SameIdEntity] with Product with Serializable
  47. case class SameIdEntity(tableName: TableName, alias: String, primaryKeyField: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable
  48. trait SchemaMapKey[Schema[_]] extends AnyRef

    THere is a schema of type Schema.

    THere is a schema of type Schema. Schema is not the data, is the structure of the data

    The type parameter is the type of the data in the field that the schema is pointing to. This is used for things like 'getting from database' and 'putting in json'.

    Because schemas hold other schemas, and I am not sure how to handle the schema object itself from a [T] perspective there is a fake T called Placeholder.

  49. trait SingleChild extends ChildEntity
  50. case class TableAndFieldType[T](tableName: TableName, fieldType: FieldType[T]) extends Product with Serializable
  51. case class TableAndFieldTypes[Context, T](tableName: TableName, fieldTypes: List[FieldType[_]])(implicit tx: ValueFromMultipleTableFields[Context, T]) extends Product with Serializable
  52. case class TableName(tableName: String, description: String) extends Product with Serializable
  53. trait TableNameForManySchema[Schema[_]] extends AnyRef
  54. trait ToFieldType[T] extends AnyRef
  55. trait ToTableAndFieldTypes[Context, Schema[_]] extends AnyRef
  56. trait ToWritableForm[T] extends (T) ⇒ List[(OrmEntity, List[List[AnyRef]])]
  57. trait ValueFromMultipleTableFields[Context, T] extends AnyRef
  58. trait WhereForTable extends SetParams[PreparedStatement]
  59. trait Write[T] extends AnyRef
  60. class WriteToJsonForSchema[Schema[_], Context] extends AnyRef
  61. case class Zero[Schema[_]]() extends ChildrenInSchema[Schema] with Product with Serializable
  62. case class ZeroOrMore[Schema[_]](children: List[Schema[_]]) extends ChildrenInSchema[Schema] with Product with Serializable

Value Members

  1. object BulkDataPointer
  2. object EntityStrategy extends Serializable
  3. object FastOrmSql
  4. object FastReader
  5. object FastReaderDal
  6. object FieldType extends Serializable
  7. object IsObjectFieldFilter
  8. object IsSimpleFieldFilter
  9. object JsonToStream
  10. object Keys extends Serializable
  11. object MainBulkData extends Serializable
  12. object ManyChildren extends ChildArity with Product with Serializable
  13. object NoChildren extends ChildArity with Product with Serializable
  14. object NullWhereForTable extends WhereForTable with Product with Serializable
  15. object OneChild extends ChildArity with Product with Serializable
  16. object OrmFactory
  17. object OrmMaker
  18. object OrmStrategies extends OrmStrategies

    This applies the sql defined in FastOrmSql to the entities in a composite entity

  19. object PartitionedSchema extends Serializable
  20. object SchemaMapKey
  21. object TableAndFieldType extends Serializable
  22. object TableNameForManySchema
  23. object ToFieldType
  24. object ValueFromMultipleTableFields

Ungrouped