Packages

package orm

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class AlwaysOne[T](children: List[T]) extends ChildrenInSchema[T] with Product with Serializable
  2. trait AsDebugString[T] extends AnyRef
  3. case class BatchDetails(batchSize: Int, index: Int) extends Product with Serializable
  4. trait BuildOrmEntity[OrmEntity] extends (List[FieldType[_]], List[ChildEntity]) ⇒ OrmEntity
  5. sealed trait ChildArity extends AnyRef
  6. sealed trait ChildEntity extends OrmEntity
  7. sealed abstract class ChildrenInSchema[T] extends AnyRef
  8. case class EntityAndFieldsAndPath[E <: OrmEntity](entity: E, fieldsAndPath: FieldsAndPath) extends Product with Serializable
  9. case class EntityAndPath[E <: OrmEntity](entity: E, paths: Array[List[Int]]) extends Product with Serializable
  10. case class EntityStrategy[X](mainEntityFn: (MainEntity) ⇒ X, childFn: (OrmEntity) ⇒ (ChildEntity) ⇒ X) extends Product with Serializable
  11. 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

  12. trait FastReader[T] extends (MainEntity) ⇒ (Int) ⇒ Stream[T]
  13. trait FastReaderDal extends AnyRef
  14. class FastReaderImpl[T] extends FastReader[T]
  15. case class FieldType[T](name: String, typeName: String)(implicit writeToJson: WriteToJson[T], getFromJson: GetFromJson[T], classTag: ClassTag[T]) extends Product with Serializable
  16. case class FieldsAndPath(fieldType: List[FieldType[_]], path: Array[Array[Int]], indicies: Array[Int]) extends Product with Serializable
  17. case class FieldsWord[OrmEntity](nameAndTypes: Seq[String])(implicit validateAndBuild: BuildOrmEntity[OrmEntity]) extends OrmDslClass with Product with Serializable
  18. trait FindOrmEntityAndField[T] extends (T) ⇒ Option[(TableName, FieldType[_])]
  19. case class Keys(list: List[FieldType[_]]) extends Product with Serializable
  20. case class KeysAndIndex(list: List[(Int, FieldType[_])]) extends Product with Serializable
  21. case class MainEntity(tableName: TableName, alias: String, primaryKeyField: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends OrmEntity with Product with Serializable
  22. 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

  23. case class NumericKey[T](path: List[Int], index: Int, key: String, arity: ChildArity, children: NumericKeys[T], t: T) extends Product with Serializable
  24. case class NumericKeys[T](list: List[NumericKey[T]]) extends Product with Serializable
  25. case class OneToManyEntity(tableName: TableName, alias: String, primaryKeyField: Keys, parentId: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends ChildEntity with Product with Serializable
  26. 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

  27. case class OrmBatchConfig(dataSource: DataSource, batchSize: Int) extends Product with Serializable
  28. trait OrmDslClass extends AnyRef
  29. trait OrmEntity extends AnyRef
  30. trait OrmFactory extends AnyRef
  31. class OrmFactoryImpl extends OrmFactory
  32. trait OrmMaker[T] extends (MainEntity) ⇒ (Map[OrmEntity, List[List[AnyRef]]]) ⇒ Stream[T]
  33. class OrmMakerForArrayAny[T] extends OrmMaker[Array[Any]]
  34. trait OrmStrategies extends AnyRef
  35. case class SameIdEntity(tableName: TableName, alias: String, primaryKeyField: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable
  36. trait SchemaMapKey[T] extends AnyRef
  37. trait SingleChild extends ChildEntity
  38. case class TableAndField(tableName: TableName, fieldName: String) extends Product with Serializable
  39. case class TableName(tableName: String, description: String) extends Product with Serializable
  40. case class TablesAndFieldsAndPaths(map: Map[TableName, FieldsAndPath]) extends Product with Serializable
  41. trait ToFieldType[T] extends AnyRef
  42. trait ToWritableForm[T] extends (T) ⇒ List[(OrmEntity, List[List[AnyRef]])]
  43. trait Write[T] extends AnyRef
  44. class WriteOrm extends AnyRef
  45. case class Zero[T]() extends ChildrenInSchema[T] with Product with Serializable
  46. case class ZeroOrMore[T](children: List[T]) extends ChildrenInSchema[T] with Product with Serializable
  47. case class manyToOne(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[ManyToOneEntity] with Product with Serializable
  48. case class oneToMany(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[OneToManyEntity] with Product with Serializable
  49. case class orm(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[MainEntity] with Product with Serializable
  50. abstract class ormDslTable[OrmEntity] extends OrmDslClass
  51. case class sameId(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[SameIdEntity] with Product with Serializable

Value Members

  1. object AsDebugString
  2. object ChildArity
  3. object ChildEntity
  4. object EntityAndPath extends Serializable
  5. object EntityStrategy extends Serializable
  6. object FastOrmSql
  7. object FastReader
  8. object FastReaderDal
  9. object FieldType extends Serializable
  10. object Keys extends Serializable
  11. object ManyChildren extends ChildArity with Product with Serializable
  12. object NoChildren extends ChildArity with Product with Serializable
  13. object NumericKeys extends Serializable
  14. object OneChild extends ChildArity with Product with Serializable
  15. object OrmMaker
  16. object OrmStrategies extends OrmStrategies

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

  17. object TableAndField extends Serializable
  18. object ToFieldType

Ungrouped