Examples of update()


Examples of net.kuujo.vertigo.network.impl.DefaultActiveNetwork.update()

    vertx.eventBus().registerHandler(String.format("%s.%s.change", context.name(), context.name()), new Handler<Message<JsonObject>>() {
      @Override
      public void handle(Message<JsonObject> message) {
        String event = message.body().getString("type");
        if (event.equals("change") && message.body().getString("value") != null) {
          active.update(Contexts.<NetworkContext>deserialize(new JsonObject(message.body().getString("value"))));
        }
      }
    }, new Handler<AsyncResult<Void>>() {
      @Override
      public void handle(AsyncResult<Void> result) {
View Full Code Here

Examples of net.loyin.model.Employee.update()

  }
  public void save() {
    try {
      Employee m = getModel(Employee.class);
      if (m.getLong("id") != null) {
        m.update();
      } else {
        m.save();
      }
       Db.update("update employee e set e.orgid=(select p.orgid from partment p where p.id=e.partmentid)");
      toDwzJson(200, "保存成功!", navTabId);
View Full Code Here

Examples of net.loyin.model.Menu.update()

  public void save() {
    try{
      Menu m=getModel(Menu.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
View Full Code Here

Examples of net.loyin.model.Organization.update()

  public void save() {
   
    try{
      Organization m=getModel(Organization.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
View Full Code Here

Examples of net.loyin.model.Partment.update()

  }
  public void save() {
    try{
      Partment m=getModel(Partment.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
View Full Code Here

Examples of net.loyin.model.Role.update()

  }
  public void save() {
    try{
      Role m=getModel(Role.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
View Full Code Here

Examples of net.loyin.model.Systemparam.update()

  public void save() {
   
    try{
      Systemparam m=getModel(Systemparam.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson(200, "保存成功!", navTabId);
    }catch(Exception e){
View Full Code Here

Examples of net.loyin.model.Wagepay.update()

  public void save() {
   
    try{
      Wagepay m=getModel(Wagepay.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson(200, "保存成功!", navTabId);
    }catch(Exception e){
View Full Code Here

Examples of net.matuschek.util.MD5.Update()

  protected static String getContentMD5(byte[] content) {
    if ((content == null) || (content.length == 0)) {
      return "00000000000000000000000000000000";
    }
    MD5 md5 = new MD5();
    md5.Update(content);
    return md5.asHex();
  }
 
  /**
   * Gets MD5 key of document content.
View Full Code Here

Examples of net.paoding.rose.jade.dataaccess.DataAccess.update()

        DataAccess dataAccess = dataAccessProvider.getDataAccess(//
                runtime.getMetaData(), runtime.getProperties());
        if (returnGeneratedKeys) {
            ArrayList<Number> keys = new ArrayList<Number>(1);
            KeyHolder generatedKeyHolder = new GeneratedKeyHolder(keys);
            dataAccess.update(runtime.getSQL(), runtime.getArgs(), generatedKeyHolder);
            if (keys.size() > 0) {
                result = generatedKeyHolder.getKey();
            } else {
                result = null;
            }
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.