]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Any.java
Salome HOME
app.root property is removed.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Any.java
index 5366bc74d79351ec702ec5442481db22d8d6174e..faba8598d35d2ff4a70ed0337aed0a965e0f29c1 100644 (file)
@@ -36,7 +36,6 @@ public abstract class Any extends Persistent {
       super(oprop);
     }
     protected Any (Attribute... field) {
-//  ----------------------------------
       for (int i=0; i<field.length; i++) {
        if (field[i] == null) continue;     // Happen when newing an Any object without property 
         if (field[i].getFrom().equals(this)) getAttributes().add(field[i]);
@@ -48,7 +47,6 @@ public abstract class Any extends Persistent {
 //  ==============================================================================================================================
 
     public Attribute getAttribute (Class<? extends Attribute> type) {
-//  ---------------------------------------------------------------
       for (Iterator<Attribute> i=getAttributes().iterator(); i.hasNext(); ) {
        Attribute field = i.next();
         if (field.getClass().equals(type)) return field;
@@ -61,20 +59,16 @@ public abstract class Any extends Persistent {
 //  ==============================================================================================================================
 
     protected boolean removeAttribute (Attribute field) {
-//  ---------------------------------------------------
       for (Iterator<Attribute> i=getAttributes().iterator(); i.hasNext(); ) {
         if (!i.next().equals(field)) continue;
        i.remove();
-       //RKV        if (this.isSaved()) Database.getCurSession().update(this);
        return true;
       }
       return false;
     }
 
     public boolean setAttribute (Attribute field) {
-//  ------------------------------------------------
       Class<?> type    = field.getClass();
-//RKV      Session  session = Database.getCurSession();
 
       if (!field.getFrom().equals(this)) return false;
       for (Iterator<Attribute> i=getAttributes().iterator(); i.hasNext(); ) {
@@ -83,10 +77,6 @@ public abstract class Any extends Persistent {
        break;
       }
       getAttributes().add(field);
-    //RKVif (this.isSaved()) {
-       //RKV        if (!field.isSaved()) session.save(field);
-       //RKV           session.update(this);
-    //RKV}     // Else, when saving this, Hibernate will propagate the operation
       return true;
     }
        /**