Examples of IRelationObject


Examples of de.mhus.lib.adb.IRelationObject

  }
 
  protected IRelationObject getRelationObject(Object obj) {
    try {
      Object val = getter.invoke(obj);
      IRelationObject rel = (IRelationObject)val;
      if (rel == null && setter != null) {
        rel = (IRelationObject) ret.newInstance();
        setter.invoke(obj, rel);
      }
      if (rel != null)
        rel.setManager(this, obj);
      return rel;
    } catch (Throwable e) {
      log().t(name,obj,e);
    }
    return null;
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

    }
    return null;
  }

  public void prepareCreate(Object object) throws Exception {
    IRelationObject rel = getRelationObject(object);
    if (rel != null)
      rel.prepareCreate();
  }
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

    if (rel != null)
      rel.prepareCreate();
  }

  public void created(DbConnection con,Object object) throws Exception {
    IRelationObject rel = getRelationObject(object);
    if (rel != null)
      rel.created(con);
  }
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

    if (rel != null)
      rel.created(con);
  }

  public void loaded(DbConnection con,Object object) throws Exception {
    IRelationObject rel = getRelationObject(object);
    if (rel != null)
      rel.loaded(con);
  }
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

    if (rel != null)
      rel.loaded(con);
  }

  public void saved(DbConnection con,Object object) throws Exception {
    IRelationObject rel = getRelationObject(object);
    if (rel != null)
      rel.saved(con);
  }
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

  public DbRelation getConfig() {
    return config;
  }

  public boolean isChanged(Object object) {
    IRelationObject rel = getRelationObject(object);
    if (rel != null)
      return rel.isChanged();
    return false;
  }
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

      return rel.isChanged();
    return false;
  }

  public void prepareSave(DbConnection con, Object object) throws Exception {
    IRelationObject rel = getRelationObject(object);
    if (rel != null)
      rel.prepareSave(con);
  }
View Full Code Here

Examples of de.mhus.lib.adb.IRelationObject

    if (rel != null)
      rel.prepareSave(con);
  }

  public void inject(Object object) {
    IRelationObject rel = getRelationObject(object);
    if (rel != null) rel.setManager(this, object); // again
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.