From: Bryan T. <tho...@us...> - 2007-12-05 15:11:27
|
Update of /cvsroot/cweb/generic-native/src/java/org/CognitiveWeb/generic/core/om In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv6183/src/java/org/CognitiveWeb/generic/core/om Modified Files: ObjectManager.java Log Message: bigdata-gom is now running. Index: ObjectManager.java =================================================================== RCS file: /cvsroot/cweb/generic-native/src/java/org/CognitiveWeb/generic/core/om/ObjectManager.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ObjectManager.java 4 Dec 2007 20:30:41 -0000 1.12 --- ObjectManager.java 5 Dec 2007 15:11:16 -0000 1.13 *************** *** 584,587 **** --- 584,589 ---- // + int counter = beginNativeTransaction(); + propertyClass = (PropertyClass) delegate.getPropertyClass( property, insert ); *************** *** 592,595 **** --- 594,599 ---- } + commitNativeTransaction(counter); + return propertyClass; *************** *** 686,698 **** { ! if( linkPropertyClass == null ) { ! throw new IllegalArgumentException(); ! } ! ! ((PropertyClass)linkPropertyClass).addIndexClass ! ( (PropertyClass) valuePropertyClass ! ); } --- 690,705 ---- { ! if (linkPropertyClass == null) { ! throw new IllegalArgumentException(); ! } ! ! int counter = beginNativeTransaction(); ! ! ((PropertyClass) linkPropertyClass) ! .addIndexClass((PropertyClass) valuePropertyClass); ! ! commitNativeTransaction(counter); } *************** *** 1082,1086 **** checkIfOpen(); ! return delegate.intern(s); } --- 1089,1099 ---- checkIfOpen(); ! int counter = beginNativeTransaction(); ! ! int ret = delegate.intern(s); ! ! commitNativeTransaction(counter); ! ! return ret; } *************** *** 1570,1573 **** --- 1583,1587 ---- synchronized public void setNamedObject(String name, Object value) { checkIfOpen(); + int counter = beginNativeTransaction(); if( value == null ) { delegate.setNamedObject( name, 0L ); *************** *** 1575,1578 **** --- 1589,1593 ---- delegate.setNamedObject( name, ((BaseObject)value).getOID() ); } + commitNativeTransaction(counter); } |