Class BasicType<T>

Type Parameters

  • T

Hierarchy

Constructors

  • Creates a new instance of a native db type

    Type Parameters

    • T

    Parameters

    • ref: string

      The db ref of this type

    • typeConstructor: Class<T>

      The javascript class of this type

    • Optional noResolving: boolean

      Indicates if this type is not the main type of the constructor

    Returns BasicType<T>

Properties

_typeConstructor?: Class<T>
name: string
noResolving: boolean

Indicates if this type is not the main type of the constructor

ref: string
Boolean: BooleanType<T> = ...
Date: DateType<T> = ...
DateTime: DateTimeType<T> = ...
Double: DoubleType<T> = ...
File: FileType<T> = ...
GeoPoint: GeoPointType<T> = ...
Integer: IntegerType<T> = ...
JsonArray: JsonArrayType<T> = ...
JsonObject: JsonObjectType<T> = ...
String: StringType<T> = ...
Time: TimeType<T> = ...

Accessors

  • get isBasic(): boolean
  • Returns boolean

  • get isEmbeddable(): boolean
  • Returns boolean

  • get isEntity(): boolean
  • Returns boolean

  • get isMappedSuperclass(): boolean
  • Returns boolean

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

    Returns PersistenceType

  • 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

    • json: 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

    Returns null | T

  • Converts the given object to json

    Returns

    The converted object as json

    Parameters

    • state: ManagedState

      The root object state

    • currentValue: null | T

      The object to convert

    Returns Json

  • Returns string

Generated using TypeDoc