Trait/Object

json.tools

Migration

Related Docs: object Migration | package tools

Permalink

trait Migration[T] extends AnyRef

Represents a single migration to a specified version

T

The version type

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Migration
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def procedure(jObject: JObject): JObject

    Permalink

    The function that migrates the original JSON object

    The function that migrates the original JSON object

    jObject

    The original JSON object to be migrated

    returns

    The migrated JSON object

  2. abstract def version: T

    Permalink

    returns

    The migration version

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(proc: (JObject) ⇒ JObject): Migration[T]

    Permalink

    Used to chain Migration procedures/steps.

    Used to chain Migration procedures/steps.

    proc

    A Migration procedure that will further manipulate the JObject returned by this Migration's procedure.

    returns

    The new Migration

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  13. def moveFromChildToChild(childSrc: String, childDest: String, field: String, newField: String): Migration[T]

    Permalink

    Adds to this Migration, a step that moves a field from a child JSON object to another child JSON object and renames it.

    Adds to this Migration, a step that moves a field from a child JSON object to another child JSON object and renames it.

    childSrc

    The source child name

    childDest

    The destination child name

    field

    The original field name

    newField

    The new field name

    returns

    The new Migration

  14. def moveFromChildToParent(child: String, field: String, newField: String): Migration[T]

    Permalink

    Adds to this Migration, a step that moves a field from a child JSON object to the parent JSON object and renames it.

    Adds to this Migration, a step that moves a field from a child JSON object to the parent JSON object and renames it.

    child

    The child name

    field

    The original field name

    newField

    The new field name

    returns

    The new Migration

  15. def moveFromParentToChild(child: String, field: String, newField: String): Migration[T]

    Permalink

    Adds to this Migration, a step that moves a field from the parent JSON object to a child JSON object and renames it.

    Adds to this Migration, a step that moves a field from the parent JSON object to a child JSON object and renames it.

    child

    The child name

    field

    The original field name

    newField

    The new field name

    returns

    The new Migration

  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def removeFieldFromPath(path: List[String], field: String): Migration[T]

    Permalink

    Adds to this Migration, a step that removes a field from a specified path.

    Adds to this Migration, a step that removes a field from a specified path.

    path

    The path to the field

    field

    The name of the field to be removed

    returns

    The new Migration

  20. def renameField(field: String, newField: String): Migration[T]

    Permalink

    Adds to this Migration, a step that renames a field.

    Adds to this Migration, a step that renames a field.

    field

    The field name

    newField

    The new field name

    returns

    The new Migration

  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def transformField(field: String, newField: String)(proc: (JValue) ⇒ JValue = jValue => jValue): Migration[T]

    Permalink

    Adds to this Migration, a step that performs arbitrary manipulations of a field and renames it.

    Adds to this Migration, a step that performs arbitrary manipulations of a field and renames it.

    field

    The field name

    newField

    The new field name

    proc

    The procedure to perform

    returns

    The new Migration

  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped