Пример #1
0
  /**
   * @param view
   * @return
   * @author Jie Bao
   * @since 2006-07-01
   */
  public static boolean writeView(View view) {
    // save to database
    String value = Zip.encode(view.toText());
    String name = view.getName();
    String space = IndusBasis.user.name;

    Map<String, String> values = new HashMap<String, String>();

    values.put("name", name);
    values.put("value", value);
    values.put("space", space);

    Connection db = IndusBasis.indusSystemDB.db;
    return JDBCUtils.insertOrUpdateDatabase(db, "views", values, "name");
  }
Пример #2
0
 /**
  * @deprecated
  * @param view
  * @return
  */
 public static boolean writeViewOld(View view) {
   return write(CMD_UPDATE_VIEW, view.getName(), view);
 }