package orm
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- case class AlwaysOne[T](children: List[T]) extends ChildrenInSchema[T] with Product with Serializable
- trait AsDebugString[T] extends AnyRef
- case class BatchDetails(batchSize: Int, index: Int) extends Product with Serializable
- trait BuildOrmEntity[OrmEntity] extends (List[FieldType[_]], List[ChildEntity]) ⇒ OrmEntity
- sealed trait ChildArity extends AnyRef
- sealed trait ChildEntity extends OrmEntity
- sealed abstract class ChildrenInSchema[T] extends AnyRef
- case class EntityAndFieldsAndPath[E <: OrmEntity](entity: E, fieldsAndPath: FieldsAndPath) extends Product with Serializable
- case class EntityAndPath[E <: OrmEntity](entity: E, paths: Array[List[Int]]) extends Product with Serializable
- case class EntityStrategy[X](mainEntityFn: (MainEntity) ⇒ X, childFn: (OrmEntity) ⇒ (ChildEntity) ⇒ X) extends Product with Serializable
-
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
- trait FastReader[T] extends (MainEntity) ⇒ (Int) ⇒ Stream[T]
- trait FastReaderDal extends AnyRef
- class FastReaderImpl[T] extends FastReader[T]
- case class FieldType[T](name: String, typeName: String)(implicit writeToJson: WriteToJson[T], getFromJson: GetFromJson[T], classTag: ClassTag[T]) extends Product with Serializable
- case class FieldsAndPath(fieldType: List[FieldType[_]], path: Array[Array[Int]], indicies: Array[Int]) extends Product with Serializable
- case class FieldsWord[OrmEntity](nameAndTypes: Seq[String])(implicit validateAndBuild: BuildOrmEntity[OrmEntity]) extends OrmDslClass with Product with Serializable
- trait FindOrmEntityAndField[T] extends (T) ⇒ Option[(TableName, FieldType[_])]
- case class Keys(list: List[FieldType[_]]) extends Product with Serializable
- case class KeysAndIndex(list: List[(Int, FieldType[_])]) extends Product with Serializable
- case class MainEntity(tableName: TableName, alias: String, primaryKeyField: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends OrmEntity with Product with Serializable
-
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
- case class NumericKey[T](path: List[Int], index: Int, key: String, arity: ChildArity, children: NumericKeys[T], t: T) extends Product with Serializable
- case class NumericKeys[T](list: List[NumericKey[T]]) extends Product with Serializable
- case class OneToManyEntity(tableName: TableName, alias: String, primaryKeyField: Keys, parentId: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends ChildEntity with Product with Serializable
-
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
- case class OrmBatchConfig(dataSource: DataSource, batchSize: Int) extends Product with Serializable
- trait OrmDslClass extends AnyRef
- trait OrmEntity extends AnyRef
- trait OrmFactory extends AnyRef
- class OrmFactoryImpl extends OrmFactory
- trait OrmMaker[T] extends (MainEntity) ⇒ (Map[OrmEntity, List[List[AnyRef]]]) ⇒ Stream[T]
- class OrmMakerForArrayAny[T] extends OrmMaker[Array[Any]]
- trait OrmStrategies extends AnyRef
- case class SameIdEntity(tableName: TableName, alias: String, primaryKeyField: Keys, dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable
- trait SchemaMapKey[T] extends AnyRef
- trait SingleChild extends ChildEntity
- case class TableAndField(tableName: TableName, fieldName: String) extends Product with Serializable
- case class TableName(tableName: String, description: String) extends Product with Serializable
- case class TablesAndFieldsAndPaths(map: Map[TableName, FieldsAndPath]) extends Product with Serializable
- trait ToFieldType[T] extends AnyRef
- trait ToWritableForm[T] extends (T) ⇒ List[(OrmEntity, List[List[AnyRef]])]
- trait Write[T] extends AnyRef
- class WriteOrm extends AnyRef
- case class Zero[T]() extends ChildrenInSchema[T] with Product with Serializable
- case class ZeroOrMore[T](children: List[T]) extends ChildrenInSchema[T] with Product with Serializable
- case class manyToOne(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[ManyToOneEntity] with Product with Serializable
- case class oneToMany(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[OneToManyEntity] with Product with Serializable
- case class orm(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[MainEntity] with Product with Serializable
- abstract class ormDslTable[OrmEntity] extends OrmDslClass
- case class sameId(tableName: TableName, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[SameIdEntity] with Product with Serializable
Value Members
- object AsDebugString
- object ChildArity
- object ChildEntity
- object EntityAndPath extends Serializable
- object EntityStrategy extends Serializable
- object FastOrmSql
- object FastReader
- object FastReaderDal
- object FieldType extends Serializable
- object Keys extends Serializable
- object ManyChildren extends ChildArity with Product with Serializable
- object NoChildren extends ChildArity with Product with Serializable
- object NumericKeys extends Serializable
- object OneChild extends ChildArity with Product with Serializable
- object OrmMaker
-
object
OrmStrategies extends OrmStrategies
This applies the sql defined in FastOrmSql to the entities in a composite entity
- object TableAndField extends Serializable
- object ToFieldType