Loading ndb/include/ndbapi/Ndb.hpp +208 −222 File changed.Preview size limit exceeded, changes collapsed. Show changes ndb/include/ndbapi/NdbConnection.hpp +23 −11 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ class Ndb; class NdbBlob; #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // to be documented later /** * NdbAsynchCallback functions are used when executing asynchronous * transactions (using NdbConnection::executeAsynchPrepare, or Loading @@ -39,6 +41,7 @@ class NdbBlob; * See @ref secAsync for more information. */ typedef void (* NdbAsynchCallback)(int, NdbConnection*, void*); #endif /** * Commit type of transaction Loading Loading @@ -184,7 +187,8 @@ public: * @note All operations within the same transaction need to * be initialized with this method. * * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable) * @param aTable * A table object (fetched by NdbDictionary::Dictionary::getTable) * @return Pointer to an NdbOperation object if successful, otherwise NULL. */ NdbOperation* getNdbOperation(const NdbDictionary::Table * aTable); Loading @@ -204,7 +208,8 @@ public: * get the NdbConnection object which * was fetched by startTransaction pointing to this operation. * * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable) * @param aTable * A table object (fetched by NdbDictionary::Dictionary::getTable) * @return pointer to an NdbOperation object if successful, otherwise NULL */ NdbScanOperation* getNdbScanOperation(const NdbDictionary::Table * aTable); Loading @@ -226,11 +231,14 @@ public: * get the NdbConnection object which * was fetched by startTransaction pointing to this operation. * * @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable). * @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable). * @return pointer to an NdbOperation object if successful, otherwise NULL */ NdbIndexScanOperation* getNdbIndexScanOperation(const NdbDictionary::Index * anIndex, NdbIndexScanOperation* getNdbIndexScanOperation (const NdbDictionary::Index * anIndex, const NdbDictionary::Table * aTable); /** Loading @@ -251,8 +259,10 @@ public: * get the NdbConnection object that * was fetched by startTransaction pointing to this operation. * * @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable). * @param anIndex * An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable * A table object (fetched by NdbDictionary::Dictionary::getTable). * @return Pointer to an NdbIndexOperation object if * successful, otherwise NULL */ Loading Loading @@ -289,6 +299,8 @@ public: AbortOption abortOption = AbortOnError, int force = 0 ); #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // to be documented later /** * Prepare an asynchronous transaction. * Loading Loading @@ -334,7 +346,7 @@ public: NdbAsynchCallback aCallback, void* anyObject, AbortOption abortOption = AbortOnError); #endif /** * Refresh * Update timeout counter of this transaction Loading ndb/include/ndbapi/NdbDictionary.hpp +2 −7 Original line number Diff line number Diff line Loading @@ -373,16 +373,11 @@ public: #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL const Table * getBlobTable() const; /** * @name ODBC Specific methods * @{ */ void setAutoIncrement(bool); bool getAutoIncrement() const; void setAutoIncrementInitialValue(Uint64 val); void setDefaultValue(const char*); const char* getDefaultValue() const; /** @} *******************************************************************/ static const Column * FRAGMENT; static const Column * ROW_COUNT; Loading ndb/include/ndbapi/NdbEventOperation.hpp +14 −3 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class NdbEventOperationImpl; * * Known issues: * * When several NdbEventOperation s are tied to the same event in the same * When several NdbEventOperation's are tied to the same event in the same * process they will share the circular buffer. The BufferLength will then * be the same for all and decided by the first NdbEventOperation * instantiation. Just make sure to instantiate the "largest" one first. Loading @@ -84,7 +84,7 @@ class NdbEventOperationImpl; * replica. If a node fails events will not be received twice anymore * for data in corresponding fragment. Will be optimized in later versions. * * If a nodefailiure has occured not all events will be recieved * If a node failure has occured not all events will be recieved * anymore. Drop NdbEventOperation and Create again after nodes are up * again. Will be fixed in later versions. * Loading @@ -97,7 +97,7 @@ class NdbEventOperationImpl; * * Useful API programs: * * select_all -d sys 'NDB$EVENTS_0' * ndb_select_all -d sys 'NDB$EVENTS_0' * Will show contents in the system table containing created events. * */ Loading Loading @@ -187,8 +187,19 @@ public: */ NdbDictionary::Event::TableEvent getEventType(); /** * */ Uint32 getGCI(); /** * */ Uint32 getLatestGCI(); /* * */ void print(); private: Loading Loading
ndb/include/ndbapi/Ndb.hpp +208 −222 File changed.Preview size limit exceeded, changes collapsed. Show changes
ndb/include/ndbapi/NdbConnection.hpp +23 −11 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ class Ndb; class NdbBlob; #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // to be documented later /** * NdbAsynchCallback functions are used when executing asynchronous * transactions (using NdbConnection::executeAsynchPrepare, or Loading @@ -39,6 +41,7 @@ class NdbBlob; * See @ref secAsync for more information. */ typedef void (* NdbAsynchCallback)(int, NdbConnection*, void*); #endif /** * Commit type of transaction Loading Loading @@ -184,7 +187,8 @@ public: * @note All operations within the same transaction need to * be initialized with this method. * * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable) * @param aTable * A table object (fetched by NdbDictionary::Dictionary::getTable) * @return Pointer to an NdbOperation object if successful, otherwise NULL. */ NdbOperation* getNdbOperation(const NdbDictionary::Table * aTable); Loading @@ -204,7 +208,8 @@ public: * get the NdbConnection object which * was fetched by startTransaction pointing to this operation. * * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable) * @param aTable * A table object (fetched by NdbDictionary::Dictionary::getTable) * @return pointer to an NdbOperation object if successful, otherwise NULL */ NdbScanOperation* getNdbScanOperation(const NdbDictionary::Table * aTable); Loading @@ -226,11 +231,14 @@ public: * get the NdbConnection object which * was fetched by startTransaction pointing to this operation. * * @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable). * @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable). * @return pointer to an NdbOperation object if successful, otherwise NULL */ NdbIndexScanOperation* getNdbIndexScanOperation(const NdbDictionary::Index * anIndex, NdbIndexScanOperation* getNdbIndexScanOperation (const NdbDictionary::Index * anIndex, const NdbDictionary::Table * aTable); /** Loading @@ -251,8 +259,10 @@ public: * get the NdbConnection object that * was fetched by startTransaction pointing to this operation. * * @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable). * @param anIndex * An index object (fetched by NdbDictionary::Dictionary::getIndex). * @param aTable * A table object (fetched by NdbDictionary::Dictionary::getTable). * @return Pointer to an NdbIndexOperation object if * successful, otherwise NULL */ Loading Loading @@ -289,6 +299,8 @@ public: AbortOption abortOption = AbortOnError, int force = 0 ); #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // to be documented later /** * Prepare an asynchronous transaction. * Loading Loading @@ -334,7 +346,7 @@ public: NdbAsynchCallback aCallback, void* anyObject, AbortOption abortOption = AbortOnError); #endif /** * Refresh * Update timeout counter of this transaction Loading
ndb/include/ndbapi/NdbDictionary.hpp +2 −7 Original line number Diff line number Diff line Loading @@ -373,16 +373,11 @@ public: #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL const Table * getBlobTable() const; /** * @name ODBC Specific methods * @{ */ void setAutoIncrement(bool); bool getAutoIncrement() const; void setAutoIncrementInitialValue(Uint64 val); void setDefaultValue(const char*); const char* getDefaultValue() const; /** @} *******************************************************************/ static const Column * FRAGMENT; static const Column * ROW_COUNT; Loading
ndb/include/ndbapi/NdbEventOperation.hpp +14 −3 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class NdbEventOperationImpl; * * Known issues: * * When several NdbEventOperation s are tied to the same event in the same * When several NdbEventOperation's are tied to the same event in the same * process they will share the circular buffer. The BufferLength will then * be the same for all and decided by the first NdbEventOperation * instantiation. Just make sure to instantiate the "largest" one first. Loading @@ -84,7 +84,7 @@ class NdbEventOperationImpl; * replica. If a node fails events will not be received twice anymore * for data in corresponding fragment. Will be optimized in later versions. * * If a nodefailiure has occured not all events will be recieved * If a node failure has occured not all events will be recieved * anymore. Drop NdbEventOperation and Create again after nodes are up * again. Will be fixed in later versions. * Loading @@ -97,7 +97,7 @@ class NdbEventOperationImpl; * * Useful API programs: * * select_all -d sys 'NDB$EVENTS_0' * ndb_select_all -d sys 'NDB$EVENTS_0' * Will show contents in the system table containing created events. * */ Loading Loading @@ -187,8 +187,19 @@ public: */ NdbDictionary::Event::TableEvent getEventType(); /** * */ Uint32 getGCI(); /** * */ Uint32 getLatestGCI(); /* * */ void print(); private: Loading