21 #include <NdbError.hpp>
22 #include <portlib/NdbMem.h>
23 #include "NdbEventOperationImpl.hpp"
24 #include "NdbDictionaryImpl.hpp"
26 NdbEventOperation::NdbEventOperation(
Ndb *theNdb,
const char* eventName)
31 NdbEventOperation::~NdbEventOperation()
45 m_impl.m_mergeEvents = flag;
51 return m_impl.getValue(colName, aValue, 0);
57 return m_impl.getValue(colName, aValue, 1);
63 return m_impl.getBlobHandle(colName, 0);
67 NdbEventOperation::getPreBlobHandle(
const char *colName)
69 return m_impl.getBlobHandle(colName, 1);
79 NdbEventOperation::isOverrun()
const
91 NdbEventOperation::clearError()
93 m_impl.m_has_error= 0;
97 NdbEventOperation::hasError()
const
99 return m_impl.m_has_error;
125 return m_impl.getGCI();
137 return m_impl.getLatestGCI();
149 return m_impl.getEventType();
153 NdbEventOperation::print()
163 return m_impl.m_eventImpl->m_tableImpl->m_facade;
167 return m_impl.m_eventImpl->m_facade;
169 const NdbRecAttr* NdbEventOperation::getFirstPkAttr()
const
171 return m_impl.theFirstPkAttrs[0];
173 const NdbRecAttr* NdbEventOperation::getFirstPkPreAttr()
const
175 return m_impl.theFirstPkAttrs[1];
177 const NdbRecAttr* NdbEventOperation::getFirstDataAttr()
const
179 return m_impl.theFirstDataAttrs[0];
181 const NdbRecAttr* NdbEventOperation::getFirstDataPreAttr()
const
183 return m_impl.theFirstDataAttrs[1];
198 void NdbEventOperation::setCustomData(
void * data)
200 m_impl.m_custom_data= data;
202 void * NdbEventOperation::getCustomData()
const
204 return m_impl.m_custom_data;
207 int NdbEventOperation::getReqNodeId()
const
209 return SubTableData::getReqNodeId(m_impl.m_data_item->sdata->requestInfo);
212 int NdbEventOperation::getNdbdNodeId()
const
214 return SubTableData::getNdbdNodeId(m_impl.m_data_item->sdata->requestInfo);