Skip to content

4. DAOHandlersProvider

shturec edited this page Feb 17, 2017 · 5 revisions

DAOHandlersProvider

Module: arestme/data_service

Using it

The purpose of this class is to adapt the HTTP Data Service protocol request context and response to the functional interface of daoism/DAO.

API

Properties

  • logger

    The logger instance for this DAOHandlersProvider instance

  • oHttpController arestme/data_service/DataService Object

    This is a back reference to the DataService instance that is using this DAOHandlersProvider. It is used mainly for utility functions such as sendError.

  • dao Object

    This is a daoism/DAO-like object on which this DAOHandlersProvider instance is built. The functions from this object will be invoked accordingly for the different handlers. The HandlersProvider#getHandlers functions will use roughly the following dao functions:

    • create -> insert,
    • update -> update,
    • remove -> remove,
    • query -> list,
    • get -> find,
    • count -> count,
    • associationList -> expand,
    • associationCreate -> insert*

Methods

  • getHandlers - see the HanldersProvider description for getHandlers