[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/utils DB.java,1.16,1.17
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2004-08-29 04:50:39
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11199/src/net/sourceforge/idrs/utils Modified Files: DB.java Log Message: * Removed "proprietary" xml binding * Added support for JAXB * Added "fields" tag, so that if the fields are not known ahead of time, they may be iterated over * updated some copyrights Index: DB.java =================================================================== RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/utils/DB.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** DB.java 22 Aug 2004 05:17:39 -0000 1.16 --- DB.java 29 Aug 2004 04:50:30 -0000 1.17 *************** *** 72,75 **** --- 72,76 ---- protected transient Statement holdForClean; protected transient Object[] rows; + private String currentFieldName; public boolean hasResults() { return hasResults; *************** *** 624,627 **** --- 625,631 ---- String data = ""; + if (fieldname.equalsIgnoreCase("idrsCurrentField")) { + fieldname = this.currentFieldName; + } data = (String) fields.get(fieldname); Object mess [] = {new String(""),new String("")}; *************** *** 892,895 **** --- 896,916 ---- this.transactionType = type; } + + public Set getFieldNames() { + return this.fields.keySet(); + } + /** + * @param fieldName + */ + public void setCurrentFiledName(String fieldName) { + this.currentFieldName = fieldName; + + } + /** + * @return + */ + public String getCurrentFieldName() { + return this.currentFieldName; + } } |