Example #1
0
 /**
  * Method declaration
  *
  *
  * @throws Exception
  */
 public void rollback()
 {
     if (bDelete)
     {
         tTable.insertNoCheck(oRow, null, false);
     }
     else
     {
         tTable.deleteNoCheck(oRow, null, false);
     }
 }
Example #2
0
        /**
         * Method declaration
         *
         *
         * @param from
         *
         * @throws Exception
         */
        public void moveData(Table from)
        {
            Index index = from.getPrimaryIndex();
            Node  n     = index.first();

            while (n != null)
            {
                if (Trace.STOP)
                {
                    Trace.stop();
                }

                object[] o = n.getData();

                insertNoCheck(o, null);

                n = index.next(n);
            }

            index = getPrimaryIndex();
            n     = index.first();

            while (n != null)
            {
                if (Trace.STOP)
                {
                    Trace.stop();
                }

                object[] o = n.getData();

                from.deleteNoCheck(o, null);

                n = index.next(n);
            }
        }
Example #3
0
        /**
         * Method declaration
         *
         *
         * @param from
         *
         * @throws Exception
         */
        public void moveData(Table from)
        {
            Index index = from.getPrimaryIndex();
            Node  n = index.first();

            while (n != null)
            {
                if (Trace.STOP)
                {
                    Trace.stop();
                }

                object[] o = n.getData();

                insertNoCheck(o, null);

                n = index.next(n);
            }

            index = getPrimaryIndex();
            n = index.first();

            while (n != null)
            {
                if (Trace.STOP)
                {
                    Trace.stop();
                }

                object[] o = n.getData();

                from.deleteNoCheck(o, null);

                n = index.next(n);
            }
        }