Exemplo n.º 1
0
 /**
  * @param idx
  * @return com.zt.db.RecordMetaData
  * @roseuid 3E5D800400FF
  */
 public RecordMetaData getMetaData(int idx) {
   Collection cl = metadata.values();
   for (Iterator it = cl.iterator(); it.hasNext(); ) {
     RecordMetaData rmd = (RecordMetaData) it.next();
     if (rmd.getSeqno() == idx) return rmd;
   }
   return null;
 }
Exemplo n.º 2
0
 /**
  * 返回制定栏位的序号
  *
  * @param name
  * @return int
  * @roseuid 3E5D8A2B00D4
  */
 public int findColumn(String name) {
   RecordMetaData rmd = (RecordMetaData) metadata.get(name);
   return rmd.getSeqno();
 }