5#define RUDIMENTS_MVC_H 1
7#include <rudiments/private/mvcincludes.h>
29 #include <rudiments/private/mvcsecurity.h>
58 #include <rudiments/private/httpbasicsecurity.h>
96 #include <rudiments/private/mvcproperties.h>
135 #include <rudiments/private/mvctier.h>
154 #include <rudiments/private/mvccontroller.h>
187 #include <rudiments/private/mvcview.h>
206 #include <rudiments/private/mvcservice.h>
225 #include <rudiments/private/mvcdao.h>
268 const char *message);
372 #include <rudiments/private/mvcresult.h>
443 const char *
const *values,
444 const char *
const *types)=0;
456 virtual bool doCreate(
const char *
const *columns,
457 const char *
const *values);
500 virtual bool doRead(
const char *criteria,
544 virtual bool doUpdate(
const char *
const * columns,
545 const char *
const *values,
546 const char *
const *types,
547 const char *criteria)=0;
562 virtual bool doUpdate(
const char *
const * columns,
563 const char *
const *values,
564 const char *criteria);
581 const char *criteria)=0;
697 virtual const char *deriveDataType(
const char *value);
700#include <rudiments/private/mvccrudinlines.h>
Definition collection.h:11
Definition dictionary.h:12
Definition dictionarycollection.h:13
void setRequest(httprequest *req)
const char * getUserName()
virtual ~httpbasicsecurity()
httprequest * getRequest()
Definition httprequest.h:12
Definition httpresponse.h:11
Definition linkedlist.h:47
Definition listcollection.h:37
mvccontroller()
Definition mvc.h:149
virtual ~mvccontroller()
Definition mvc.h:152
virtual int64_t getErrorCode()=0
virtual bool doCreate(jsondom *j)=0
virtual bool doCreate(dictionary< const char *, const char * > *kvp)=0
virtual scalarcollection< uint64_t > * getAffectedRowsScalar()=0
virtual bool doRead(jsondom *j)=0
virtual listcollection< const char * > * getFirstColumnList()=0
virtual bool doDelete(const char *criteria)=0
virtual listcollection< uint64_t > * getAffectedRowsList()=0
virtual dictionarycollection< const char *, uint64_t > * getAffectedRowsDictionary()=0
virtual tablecollection< const char * > * getResultSetTable()=0
virtual bool doUpdate(jsondom *j)=0
virtual bool doCreate(const char *const *columns, const char *const *values, const char *const *types)=0
virtual const char * getErrorMessage()=0
virtual bool doDelete(jsondom *j)=0
virtual bool doUpdate(const char *const *columns, const char *const *values, const char *const *types, const char *criteria)=0
virtual listcollection< const char * > * getFirstRowList()=0
virtual bool doUpdate(dictionary< const char *, const char * > *kvp, const char *criteria)=0
virtual scalarcollection< const char * > * getFirstFieldScalar()=0
virtual bool doRead(const char *criteria, const char *sort, uint64_t skip)=0
virtual tablecollection< uint64_t > * getAffectedRowsTable()=0
virtual dictionarycollection< const char *, const char * > * getFirstRowDictionary()=0
virtual ~mvcdao()
Definition mvc.h:223
mvcdao()
Definition mvc.h:220
const char * getValue(const char *property)
bool parseFile(const char *filename)
bool parseString(const char *string)
void setStatus(bool success, uint32_t code, const char *message)
ssize_t writeJson(output *out)
void setSuccess(bool success)
wastebasket * getWastebasket()
linkedlist< char * > * getKeys()
collection * getData(const char *key)
void setMessage(const char *message)
void setSuccess(uint32_t code, const char *message)
void setStatus(bool success, uint32_t code)
void setData(const char *key, collection *data)
ssize_t write(output *out)
void setStatus(bool success)
ssize_t writeJson(bool indent)
const char * getMessage()
ssize_t writeJson(output *out, bool indent)
void setFailed(uint32_t code, const char *message)
void attachData(const char *key, collection *data)
void setSuccess(uint32_t code)
void setFailed(uint32_t code)
void setCode(uint32_t code)
virtual ~mvcsecurity()
Definition mvc.h:23
virtual const char * getUserName()=0
mvcsecurity()
Definition mvc.h:20
virtual ~mvcservice()
Definition mvc.h:204
mvcservice()
Definition mvc.h:201
mvcproperties * getProperties()
mvcsecurity * getSecurity()
virtual const char * getType()
void setSecurity(mvcsecurity *sec)
void setProperties(mvcproperties *prop)
httpresponse * getResponse()
httprequest * getRequest()
void setRequest(httprequest *req)
void setResponse(httpresponse *resp)
Definition scalarcollection.h:13
Definition tablecollection.h:35
Definition wastebasket.h:55