コード例 #1
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((String[])buf[0])[0]    = rslt.getVarchar(1);
         ((bool[])buf[1])[0]      = rslt.wasNull(1);
         ((long[])buf[2])[0]      = rslt.getLong(2);
         ((bool[])buf[3])[0]      = rslt.wasNull(2);
         ((String[])buf[4])[0]    = rslt.getVarchar(3);
         ((bool[])buf[5])[0]      = rslt.wasNull(3);
         ((short[])buf[6])[0]     = rslt.getShort(4);
         ((bool[])buf[7])[0]      = rslt.wasNull(4);
         ((short[])buf[8])[0]     = rslt.getShort(5);
         ((bool[])buf[9])[0]      = rslt.wasNull(5);
         ((short[])buf[10])[0]    = rslt.getShort(6);
         ((bool[])buf[11])[0]     = rslt.wasNull(6);
         ((short[])buf[12])[0]    = rslt.getShort(7);
         ((bool[])buf[13])[0]     = rslt.wasNull(7);
         ((String[])buf[14])[0]   = rslt.getVarchar(8);
         ((bool[])buf[15])[0]     = rslt.wasNull(8);
         ((String[])buf[16])[0]   = rslt.getVarchar(9);
         ((bool[])buf[17])[0]     = rslt.wasNull(9);
         ((long[])buf[18])[0]     = rslt.getLong(10);
         ((DateTime[])buf[19])[0] = rslt.getGXDateTime(11);
         ((bool[])buf[20])[0]     = rslt.wasNull(11);
         return;
     }
 }
コード例 #2
0
 public void getResults(int cursor,
                        IFieldGetter rslt,
                        Object[] buf)
 {
     switch (cursor)
     {
     case 0:
         ((DateTime[])buf[0])[0] = rslt.getGXDateTime(1);
         ((bool[])buf[1])[0]     = rslt.wasNull(1);
         ((String[])buf[2])[0]   = rslt.getVarchar(2);
         ((bool[])buf[3])[0]     = rslt.wasNull(2);
         ((long[])buf[4])[0]     = rslt.getLong(3);
         return;
     }
 }