Packages

case class OrmKeys[Schema[_]](links: List[OrmKey[Schema, _]], objects: List[OrmKey[Schema, _]], simple: List[OrmKey[Schema, _]]) extends Product with Serializable

The data in the database is based on tables The data we want in our json or objects is based on an objectgraph There has to be a mapping between the data in the database and the object graph: this is it

Example: We have a schema: main: key1 table1/field1 key2 table2/field1 child: childKey1 table1/field2 As can be seen there isn't a simple mapping

This heavily uses type classes, so you can use your own (perhaps existing) schema object. SchemaMapKey[Schema] -> This is how we know what keys exist and what children exist.

Utility putJson: Very useful if you are using APIs because it writes to an outputstream and is much less garbage/memory intensive than turning to a string first toJson: Nicer interface than putJson

Debugging: prettyPrint is really helpful for understanding the schema. It is intended for use in tests printArray prints the array of data retrieved from FastOrm in a way helpful for tests

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrmKeys
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OrmKeys(links: List[OrmKey[Schema, _]], objects: List[OrmKey[Schema, _]], simple: List[OrmKey[Schema, _]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def allKeys: List[OrmKey[Schema, _]]
  5. def asArray(a: Any, msg: ⇒ String): Array[Any]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def asList(a: Any, msg: ⇒ String): List[Array[Any]]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. def debugPrint(path: Array[Int], array: Array[Any]): Unit
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def findForT[T](t: Schema[T]): Option[OrmKey[Schema, _]]
  12. def findKeyForPath[T](path: Array[Int]): OrmKey[Schema, _]
  13. def findLastArray(path: Array[Int], array: Array[Any]): Array[Any]
  14. def findLastArrayForList(path: Array[Int], array: Array[Any]): Array[Any]
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val links: List[OrmKey[Schema, _]]
  18. val list: List[OrmKey[Schema, _]]
  19. def makeAndSetupArray: Array[Any]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def next(path: Array[Int], array: Array[Any]): Unit
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. val objects: List[OrmKey[Schema, _]]
  25. def prettyPrint(indent: String): String
  26. def printArray(prefix: String, a: Array[Any], strict: Boolean = true)(implicit asDebugString: AsDebugString[Schema]): List[String]
  27. def put(path: Array[Int], index: Int, array: Array[Any], data: Any): Unit
  28. def setup(array: Array[Any]): Array[Any]
  29. val simple: List[OrmKey[Schema, _]]
  30. val size: Int
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toJson[Context](c: Context, ar: Array[Any])(implicit ormKeyToJson: OrmKeysToJson[Context, Schema]): String
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def writeJsonPrimitive[Context](c: Context, ar: Array[Any], outputStream: OutputStream)(implicit ormKeyToJson: OrmKeysToJson[Context, Schema]): Unit

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped