Examples of update()


Examples of org.broadleafcommerce.openadmin.server.service.persistence.module.PersistenceModule.update()

                        break checkRoot;
                    }
                }
                adminRemoteSecurityService.securityCheck(persistencePackage, EntityOperationType.UPDATE);
                PersistenceModule myModule = getCompatibleModule(persistencePackage.getPersistencePerspective().getOperationTypes().getUpdateType());
                response = myModule.update(persistencePackage);
            }
        } catch (ValidationException e) {
            response = e.getEntity();
        } catch (ServiceException e) {
            if (e.getCause() instanceof ValidationException) {
View Full Code Here

Examples of org.bukkit.block.BlockState.update()

    // center
    BlockState current = this.warzone.getWorld().getBlockAt(x, y - 1, z).getState();
    current.setType(this.warzone.getWarzoneMaterials().getMainBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getMainBlock().getData());
    current.update(true);

    // inner ring
    current = this.warzone.getWorld().getBlockAt(x + 1, y - 1, z + 1).getState();
    current.setType(this.warzone.getWarzoneMaterials().getLightBlock().getType());
    current.setData(this.warzone.getWarzoneMaterials().getLightBlock().getData());
View Full Code Here

Examples of org.bukkit.block.Chest.update()

                            if (item != null) {
                              chest.getInventory().setItem(ii, item);
                              ii++;
                            }
                          }
                          chest.update(true);
                        }
                      }
                    } else if (diskBlockType == Material.DISPENSER.getId()) {
                      // Dispensers read
                      List<ItemStack> items = VolumeMapper.readInventoryString(invsReader.readLine());
View Full Code Here

Examples of org.bukkit.block.CreatureSpawner.update()

    Block block = getActualBlock(x, y, z);
    if (BlackMagic.setBlockType(block, Material.MOB_SPAWNER)) {
      if (block.getType() == Material.MOB_SPAWNER) {
        CreatureSpawner spawner = (CreatureSpawner) block.getState();
        spawner.setSpawnedType(aType);
        spawner.update(true);
      }
    }
  }
 
  public final void setWallSign(int x, int y, int z, Direction.General direction, String[] text) {
View Full Code Here

Examples of org.bukkit.block.Dispenser.update()

                            if (item != null) {
                              dispenser.getInventory().setItem(ii, item);
                              ii++;
                            }
                          }
                          dispenser.update(true);
                        }
                      }
                    } else if (diskBlockType == Material.WOODEN_DOOR.getId() || diskBlockType == Material.IRON_DOOR_BLOCK.getId()) {
                      // Door blocks
                      deferred.add(new DeferredBlockReset(x, y, z, diskBlockType, diskBlockData));
View Full Code Here

Examples of org.bukkit.block.Jukebox.update()

            //FIXME byte data = juke.getRawData();
            //juke.setPlaying(null);
            //event.getBlock().setTypeIdAndData(BlockID.JUKEBOX, data, false);
        } else
            juke.setPlaying(juke.getPlaying());
        juke.update();
    }

    @Override
    public void loadConfiguration (YAMLProcessor config, String path) {
    }
View Full Code Here

Examples of org.bukkit.block.Sign.update()

                              sign.setLine(2, lines[2]);
                            }
                            if (lines.length > 3) {
                              sign.setLine(3, lines[3]);
                            }
                            sign.update(true);
                          }
                        }
                      }
                    } else if (diskBlockType == Material.CHEST.getId()) {
                      // Chests read
View Full Code Here

Examples of org.bukkit.block.Skull.update()

        // -->
        if (mechanism.matches("skull_skin") && getBlock().getState() instanceof Skull) {
            Skull state = ((Skull)getBlock().getState());
            if (!state.setOwner(value.asString()))
                dB.echoError("Failed to set skull_skin!");
            state.update(true);
        }

        if (!mechanism.fulfilled())
            mechanism.reportInvalid();
    }
View Full Code Here

Examples of org.caffinitas.mapper.core.PersistenceSession.update()

            inst = new IfNotExistsEntity();
            inst.setPk(3);
            inst.setCk(5);
            inst.setValue("1-1-update");
            session.update(inst, PersistOption.ifValue("value", "oldVal"));

            IfNotExistsEntity loaded = session.loadOne(IfNotExistsEntity.class, 3, 5);
            Assert.assertEquals(loaded.getValue(), "1-1-update");
        } finally {session.close();}
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.AuthorizationManager.update()

   
    if(authorization.getId() == null) {
      authorizationManager.insert(authorization);
     
    } else {
      authorizationManager.update(authorization);
     
    }
   
    return authorization;
  }
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.