Ejemplo n.º 1
0
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((short[])buf[0])[0]   = rslt.getShort(1);
                ((long[])buf[1])[0]    = rslt.getLong(2);
                ((decimal[])buf[2])[0] = rslt.getDecimal(3);
                ((short[])buf[3])[0]   = rslt.getShort(4);
                break;

            case 1:
                ((short[])buf[0])[0]   = rslt.getShort(1);
                ((long[])buf[1])[0]    = rslt.getLong(2);
                ((decimal[])buf[2])[0] = rslt.getDecimal(3);
                ((short[])buf[3])[0]   = rslt.getShort(4);
                break;

            case 2:
                ((short[])buf[0])[0]   = rslt.getShort(1);
                ((long[])buf[1])[0]    = rslt.getLong(2);
                ((decimal[])buf[2])[0] = rslt.getDecimal(3);
                ((short[])buf[3])[0]   = rslt.getShort(4);
                break;

            case 3:
                ((short[])buf[0])[0]   = rslt.getShort(1);
                ((long[])buf[1])[0]    = rslt.getLong(2);
                ((decimal[])buf[2])[0] = rslt.getDecimal(3);
                ((short[])buf[3])[0]   = rslt.getShort(4);
                break;
            }
        }
Ejemplo n.º 2
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((decimal[])buf[0])[0]  = rslt.getDecimal(1);
         ((DateTime[])buf[1])[0] = rslt.getGXDate(2);
         ((DateTime[])buf[2])[0] = rslt.getGXDate(3);
         ((decimal[])buf[3])[0]  = rslt.getDecimal(4);
         ((short[])buf[4])[0]    = rslt.getShort(5);
         return;
     }
 }
Ejemplo n.º 3
0
        public void getResults(int cursor,
                               IFieldGetter rslt,
                               Object[] buf)
        {
            switch (cursor)
            {
            case 0:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((bool[])buf[2])[0]    = rslt.wasNull(2);
                ((long[])buf[3])[0]    = rslt.getLong(3);
                ((bool[])buf[4])[0]    = rslt.wasNull(3);
                ((decimal[])buf[5])[0] = rslt.getDecimal(4);
                ((short[])buf[6])[0]   = rslt.getShort(5);
                ((short[])buf[7])[0]   = rslt.getShort(6);
                break;

            case 1:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((String[])buf[1])[0]  = rslt.getVarchar(2);
                ((bool[])buf[2])[0]    = rslt.wasNull(2);
                ((long[])buf[3])[0]    = rslt.getLong(3);
                ((bool[])buf[4])[0]    = rslt.wasNull(3);
                ((decimal[])buf[5])[0] = rslt.getDecimal(4);
                ((short[])buf[6])[0]   = rslt.getShort(5);
                ((short[])buf[7])[0]   = rslt.getShort(6);
                break;

            case 2:
                ((String[])buf[0])[0]  = rslt.getVarchar(1);
                ((decimal[])buf[1])[0] = rslt.getDecimal(2);
                ((short[])buf[2])[0]   = rslt.getShort(3);
                ((short[])buf[3])[0]   = rslt.getShort(4);
                break;
            }
        }
Ejemplo n.º 4
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((short[])buf[0])[0]    = rslt.getShort(1);
         ((String[])buf[1])[0]   = rslt.getVarchar(2);
         ((decimal[])buf[2])[0]  = rslt.getDecimal(3);
         ((bool[])buf[3])[0]     = rslt.getBool(4);
         ((short[])buf[4])[0]    = rslt.getShort(5);
         ((String[])buf[5])[0]   = rslt.getVarchar(6);
         ((DateTime[])buf[6])[0] = rslt.getGXDate(7);
         ((DateTime[])buf[7])[0] = rslt.getGXDate(8);
         return;
     }
 }