19 #ifndef HUGO_TRANSACTIONS_HPP 
   20 #define HUGO_TRANSACTIONS_HPP 
   24 #include <HugoCalculator.hpp> 
   25 #include <HugoOperations.hpp> 
   36                 bool allowConstraintViolation = 
true,
 
   38                 bool oneTrans = 
false,
 
   42   int loadTableStartFrom(
Ndb*, 
 
   46                          bool allowConstraintViolation = 
true,
 
   48                          bool oneTrans = 
false,
 
   73   int pkReadUnlockRecords(
Ndb*,
 
   83   int scanUpdateRecords(
Ndb*, 
 
   88   int scanUpdateRecords1(
Ndb*, 
 
   92   int scanUpdateRecords2(
Ndb*, 
 
   96   int scanUpdateRecords3(
Ndb*, 
 
  101   int pkUpdateRecords(
Ndb*, 
 
  105   int pkInterpretedUpdateRecords(
Ndb*, 
 
  108   int pkDelRecords(
Ndb*, 
 
  111                    bool allowConstraintViolation = 
true,
 
  114   int pkRefreshRecords(
Ndb*, 
int startFrom, 
int count = 1, 
int batch = 1);
 
  116   int lockRecords(
Ndb*,
 
  118                   int percentToLock = 1,
 
  119                   int lockTime = 1000);
 
  124   int fillTableStartFrom(
Ndb*, 
int startFrom, 
int batch=512);
 
  130                        const char * idxName,
 
  134   int indexUpdateRecords(
Ndb*,
 
  135                          const char * idxName,
 
  139   void setRetryMax(
int retryMax = 100) { m_retryMax = retryMax; }
 
  146   void setThrInfo(
int thr_count, 
int thr_no) {
 
  147     m_thr_count = thr_count;
 
  153   int m_defaultScanUpdateMethod;