Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseDAO

A base DAO useful for subclassing to create real DAOs. This differs from the AbstractDAO in that it doesn't have a "default" interface for dealing with model objects, it only provides core conveniences.

Hierarchy

Index

Constructors

constructor

Accessors

http

server

Methods

Protected getCount

  • getCount(data: any): number
  • A convenience method to make it easy for implementers to extract the count (or totalCount) values from response data.

    Parameters

    • data: any

    Returns number

Protected onSetServer

  • Called whenever the OpenNMS server has changed.

    Parameters

    Returns void

Protected toDate

  • toDate(from: any): Moment | undefined
  • Convert the given value to a date, or undefined if it cannot be converted.

    Parameters

    • from: any

    Returns Moment | undefined

Protected toNumber

  • toNumber(from: any): number | undefined
  • Convert the given value to a number, or undefined if it cannot be converted.

    Parameters

    • from: any

    Returns number | undefined

Protected useJson

  • useJson(): boolean
  • Whether or not to use JSON when making ReST requests.

    Returns boolean

Generated using TypeDoc