[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units Body.java,1.4,1.5 Db.java,
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-09-09 21:27:47
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units
In directory usw-pr-cvs1:/tmp/cvs-serv10950/src/net/sourceforge/idrs/deploy/compile/units
Modified Files:
Body.java Db.java
Log Message:
added transaction support and new form handling
Index: Body.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units/Body.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Body.java 13 Apr 2002 16:06:35 -0000 1.4
--- Body.java 9 Sep 2002 21:27:44 -0000 1.5
***************
*** 85,88 ****
--- 85,93 ----
line.addChunk(new net.sourceforge.idrs.core.report.FieldChunk(id,field,format,state.getCurrentRepeatLine()));
}
+
+ public void error(String val, Attributes atts) throws Exception {
+ Line line = state.getCurrentLine();
+ line.addChunk(new net.sourceforge.idrs.core.report.ErrorChunk());
+ }
public void inputResults(String val,Attributes atts) throws Exception {
Index: Db.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units/Db.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Db.java 22 Aug 2002 20:06:34 -0000 1.4
--- Db.java 9 Sep 2002 21:27:44 -0000 1.5
***************
*** 97,101 ****
--- 97,113 ----
public void pageSize(String val,Attributes atts) throws Exception {
db.setIsPaged(true);
+ if (! val.equalsIgnoreCase("<external>")) {
+ db.setNumRecs(Integer.parseInt(val));
+ }
+ }
+
+ public void transaction(String val, Attributes atts) throws Exception {
+ if (val.equalsIgnoreCase("begin")) {
+ db.setTransactionType(DB.TRANS_BEGIN);
+ }
+ else if (val.equalsIgnoreCase("complete")) {
+ db.setTransactionType(DB.TRANS_COMPLETE);
+ }
}
|