class ModelType[M] extends AnyRef
a description of a project's domain model. contains a pool of all the persistent types in the model, as well as all the component types.
the model class M
is intended to be a phantom class, available in the root package of the
package structure where the domain model elements are defined. the ModelType
is intended to be
implicitly available within the domain model's companion object. this comes for free if you use
the longevity.model.annotations.domainModel
annotation on your model class M
.
- M
the model
- Annotations
- @throws( ... ) @throws( ... ) @throws( ... )
- Source
- ModelType.scala
- See also
longevity.model.annotations.domainModel
- Alphabetic
- By Inheritance
- ModelType
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ModelType(pTypes: Seq[PType[M, _]], cTypes: Seq[CType[M, _]] = Nil, kvTypes: Seq[KVType[M, _, _]] = Nil)
constructs a model type
constructs a model type
- pTypes
a complete sequence of the persistent types in the domain model.
- cTypes
a complete sequence of the component types within the domain model. defaults to empty
- kvTypes
a complete sequence of the key value types within the domain model. defaults to empty throws longevity.exceptions.model.DuplicatePTypesException when two
PTypes
refer tothe same persistent class throws longevity.exceptions.model.DuplicateCTypesException when twoCTypes
refer to the same component class throws longevity.exceptions.model.DuplicateKVTypesException when twoKVTypes
refer to the same component class
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (ModelType[M], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def ensuring(cond: (ModelType[M]) ⇒ Boolean, msg: ⇒ Any): ModelType[M]
- def ensuring(cond: (ModelType[M]) ⇒ Boolean): ModelType[M]
- def ensuring(cond: Boolean, msg: ⇒ Any): ModelType[M]
- def ensuring(cond: Boolean): ModelType[M]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ModelType → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (ModelType[M], B)