package orm
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- case class BatchDetails(batchSize: Int, index: Int) extends Product with Serializable
- trait BuildOrmEntity[OrmEntity] extends (List[FieldType[_]], List[ChildEntity]) ⇒ OrmEntity
- sealed trait ChildEntity extends OrmEntity
- 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 FieldsWord[OrmEntity](nameAndTypes: Seq[String])(implicit validateAndBuild: BuildOrmEntity[OrmEntity]) extends OrmDslClass with Product with Serializable
- case class MainEntity(tableName: String, alias: String, primaryKeyField: FieldType[_], dataFields: List[FieldType[_]], children: List[ChildEntity]) extends OrmEntity with Product with Serializable
- case class ManyToOneEntity(tableName: String, alias: String, primaryKeyField: FieldType[_], idInParent: FieldType[_], dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable
- case class OneToManyEntity(tableName: String, alias: String, primaryKeyField: FieldType[_], parentId: FieldType[_], dataFields: List[FieldType[_]], children: List[ChildEntity]) extends ChildEntity with Product with Serializable
- case class OrmBatchConfig(dataSource: DataSource, batchSize: Int) extends Product with Serializable
- trait OrmDslClass extends AnyRef
- trait OrmEntity extends AnyRef
- trait OrmMaker[T] extends (MainEntity) ⇒ (Map[OrmEntity, List[List[AnyRef]]]) ⇒ Stream[T]
- trait OrmStrategies extends AnyRef
- case class SameIdEntity(tableName: String, alias: String, primaryKeyField: FieldType[_], dataFields: List[FieldType[_]], children: List[ChildEntity]) extends SingleChild with Product with Serializable
- trait SingleChild extends ChildEntity
- 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 manyToOne(tableName: String, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[ManyToOneEntity] with Product with Serializable
- case class oneToMany(tableName: String, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[OneToManyEntity] with Product with Serializable
- case class orm(tableName: String, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[MainEntity] with Product with Serializable
- abstract class ormDslTable[OrmEntity] extends OrmDslClass
- case class sameId(tableName: String, primaryKeyDefn: String, aliasOverride: String = "") extends ormDslTable[SameIdEntity] with Product with Serializable
Value Members
- object ChildEntity
- object EntityStrategy extends Serializable
- object FastOrmSql
- object FastReader
- object FastReaderDal
- object FieldType extends Serializable
- object OrmMaker
-
object
OrmStrategies extends OrmStrategies
This applies the sql defined in FastOrmSql to the entities in a composite entity
- object ToFieldType