Use trace level debug messages with ObjMap 30/3130/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 21 Aug 2019 06:54:38 +0000 (09:54 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 21 Aug 2019 06:54:38 +0000 (09:54 +0300)
gitlab #342

Change-Id: Ice0dc7d7891ee672515ad8bf11ccd50d7c3a5758

24 files changed:
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/annotations/factories/UpdateMethodFactory.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/impl/Mapping.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/MappedElementRule.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/MappedElementsRule.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/ValueRule.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/CompoundValueAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/LinkedListAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/MappingUtils.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/RelatedObjectAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/RelatedObjectsAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/RelatedOrderedSetElementsAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/domain/RelatedValueAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/range/FieldAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/DynamicSimpleLinkType.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/OrderedSetSimpleLinkType.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/SimpleLinkType.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/annotations/factories/UpdateMethodFactory.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/RelatedObjectAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/RelatedObjectsAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/RelatedOrderedSetElementsAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/RelatedValueAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/StructuralRelatedObjectAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/StructuralRelatedObjectsAccessor.java
bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/schema/SimpleLinkType.java

index b201176261496f98942dbd31edc9e1597db68cf1..e1de9f20c20c0983a4ea4c2fe15d40c0db872e04 100644 (file)
@@ -41,7 +41,7 @@ public class UpdateMethodFactory<Domain, Range> implements IMethodRuleFactory<Do
             public boolean updateRange(ReadGraph g, IForwardMapping<Domain, Range> map,
                     Domain domainElement, Range rangeElement)
                     throws MappingException {
-                LOGGER.info("    UpdateMethodFactory.updateRange");      
+                LOGGER.trace("    UpdateMethodFactory.updateRange");      
                 try {
                     return (Boolean)method.invoke(rangeElement, g, domainElement);
                 } catch (Exception e) {
index 1c44ef9304aee20141386a0271c0bbc36aa85cf1..c2ecdf1b1679fe7f9fd5bd21ed9a0cef090ea63d 100644 (file)
@@ -73,7 +73,7 @@ public class Mapping<Domain, Range> implements IMapping<Domain, Range> {
        }
        
        private void createDomain(WriteGraph g, Link<Domain,Range> link) throws MappingException {
-           LOGGER.info("        createDomain for " + link.rangeElement);
+           LOGGER.trace("        createDomain for " + link.rangeElement);
                ILinkType<Domain,Range> type = schema.linkTypeOfRangeElement(link.rangeElement);
                Domain domainElement = type.createDomainElement(g, link.rangeElement);
                link.type = type;
@@ -264,11 +264,11 @@ public class Mapping<Domain, Range> implements IMapping<Domain, Range> {
        
        @Override
        public synchronized Collection<Domain> updateDomain(WriteGraph g) throws MappingException {
-           LOGGER.info("Mapping.updateDomain");
+           LOGGER.trace("Mapping.updateDomain");
                RangeToDomain map = new RangeToDomain(g);
                ArrayList<Domain> updated = new ArrayList<Domain>();
                while(!modifiedRangeLinks.isEmpty()) {
-                   LOGGER.info("    modifiedRangeLinks.size() = " + modifiedRangeLinks.size());
+                   LOGGER.trace("    modifiedRangeLinks.size() = " + modifiedRangeLinks.size());
                    
                        Link<Domain,Range> link = modifiedRangeLinks.remove(modifiedRangeLinks.size()-1);
                        link.rangeModified = false;
@@ -292,11 +292,11 @@ public class Mapping<Domain, Range> implements IMapping<Domain, Range> {
        
        @Override
        public synchronized Collection<Range> updateRange(ReadGraph g) throws MappingException {
-           LOGGER.info("Mapping.updateRange");
+           LOGGER.trace("Mapping.updateRange");
                DomainToRange map = new DomainToRange(g);
                ArrayList<Range> updated = new ArrayList<Range>();
                while(!modifiedDomainLinks.isEmpty()) {             
-                   LOGGER.info("    modifiedDomainLinks.size() = " + modifiedDomainLinks.size());
+                   LOGGER.trace("    modifiedDomainLinks.size() = " + modifiedDomainLinks.size());
                    
                        Link<Domain,Range> link = modifiedDomainLinks.remove(modifiedDomainLinks.size()-1);
                        link.domainModified = false;
@@ -359,7 +359,7 @@ public class Mapping<Domain, Range> implements IMapping<Domain, Range> {
        void domainModified(Link<Domain,Range> link) {
            if(!link.domainModified) {          
                synchronized(modifiedDomainLinks) {
-                   LOGGER.info("        domainModified for " + link.rangeElement);
+                   LOGGER.trace("        domainModified for " + link.rangeElement);
                 link.domainModified = true;
                 modifiedDomainLinks.add(link);
                 if(modifiedDomainLinks.size() == 1) {
index 5e4eec39feb51cc768c15d31de1bc8633ba706b2..9761f555568fbc6b3827eaa2d6cd7ee77e9ad884 100644 (file)
@@ -45,7 +45,7 @@ public class MappedElementRule<Domain, Range> implements IBidirectionalMappingRu
        public boolean updateDomain(WriteGraph g, IBackwardMapping<Domain, Range> map,
                        Domain domainElement, Range rangeElement)
                        throws MappingException {
-        LOGGER.info("    MappedElementRule.updateDomain");
+        LOGGER.trace("    MappedElementRule.updateDomain");
            Range value = rangeAccessor.get(rangeElement);
            Domain mappedValue = value == null ? null : map.inverseMap(g, value);//map.inverseGet(value);
                return domainAccessor.set(g, domainElement, mappedValue);
@@ -55,7 +55,7 @@ public class MappedElementRule<Domain, Range> implements IBidirectionalMappingRu
        public boolean updateRange(ReadGraph g, IForwardMapping<Domain, Range> map,
                        Domain domainElement, Range rangeElement)
                        throws MappingException {
-        LOGGER.info("    MappedElementRule.updateRange");   
+        LOGGER.trace("    MappedElementRule.updateRange");   
            Domain value = domainAccessor.get(g, domainElement);
         Range mappedValue = value == null ? null : map.map(g, value);////map.get(value);
         return rangeAccessor.set(rangeElement, mappedValue);
index 43a8ff49325fc46436954243092c5a22e391998b..7f3c13a106e956989fc4185353de667adad5f6e1 100644 (file)
@@ -49,7 +49,7 @@ public class MappedElementsRule<Domain, Range> implements IBidirectionalMappingR
     public boolean updateDomain(WriteGraph g, IBackwardMapping<Domain, Range> map,
             Domain domainElement, Range rangeElement)
     throws MappingException {
-        LOGGER.info("    MappedElementsRule.updateDomain");
+        LOGGER.trace("    MappedElementsRule.updateDomain");
         // Snapshot the accessed range value for concurrency safety.
         // NOTE: still assumes that the accessed collection is concurrent or
         // synchronized for toArray to be atomic.
@@ -65,7 +65,7 @@ public class MappedElementsRule<Domain, Range> implements IBidirectionalMappingR
     public boolean updateRange(ReadGraph g, IForwardMapping<Domain, Range> map,
             Domain domainElement, Range rangeElement)
     throws MappingException {
-        LOGGER.info("    MappedElementsRule.updateRange");
+        LOGGER.trace("    MappedElementsRule.updateRange");
         Collection<Domain> value = domainAccessor.get(g, domainElement);
         ArrayList<Range> mappedValue = new ArrayList<Range>(value.size());
         for(Domain r : value)
index d40c44f2b3287975c1d9c12a2e791048a83be1d7..9ba9dba11274291b0dadb6664492542bd853951e 100644 (file)
@@ -45,7 +45,7 @@ public class ValueRule<Domain, Range> implements IBidirectionalMappingRule<Domai
        public boolean updateDomain(WriteGraph g, IBackwardMapping<Domain, Range> map,
                        Domain domainElement, Range rangeElement)
                        throws MappingException {
-        LOGGER.info("    ValueRule.updateDomain");         
+        LOGGER.trace("    ValueRule.updateDomain");        
                Object value = rangeAccessor.get(rangeElement);
                return domainAccessor.set(g, domainElement, value);
        }
@@ -54,7 +54,7 @@ public class ValueRule<Domain, Range> implements IBidirectionalMappingRule<Domai
        public boolean updateRange(ReadGraph g, IForwardMapping<Domain, Range> map,
                        Domain domainElement, Range rangeElement)
                        throws MappingException {
-        LOGGER.info("    ValueRule.updateRange");
+        LOGGER.trace("    ValueRule.updateRange");
                Object value = domainAccessor.get(g, domainElement);
                return rangeAccessor.set(rangeElement, value);
        }       
index 53eb0116829fe8181c61dc1147bf96d7b7cf78d9..39df524b270943022478f51669f2a6627cbbe03e 100644 (file)
@@ -52,7 +52,7 @@ public class CompoundValueAccessor implements IDomainAccessor<Resource,Object> {
        public Object get(ReadGraph g, Resource element) throws MappingException {
                try {
                        Layer0 l0 = Layer0.getInstance(g);
-                   LOGGER.info("        CompoundValueAccessor.get");
+                   LOGGER.trace("        CompoundValueAccessor.get");
                    Collection<Statement> coll = g.getStatements(element, objRelation);
                    Map<String,Object> map = new HashMap<String, Object>();
                    for (Statement c : coll) {
@@ -73,7 +73,7 @@ public class CompoundValueAccessor implements IDomainAccessor<Resource,Object> {
                        throws MappingException {
                try {
                        Layer0 l0 = Layer0.getInstance(g);
-                   LOGGER.info("        CompoundValueAccessor.set");
+                   LOGGER.trace("        CompoundValueAccessor.set");
                    @SuppressWarnings("unchecked")
                    Map<String,Object> values = (Map<String, Object>)v;
                    
index efdaab56cf4665f2ec90a7a51182eb4b1cbf0c04..e9104c3d98b4193f9ded854bd4016ebfb35c7c04 100644 (file)
@@ -45,7 +45,7 @@ public class LinkedListAccessor implements IDomainAccessor<Resource,Collection<R
        @Override
        public Collection<Resource> get(ReadGraph g, Resource element) throws MappingException {
                try {
-                       LOGGER.info("        LinkdedListAccessor.get");
+                       LOGGER.trace("        LinkdedListAccessor.get");
                        return ListUtils.toList(g, g.getPossibleObject(element, relation));
                } catch (DatabaseException e) {
                        throw new MappingException(e);
@@ -56,7 +56,7 @@ public class LinkedListAccessor implements IDomainAccessor<Resource,Collection<R
        public boolean set(WriteGraph g, Resource element, Collection<Resource> value)
                        throws MappingException {
                try {
-                       LOGGER.info("        LinkdedListAccessor.set");
+                       LOGGER.trace("        LinkdedListAccessor.set");
                        return MappingUtils.synchronizeList(g, element, relation, listType, new ArrayList<Resource>(value), deleteExtraObjects);
                } catch (DatabaseException e) {
                        throw new MappingException(e);
index 6f7f9260fde774cd50b59be3b95ae4f5a834425b..0bb50ff5726c270d92e69cb1be1074a71e3030bd 100644 (file)
@@ -55,7 +55,7 @@ public class MappingUtils {
                while(true) {
                        int cmp = currentObjects[i].compareTo(objects[j]);
                        if(cmp < 0) {
-                           LOGGER.info("            remove statement");
+                           LOGGER.trace("            remove statement");
                            if(deleteExtraObjects)
                                g.deny(currentObjects[i]);
                            else
@@ -66,7 +66,7 @@ public class MappingUtils {
                                        break;
                        }
                        else if(cmp > 0) {
-                           LOGGER.info("            add statement");
+                           LOGGER.trace("            add statement");
                                g.claim(subject, predicate, objects[j]);
                                modified = true;
                                ++j;
index 2cfc98185f5b3cd842255363c8a17e71f5bf3b07..28000a99e7412688f7544ac392bbafa8fd868c67 100644 (file)
@@ -36,7 +36,7 @@ public class RelatedObjectAccessor implements IDomainAccessor<Resource,Resource>
        @Override
        public Resource get(ReadGraph g, Resource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectAccessor.get");
+                   LOGGER.trace("        RelatedObjectAccessor.get");
                        return g.getPossibleObject(element, relation);
                } catch (DatabaseException e) {
                        throw new MappingException(e);
@@ -47,7 +47,7 @@ public class RelatedObjectAccessor implements IDomainAccessor<Resource,Resource>
        public boolean set(WriteGraph g, Resource element, Resource value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectAccessor.set");
+                   LOGGER.trace("        RelatedObjectAccessor.set");
                    Resource resource = g.getPossibleObject(element, relation);
                        if(resource == null) {
                            if(value == null)
index d8002d976022398ff7196fbd43606c26d79ba257..d2d1db99a7d78e6cc06f1d93483e3523ae376e93 100644 (file)
@@ -41,7 +41,7 @@ public class RelatedObjectsAccessor implements IDomainAccessor<Resource,Collecti
     @Override
        public Collection<Resource> get(ReadGraph g, Resource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectsAccessor.get");
+                   LOGGER.trace("        RelatedObjectsAccessor.get");
                        return g.getObjects(element, relation);
                } catch (DatabaseException e) {
                        throw new MappingException(e);
@@ -52,7 +52,7 @@ public class RelatedObjectsAccessor implements IDomainAccessor<Resource,Collecti
        public boolean set(WriteGraph g, Resource element, Collection<Resource> value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectsAccessor.set");
+                   LOGGER.trace("        RelatedObjectsAccessor.set");
                        return MappingUtils.synchronizeStatements(g, element, relation, 
                                value.toArray(new Resource[value.size()]), deleteExtraObjects);
                } catch (DatabaseException e) {
index a272b4f0bc4dd0786688d6ff25719089ee1545f0..4d78956756a7db91ef392c6cdb1999465f2c4c0b 100644 (file)
@@ -40,7 +40,7 @@ public class RelatedOrderedSetElementsAccessor implements IDomainAccessor<Resour
     @Override
        public Collection<Resource> get(ReadGraph g, Resource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedOrderedSetElementsAccessor.get");
+                   LOGGER.trace("        RelatedOrderedSetElementsAccessor.get");
                        return OrderedSetUtils.toList(g, element);
                } catch (DatabaseException e) {
                        throw new MappingException(e);
@@ -51,7 +51,7 @@ public class RelatedOrderedSetElementsAccessor implements IDomainAccessor<Resour
        public boolean set(WriteGraph g, Resource element, Collection<Resource> value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedOrderedSetElementsAccessor.set");
+                   LOGGER.trace("        RelatedOrderedSetElementsAccessor.set");
                    return OrderedSetUtils.set(g, element, value);
                    // FIXME Implement deleteExtraObjects
                } catch (DatabaseException e) {
index 585b468e60c049217a4ec2e74db26011b6663648..9aa96d8e89ed64a1379b77d39ec762b2f83ac706 100644 (file)
@@ -49,7 +49,7 @@ public class RelatedValueAccessor implements IDomainAccessor<Resource,Object> {
        @Override
        public Object get(ReadGraph g, Resource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedValueAccessor.get");
+                   LOGGER.trace("        RelatedValueAccessor.get");
                        Resource valueResource = g.getPossibleObject(element, relation);
                        if(valueResource == null)
                                return null;
@@ -63,7 +63,7 @@ public class RelatedValueAccessor implements IDomainAccessor<Resource,Object> {
        public boolean set(WriteGraph g, Resource element, Object value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedValueAccessor.set");
+                   LOGGER.trace("        RelatedValueAccessor.set");
                    Statement valueStatement = g.getPossibleStatement(element, relation);
                        if(valueStatement == null) {
                                if(value == null)
index 278c35a89503a32798b22b6fd31054836d385f98..c5a35613cd07ade3454c45f76b720096ace63d4f 100644 (file)
@@ -38,8 +38,8 @@ public class FieldAccessor<Range,T> implements IRangeAccessor<Range,T> {
                    @SuppressWarnings("unchecked")
                        T result = (T)field.get(element);
                    
-               if(LOGGER.isInfoEnabled())
-                   LOGGER.info("        FieldAccessor.get " +
+               if(LOGGER.isTraceEnabled())
+                   LOGGER.trace("        FieldAccessor.get " +
                            field.getName() + " -> " + result
                    );
                
@@ -56,8 +56,8 @@ public class FieldAccessor<Range,T> implements IRangeAccessor<Range,T> {
                try {
                        Object currentValue = field.get(element);
                        
-            if(LOGGER.isInfoEnabled())
-                LOGGER.info("        FieldAccessor.set " +
+            if(LOGGER.isTraceEnabled())
+                LOGGER.trace("        FieldAccessor.set " +
                         field.getName() + " " + currentValue +  
                         " -> " + value
                 );
index 792813bb1020b8a524723dea76ba7bf1f7aac46d..4f44844dbbaa034afbc9d84dcf702c3cb2965ece 100644 (file)
@@ -70,8 +70,8 @@ public class DynamicSimpleLinkType<Range> extends SimpleLinkType<Range>{
             throws MappingException {
         try {
                String typeUri = (String)typeGetter.invoke(rangeElement, (Object[]) null);
-            if(LOGGER.isInfoEnabled())
-                LOGGER.info("SimpleLinkType.createDomainElement " +
+            if(LOGGER.isTraceEnabled())
+                LOGGER.trace("SimpleLinkType.createDomainElement " +
                         rangeElement.toString()
                 );
             Resource actualDomainType = g.getResource(typeUri);
@@ -95,9 +95,9 @@ public class DynamicSimpleLinkType<Range> extends SimpleLinkType<Range>{
            public Range createRangeElement(ReadGraph g, Resource domainElement)
                    throws MappingException {
                try {
-                   if(LOGGER.isInfoEnabled())
+                   if(LOGGER.isTraceEnabled())
                        try { 
-                           LOGGER.info("SimpleLinkType.createRangeElement " +
+                           LOGGER.trace("SimpleLinkType.createRangeElement " +
                                        NameUtils.getSafeName(g, domainElement)
                                    );
                        } catch(DatabaseException e) {
index bd87c074f0f4ecbe14ecddcce0b05fc4d13369d2..748422df2a5f51deebe85d421c1c4e78fdbe242d 100644 (file)
@@ -20,8 +20,8 @@ public class OrderedSetSimpleLinkType<Range> extends SimpleLinkType<Range> {
        
        public Resource createDomainElement(org.simantics.db.WriteGraph g, Range rangeElement) throws org.simantics.objmap.exceptions.MappingException {
                 try {
-            if(LOGGER.isInfoEnabled())
-                LOGGER.info("SimpleLinkType.createDomainElement " +
+            if(LOGGER.isTraceEnabled())
+                LOGGER.trace("SimpleLinkType.createDomainElement " +
                         rangeElement.toString()
                 );
             Resource result = OrderedSetUtils.create(g, domainType);
index 096d07cb83d609b0d33ccc49090ba49d649f32fb..9ddc437162e12a32720c5faefa6544ddc7e8a246 100644 (file)
@@ -64,8 +64,8 @@ public class SimpleLinkType<Range> implements ILinkType<Resource,Range> {
     public Resource createDomainElement(WriteGraph g, Range rangeElement)
             throws MappingException {
         try {
-            if(LOGGER.isInfoEnabled())
-                LOGGER.info("SimpleLinkType.createDomainElement " +
+            if(LOGGER.isTraceEnabled())
+                LOGGER.trace("SimpleLinkType.createDomainElement " +
                         rangeElement.toString()
                 );
             Resource result = g.newResource();
@@ -80,9 +80,9 @@ public class SimpleLinkType<Range> implements ILinkType<Resource,Range> {
     public Range createRangeElement(ReadGraph g, Resource domainElement)
             throws MappingException {
         try {
-            if(LOGGER.isInfoEnabled())
+            if(LOGGER.isTraceEnabled())
                 try { 
-                    LOGGER.info("SimpleLinkType.createRangeElement " +
+                    LOGGER.trace("SimpleLinkType.createRangeElement " +
                                NameUtils.getSafeName(g, domainElement)
                             );
                 } catch(DatabaseException e) {
@@ -105,9 +105,9 @@ public class SimpleLinkType<Range> implements ILinkType<Resource,Range> {
     };
     
     public boolean updateDomain(WriteGraph g, IBackwardMapping<Resource,Range> map, Resource domainElement, Range rangeElement) throws MappingException {
-        if(LOGGER.isInfoEnabled())
+        if(LOGGER.isTraceEnabled())
             try { 
-                LOGGER.info("SimpleLinkType.updateDomain " +
+                LOGGER.trace("SimpleLinkType.updateDomain " +
                         NameUtils.getSafeName(g, domainElement) + " " +
                         rangeElement.toString()
                         );
@@ -123,9 +123,9 @@ public class SimpleLinkType<Range> implements ILinkType<Resource,Range> {
     
     public boolean updateRange(ReadGraph g, IForwardMapping<Resource,Range> map, Resource domainElement, Range rangeElement) throws MappingException {
     
-        if(LOGGER.isInfoEnabled())
+        if(LOGGER.isTraceEnabled())
             try { 
-                LOGGER.info("SimpleLinkType.updateRange " +
+                LOGGER.trace("SimpleLinkType.updateRange " +
                                NameUtils.getSafeName(g, domainElement) + " " +
                         (rangeElement.getClass().getName() + "@" + Integer.toHexString(rangeElement.hashCode()))
                         );
index 1ce1ef1c61e9f74dc91e449d961f6185bda98d13..a2be5fa42bf978083642deb38b68807e46dc3329 100644 (file)
@@ -41,7 +41,7 @@ public class UpdateMethodFactory<Domain, Range> implements IMethodRuleFactory<Do
             public boolean updateRange(ReadGraph g, IForwardMapping<Domain, Range> map,
                     Domain domainElement, Range rangeElement)
                     throws MappingException {
-                LOGGER.info("    UpdateMethodFactory.updateRange");      
+                LOGGER.trace("    UpdateMethodFactory.updateRange");      
                 try {
                     return (Boolean)method.invoke(rangeElement, g, domainElement);
                 } catch (Exception e) {
index 736f86b39c2a889b9962d8dd8334e809d8426ea8..de80a9a95fdacd3ff4af5fb72166fe7e3df91ae4 100644 (file)
@@ -51,7 +51,7 @@ public class RelatedObjectAccessor implements IDomainAccessor<StructuralResource
        @Override
        public StructuralResource get(ReadGraph g, StructuralResource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectAccessor.get");
+                   LOGGER.trace("        RelatedObjectAccessor.get");
                    Resource res = getServiceResource(g, element);
                    if (res == null)
                        return null;
@@ -72,7 +72,7 @@ public class RelatedObjectAccessor implements IDomainAccessor<StructuralResource
        public boolean set(WriteGraph g, StructuralResource selement, StructuralResource value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectAccessor.set");
+                   LOGGER.trace("        RelatedObjectAccessor.set");
                    Resource element = getServiceResource(g, selement);
                    if (element == null)
                        return false;
index 1e1be5b76df10f81935f760dc5cd48cf4b21593e..b09de09b83551a1c9d7427c6e11441d4544b0504 100644 (file)
@@ -58,7 +58,7 @@ public class RelatedObjectsAccessor implements IDomainAccessor<StructuralResourc
     @Override
        public Collection<StructuralResource> get(ReadGraph g, StructuralResource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectsAccessor.get");
+                   LOGGER.trace("        RelatedObjectsAccessor.get");
                        
                   
                    Resource res = getServiceResource(g, element);
@@ -87,7 +87,7 @@ public class RelatedObjectsAccessor implements IDomainAccessor<StructuralResourc
        public boolean set(WriteGraph g, StructuralResource element, Collection<StructuralResource> value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectsAccessor.set");
+                   LOGGER.trace("        RelatedObjectsAccessor.set");
                    Resource res = getServiceResource(g, element);
                    if (res == null)
                        return false;
index 97fde226f2fa522ac8ca472b94146db55feca996..35f98994d23dd9ccb638fb493939c3b8523bdded 100644 (file)
@@ -43,7 +43,7 @@ public class RelatedOrderedSetElementsAccessor implements IDomainAccessor<Struct
     @Override
        public Collection<StructuralResource> get(ReadGraph g, StructuralResource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedOrderedSetElementsAccessor.get");
+                   LOGGER.trace("        RelatedOrderedSetElementsAccessor.get");
                    Resource res = getServiceResource(g, element);
                    if (res == null)
                        return Collections.emptyList();
@@ -62,7 +62,7 @@ public class RelatedOrderedSetElementsAccessor implements IDomainAccessor<Struct
        public boolean set(WriteGraph g, StructuralResource element, Collection<StructuralResource> value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedOrderedSetElementsAccessor.set");
+                   LOGGER.trace("        RelatedOrderedSetElementsAccessor.set");
                    Resource res = getServiceResource(g, element);
                    if (res == null)
                        return false;
index 41279d1aba8fede41e5bde9fa42b9eeeb33a9c04..21a6733a4b3e4938def7029fbbafa810ca6b9084 100644 (file)
@@ -58,7 +58,7 @@ public class RelatedValueAccessor implements IDomainAccessor<StructuralResource,
        @Override
        public Object get(ReadGraph g, StructuralResource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedValueAccessor.get");
+                   LOGGER.trace("        RelatedValueAccessor.get");
                    Resource res = getServiceResource(g, element);
                    if (res == null)
                        return null;
@@ -75,7 +75,7 @@ public class RelatedValueAccessor implements IDomainAccessor<StructuralResource,
        public boolean set(WriteGraph g, StructuralResource relement, Object value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedValueAccessor.set");
+                   LOGGER.trace("        RelatedValueAccessor.set");
                    
                    Resource element = getServiceResource(g, relement);
                    if (element == null)
index 865d4249ea78553645dbed7296bc9e4bc0ac8664..1b088754327511cff225e40ae690ec5c926cdec5 100644 (file)
@@ -55,7 +55,7 @@ public class StructuralRelatedObjectAccessor implements IDomainAccessor<Structur
        public StructuralResource get(ReadGraph g, StructuralResource element) throws MappingException {
                try {
                        
-                       LOGGER.info("        RelatedObjectAccessor.get");
+                       LOGGER.trace("        RelatedObjectAccessor.get");
                        
                        if (!element.isStructural())
                                return null;
@@ -85,7 +85,7 @@ public class StructuralRelatedObjectAccessor implements IDomainAccessor<Structur
        public boolean set(WriteGraph g, StructuralResource element, StructuralResource value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectAccessor.set");
+                   LOGGER.trace("        RelatedObjectAccessor.set");
                    Resource instance = StructuralUtils.getContainingInstance(element);
                    Resource publicRelation = null;
                    if (instance == null)
index 6984bdcd02269a556eaef001f210d7be4268db96..aa3fdcad247a9f8e46ae0f9ef28f2bf4502aefab 100644 (file)
@@ -44,7 +44,7 @@ public class StructuralRelatedObjectsAccessor implements IDomainAccessor<Structu
     @Override
        public Collection<StructuralResource> get(ReadGraph g, StructuralResource element) throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectsAccessor.get");
+                   LOGGER.trace("        RelatedObjectsAccessor.get");
                        
                    if (!element.isStructural())
                        return Collections.emptyList();
@@ -79,7 +79,7 @@ public class StructuralRelatedObjectsAccessor implements IDomainAccessor<Structu
        public boolean set(WriteGraph g, StructuralResource element, Collection<StructuralResource> value)
                        throws MappingException {
                try {
-                   LOGGER.info("        RelatedObjectsAccessor.set");
+                   LOGGER.trace("        RelatedObjectsAccessor.set");
                    
                    if (!element.isStructural())
                        return false;
index ded0f40db8c15e3e1e4e0daad19e82344ac331f3..77b2ab094a50b6baf05c6853b3b10a7da6d91242 100644 (file)
@@ -64,8 +64,8 @@ public class SimpleLinkType implements ILinkType<StructuralResource,IStructuralO
     public StructuralResource createDomainElement(WriteGraph g, IStructuralObject rangeElement)
             throws MappingException {
         try {
-            if(LOGGER.isInfoEnabled())
-                LOGGER.info("SimpleLinkType.createDomainElement " +
+            if(LOGGER.isTraceEnabled())
+                LOGGER.trace("SimpleLinkType.createDomainElement " +
                         rangeElement.toString()
                 );
             if (rangeElement.getContext().size() == 0) {
@@ -98,9 +98,9 @@ public class SimpleLinkType implements ILinkType<StructuralResource,IStructuralO
     public IStructuralObject createRangeElement(ReadGraph g, StructuralResource domainElement)
             throws MappingException {
         try {
-            if(LOGGER.isInfoEnabled())
+            if(LOGGER.isTraceEnabled())
                 try { 
-                    LOGGER.info("SimpleLinkType.createRangeElement " + NameUtils.getSafeName(g, domainElement.getResource()));
+                    LOGGER.trace("SimpleLinkType.createRangeElement " + NameUtils.getSafeName(g, domainElement.getResource()));
                 } catch(DatabaseException e) {
                     throw new MappingException(e);
                 }
@@ -155,9 +155,9 @@ public class SimpleLinkType implements ILinkType<StructuralResource,IStructuralO
     }
     
     public boolean updateDomain(WriteGraph g, IBackwardMapping<StructuralResource,IStructuralObject> map, StructuralResource domainElement, IStructuralObject rangeElement) throws MappingException {
-        if(LOGGER.isInfoEnabled())
+        if(LOGGER.isTraceEnabled())
             try { 
-                LOGGER.info("SimpleLinkType.updateDomain " +
+                LOGGER.trace("SimpleLinkType.updateDomain " +
                         NameUtils.getSafeName(g, domainElement.getResource()) + " " +
                         rangeElement.toString()
                         );
@@ -173,9 +173,9 @@ public class SimpleLinkType implements ILinkType<StructuralResource,IStructuralO
     
     public boolean updateRange(ReadGraph g, IForwardMapping<StructuralResource, IStructuralObject> map, StructuralResource domainElement, IStructuralObject rangeElement) throws MappingException {
     
-        if(LOGGER.isInfoEnabled())
+        if(LOGGER.isTraceEnabled())
             try { 
-                LOGGER.info("SimpleLinkType.updateRange " +
+                LOGGER.trace("SimpleLinkType.updateRange " +
                                NameUtils.getSafeName(g, domainElement.getResource()) + " " +
                         rangeElement.toString()
                         );