From: Wolfgang M. M. <wol...@us...> - 2004-06-18 12:05:27
|
Update of /cvsroot/exist/eXist-1.0/samples/org/exist/examples/triggers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9003/samples/org/exist/examples/triggers Modified Files: ExampleTrigger.java Log Message: ExampleTrigger did not work. Index: ExampleTrigger.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/samples/org/exist/examples/triggers/ExampleTrigger.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExampleTrigger.java 18 Jun 2004 08:34:54 -0000 1.2 --- ExampleTrigger.java 18 Jun 2004 12:05:16 -0000 1.3 *************** *** 55,58 **** --- 55,59 ---- DocumentSet docs = new DocumentSet(); docs.add(this.doc); + System.out.println("doc is " + this.doc.hashCode()); try { // IMPORTANT: temporarily disable triggers on the collection. *************** *** 67,70 **** --- 68,72 ---- broker.flush(); } catch (Exception e) { + e.printStackTrace(); throw new TriggerException(e.getMessage(), e); } finally { *************** *** 88,92 **** contentsFile = "contents.xml"; // try to retrieve the contents file ! this.doc = parent.getDocument(broker, parent.getName() + '/' + contentsFile); if(this.doc == null) // doesn't exist yet: create it --- 90,95 ---- contentsFile = "contents.xml"; // try to retrieve the contents file ! System.out.println(parent.toString()); ! this.doc = parent.getDocument(broker, contentsFile); if(this.doc == null) // doesn't exist yet: create it |