Class Type<T>Abstract

Type Parameters

  • T

Hierarchy

Constructors

  • Type Parameters

    • T

    Parameters

    • ref: string
    • Optional typeConstructor: Class<T>

    Returns Type<T>

Properties

_typeConstructor?: Class<T>
name: string
ref: string

Accessors

  • get isBasic(): boolean
  • Returns boolean

  • get isEmbeddable(): boolean
  • Returns boolean

  • get isEntity(): boolean
  • Returns boolean

  • get isMappedSuperclass(): boolean
  • Returns boolean

  • get persistenceType(): number
  • The persistent type of this type

    Returns number

  • get typeConstructor(): Class<T>
  • The type constructor of this type

    Returns Class<T>

  • set typeConstructor(typeConstructor: Class<T>): void
  • Parameters

    • typeConstructor: Class<T>

      sets the type constructor of this type if it is not already set

    Returns void

Methods

  • Merge the json data into the current object instance and returns the merged object

    Returns

    The merged object instance

    Parameters

    • state: ManagedState

      The root object state

    • jsonValue: Json

      The json data to merge

    • currentValue: null | T

      The object where the jsonObject will be merged into, if the current object is null, a new instance will be created

    • options: {
          onlyMetadata?: boolean;
          persisting: boolean;
      }

      additional options which are applied through the conversion

      • Optional onlyMetadata?: boolean

        Indicates that only the metadata should be updated of the object

      • persisting: boolean

        indicates if the current state will be persisted. Used to update the internal change tracking state of collections and mark the object persistent or dirty afterwards

    Returns null | T

  • Converts the given object to json

    Returns

    The converted object as json

    Parameters

    • state: ManagedState

      The root object state

    • object: null | T

      The object to convert

    • options: {
          depth?: number | boolean;
          excludeMetadata?: boolean;
          persisting: boolean;
      }

      additional options which are applied through the conversion

      • Optional depth?: number | boolean

        The object depth to serialize

      • Optional excludeMetadata?: boolean

        Indicates that no metadata should be exposed on the generated json

      • persisting: boolean

        indicates if the current state will be persisted. Used to update the internal change tracking state of collections and mark the object persistent if its true

    Returns Json

Generated using TypeDoc