示例#1
0
 /**
  * Method declaration
  *
  *
  * @throws Exception
  */
 public void rollback()
 {
     if (bDelete)
     {
         tTable.insertNoCheck(oRow, null, false);
     }
     else
     {
         tTable.deleteNoCheck(oRow, null, false);
     }
 }
示例#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);
            }
        }
示例#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);
            }
        }