Class

longevity.migrations.Migration

Builder

Related Doc: package Migration

Permalink

class Builder[M1, M2] extends AnyRef

a migration builder. the builder initially has no steps. add steps with methods create, drop, and update. once all the steps are added, build the Migration with method build.

M1

the initial version of the model - the one we are migrating from

M2

the final version of the model - the one we are migrating to

Source
Migration.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Builder(version1: Option[String], version2: String, config1: LongevityConfig, config2: LongevityConfig)(implicit arg0: ModelType[M1], arg1: ModelType[M2])

    Permalink

    version1

    the name of the version of the initial domain model. None indicates the initial domain model is unversioned. (the domain model will be unversioned if this is the first time you are doing a migration on this model.)

    version2

    the name of the version of the final domain model

    config1

    the configuration for the initial version of the model

    config2

    the typesafe configuration for the final version of the model

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to any2stringadd[Builder[M1, M2]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Builder[M1, M2], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to ArrowAssoc[Builder[M1, M2]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def build: Migration[M1, M2]

    Permalink

    creates and returns the migration

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def create[P2](implicit arg0: PEv[M2, P2]): Builder[M1, M2]

    Permalink

    adds a CreateStep to the migration steps

    adds a CreateStep to the migration steps

    P2

    the persistent type to add to the model

    returns

    this builder

  10. def drop[P1](implicit arg0: PEv[M1, P1]): Builder[M1, M2]

    Permalink

    adds a DropStep to the migration steps

    adds a DropStep to the migration steps

    P1

    the persistent type to drop from the model

    returns

    this builder

  11. def ensuring(cond: (Builder[M1, M2]) ⇒ Boolean, msg: ⇒ Any): Builder[M1, M2]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to Ensuring[Builder[M1, M2]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Builder[M1, M2]) ⇒ Boolean): Builder[M1, M2]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to Ensuring[Builder[M1, M2]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): Builder[M1, M2]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to Ensuring[Builder[M1, M2]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Builder[M1, M2]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to Ensuring[Builder[M1, M2]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to StringFormat[Builder[M1, M2]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def update[P1, P2](f: (P1) ⇒ P2)(implicit arg0: PEv[M1, P1], arg1: PEv[M2, P2]): Builder[M1, M2]

    Permalink

    adds a UpdateStep to the migration steps

    adds a UpdateStep to the migration steps

    P1

    the persistent type to migrate from the initial model

    P2

    the persistent type to migrat to the final model

    f

    a function to migrate a single persistent object from type P1 to type P2

    returns

    this builder

  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (Builder[M1, M2], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Builder[M1, M2] to ArrowAssoc[Builder[M1, M2]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Builder[M1, M2] to any2stringadd[Builder[M1, M2]]

Inherited by implicit conversion StringFormat from Builder[M1, M2] to StringFormat[Builder[M1, M2]]

Inherited by implicit conversion Ensuring from Builder[M1, M2] to Ensuring[Builder[M1, M2]]

Inherited by implicit conversion ArrowAssoc from Builder[M1, M2] to ArrowAssoc[Builder[M1, M2]]

Ungrouped