MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbIndexOperation.hpp
1 /*
2  Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef NdbIndexOperation_H
19 #define NdbIndexOperation_H
20 
21 #include "NdbOperation.hpp"
22 
23 class Index;
24 class NdbResultSet;
25 
31 {
32 #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
33  friend class Ndb;
34  friend class NdbTransaction;
35 #endif
36 
37 public:
44  int insertTuple();
45 
53  int readTuple(LockMode);
54 
55 #ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED
56 
63  int readTuple();
64 
73  int readTupleExclusive();
74 
92  int simpleRead();
93 
106  int dirtyRead();
107 
108  int committedRead();
109 #endif
110 
120  int updateTuple();
121 
131  int deleteTuple();
132 
136  const NdbDictionary::Index * getIndex() const;
137 
138 #ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED
139 
148  int dirtyUpdate();
149 #endif
150 
151 #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
152 
164 
171 #endif
172 
175 private:
176  NdbIndexOperation(Ndb* aNdb);
178 
179  int receiveTCINDXREF(const NdbApiSignal* aSignal);
180 
181  // Overloaded methods from NdbCursorOperation
182  int indxInit(const class NdbIndexImpl* anIndex,
183  const class NdbTableImpl* aTable,
185  bool useRec);
186 
187  // Private attributes
188  const NdbIndexImpl* m_theIndex;
189  friend struct Ndb_free_list_t<NdbIndexOperation>;
190 };
191 
192 #endif