diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-12-23 13:43:54 +0100 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-12-23 13:43:54 +0100 |
commit | 04caec0b00441c92063553232ff763dd56db6a70 (patch) | |
tree | 8b20e1827956db984351dcc7c9e68f364863cfad | |
parent | 863276b3fa009b22df040d00c5b0a8c86344da52 (diff) | |
download | mariadb-git-04caec0b00441c92063553232ff763dd56db6a70.tar.gz |
fixed errors in the doxygen comments
-rw-r--r-- | ndb/include/ndbapi/Ndb.hpp | 40 | ||||
-rw-r--r-- | ndb/include/ndbapi/NdbBlob.hpp | 5 | ||||
-rw-r--r-- | ndb/include/ndbapi/NdbDictionary.hpp | 8 | ||||
-rw-r--r-- | ndb/include/ndbapi/NdbReceiver.hpp | 4 | ||||
-rw-r--r-- | ndb/include/ndbapi/NdbScanOperation.hpp | 12 | ||||
-rw-r--r-- | ndb/include/ndbapi/NdbTransaction.hpp | 4 |
6 files changed, 43 insertions, 30 deletions
diff --git a/ndb/include/ndbapi/Ndb.hpp b/ndb/include/ndbapi/Ndb.hpp index 86ef954e692..41ba014c063 100644 --- a/ndb/include/ndbapi/Ndb.hpp +++ b/ndb/include/ndbapi/Ndb.hpp @@ -52,12 +52,15 @@ The execute can be of two different types, <em>Commit</em> or <em>NoCommit</em>. +*/ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** (The execute can also be divided into three steps: prepare, send, and poll to get asynchronous transactions. More about this later.) +*/ #endif - +/** If the execute is of type NoCommit, then the application program executes part of a transaction, but without committing the transaction. @@ -91,22 +94,27 @@ To execute several parallel synchronous transactions, one can either use multiple Ndb objects in several threads or start multiple applications programs. - +*/ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** Another way to execute several parallel transactions is to use asynchronous transactions. +*/ #endif - +/** @section secNdbOperations Operations Each transaction (NdbTransaction object) consist of a list of operations (Ndb*Operation objects). +*/ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** Operations are of two different kinds: -# standard operations, and -# interpreted program operations. +*/ #endif - +/** <h3>Single row operations</h3> After the operation is created using NdbTransaction::getNdbOperation (or NdbTransaction::getNdbIndexOperation), @@ -208,8 +216,9 @@ Ndb::closeTransaction have been called. The result of reading data from an NdbRecAttr object before calling NdbTransaction::execute is undefined. - +*/ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** <h3>Interpreted Program Operations</h3> The following types of interpreted program operations exist: -# NdbOperation::interpretedUpdateTuple : @@ -270,8 +279,9 @@ There might be zero NdbOperation::getValue calls. -# The fifth step is possible subroutine definitions using NdbOperation::def_subroutine and NdbOperation::ret_sub. +*/ #endif - +/** @subsection secScan Scanning The most common use of interpreted programs is for scanning tables. Scanning is a search of all tuples in a table. @@ -386,8 +396,9 @@ See the scan example program in @ref ndbapi_scan.cppn for example usage of the new scan api. - +*/ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** <h3>Interpreted Programs</h3> Interpretation programs are executed in a register-based virtual machine. @@ -458,9 +469,11 @@ The parameter used by NdbOperation::def_subroutine should match the automatic numbering to make it easier to debug the interpreted program. +*/ #endif #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** @section secAsync Asynchronous Transactions The asynchronous interface is used to increase the speed of transaction executing by better utilizing the connection @@ -560,8 +573,10 @@ More about how transactions are send the NDB Kernel is available in section @ref secAdapt. +*/ #endif +/** @section secError Error Handling Errors can occur when @@ -1012,8 +1027,7 @@ public: Ndb(Ndb_cluster_connection *ndb_cluster_connection, const char* aCatalogName = "", const char* aSchemaName = "def"); -#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL - // depricated +#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED Ndb(const char* aCatalogName = "", const char* aSchemaName = "def"); #endif ~Ndb(); @@ -1091,8 +1105,7 @@ public: */ int init(int maxNoOfTransactions = 4); -#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL - // depricated +#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED /** * Wait for Ndb object to successfully set-up connections to * the NDB kernel. @@ -1230,8 +1243,9 @@ public: * * @note should be called after the transaction has completed, irrespective * of success or failure - * + */ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL + /** * @note It is not allowed to call Ndb::closeTransaction after sending the * transaction asynchronously with either * Ndb::sendPreparedTransactions or @@ -1240,8 +1254,8 @@ public: * outstanding transactions and wait until all of them * has completed before calling Ndb::closeTransaction). * If the transaction is not committed it will be aborted. -#endif */ +#endif void closeTransaction(NdbTransaction*); /** @} *********************************************************************/ diff --git a/ndb/include/ndbapi/NdbBlob.hpp b/ndb/include/ndbapi/NdbBlob.hpp index 0b77342a500..4bb1c74f6a2 100644 --- a/ndb/include/ndbapi/NdbBlob.hpp +++ b/ndb/include/ndbapi/NdbBlob.hpp @@ -88,10 +88,13 @@ class NdbColumnImpl; * - lock mode vs allowed operation is not checked * - too many pending blob ops can blow up i/o buffers * - table and its blob part tables are not created atomically + */ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL +/** * - there is no support for an asynchronous interface -#endif */ +#endif + class NdbBlob { public: /** diff --git a/ndb/include/ndbapi/NdbDictionary.hpp b/ndb/include/ndbapi/NdbDictionary.hpp index f160e39ae36..d146f709db9 100644 --- a/ndb/include/ndbapi/NdbDictionary.hpp +++ b/ndb/include/ndbapi/NdbDictionary.hpp @@ -693,22 +693,26 @@ public: */ unsigned getNoOfColumns() const; +#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED /** * Get the number of columns in the index * Depricated, use getNoOfColumns instead. */ int getNoOfIndexColumns() const; +#endif /** * Get a specific column in the index */ const Column * getColumn(unsigned no) const ; +#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED /** * Get a specific column name in the index * Depricated, use getColumn instead. */ const char * getIndexColumn(int no) const ; +#endif /** * Add a column to the index definition @@ -724,6 +728,7 @@ public: */ void addColumnName(const char * name); +#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED /** * Add a column name to the index definition * Note that the order of indexes will be in @@ -731,6 +736,7 @@ public: * Depricated, use addColumnName instead. */ void addIndexColumn(const char * name); +#endif /** * Add several column names to the index definition @@ -739,6 +745,7 @@ public: */ void addColumnNames(unsigned noOfNames, const char ** names); +#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED /** * Add several column names to the index definition * Note that the order of indexes will be in @@ -746,6 +753,7 @@ public: * Depricated, use addColumnNames instead. */ void addIndexColumns(int noOfNames, const char ** names); +#endif /** * Represents type of index diff --git a/ndb/include/ndbapi/NdbReceiver.hpp b/ndb/include/ndbapi/NdbReceiver.hpp index a02a162491d..3b7b1535b28 100644 --- a/ndb/include/ndbapi/NdbReceiver.hpp +++ b/ndb/include/ndbapi/NdbReceiver.hpp @@ -26,14 +26,12 @@ class NdbTransaction; class NdbReceiver { -#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL friend class Ndb; friend class NdbOperation; friend class NdbScanOperation; friend class NdbIndexOperation; friend class NdbIndexScanOperation; friend class NdbTransaction; -#endif public: enum ReceiverType { NDB_UNINITIALIZED, NDB_OPERATION = 1, @@ -147,5 +145,5 @@ NdbReceiver::execSCANOPCONF(Uint32 tcPtrI, Uint32 len, Uint32 rows){ return (tmp == len ? 1 : 0); } -#endif +#endif // DOXYGEN_SHOULD_SKIP_INTERNAL #endif diff --git a/ndb/include/ndbapi/NdbScanOperation.hpp b/ndb/include/ndbapi/NdbScanOperation.hpp index dd3d0e0001d..983aa51fbee 100644 --- a/ndb/include/ndbapi/NdbScanOperation.hpp +++ b/ndb/include/ndbapi/NdbScanOperation.hpp @@ -14,18 +14,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/***************************************************************************** - * Name: NdbScanOperation.hpp - * Include: - * Link: - * Author: Martin Sköld - * Date: 2002-04-01 - * Version: 0.1 - * Description: Table scan support - * Documentation: - * Adjust: 2002-04-01 Martin Sköld First version. - ****************************************************************************/ - #ifndef NdbScanOperation_H #define NdbScanOperation_H diff --git a/ndb/include/ndbapi/NdbTransaction.hpp b/ndb/include/ndbapi/NdbTransaction.hpp index 39e035217b3..a2008b80988 100644 --- a/ndb/include/ndbapi/NdbTransaction.hpp +++ b/ndb/include/ndbapi/NdbTransaction.hpp @@ -362,7 +362,9 @@ public: /** * Close transaction + */ #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL + /** * @note It is not allowed to call NdbTransaction::close after sending the * transaction asynchronously before the callback method has * been called. @@ -370,8 +372,8 @@ public: * outstanding transactions and wait until all of them * has completed before calling NdbTransaction::close). * If the transaction is not committed it will be aborted. -#endif */ +#endif void close(); /** |