Examples of update()


Examples of net.petrikainulainen.spring.datajpa.model.Person.update()

        if (person == null) {
            LOGGER.debug("No person found with id: " + updated.getId());
            throw new PersonNotFoundException();
        }
       
        person.update(updated.getFirstName(), updated.getLastName());

        return person;
    }

    /**
 
View Full Code Here

Examples of net.petrikainulainen.spring.testmvc.todo.model.Todo.update()

        LOGGER.debug("Updating contact with information: {}", updated);

        Todo model = findById(updated.getId());
        LOGGER.debug("Found a to-do entry: {}", model);

        model.update(updated.getDescription(), updated.getTitle());

        return model;
    }
}
View Full Code Here

Examples of net.physx4java.dynamics.actors.BoxActor.update()

    world.addActor(a);
    world.setGravity(0, -100, 0);
    for (int i = 0; i < 20; i++) {
      world.step(0.01f);
      addText("Testing falling actor, position = " + a.getPosition());
      a.update();
    }
    addText("Test completed, no failure");
  }
  public void pause(int seconds) {
    try {
View Full Code Here

Examples of net.rim.device.api.crypto.MD5Digest.update()

    }
   
    private static String md5Hash( byte[] bytes ) {
        MD5Digest md5 = new MD5Digest();
        md5.reset();
        md5.update( bytes, 0, bytes.length );
        return new String( convertToHexStr( md5.getDigest() ).getBytes() );
    }

    private static String convertToHexStr( byte[] data ) {
        StringBuffer buf = new StringBuffer();
View Full Code Here

Examples of net.rim.device.api.crypto.SHA1Digest.update()

    }

    public static long generateId(String source) {
        String strValue = source;
        SHA1Digest sha1Digest = new SHA1Digest();
        sha1Digest.update(strValue.getBytes());
        byte[] hashValBytes = sha1Digest.getDigest();
        long hashValLong = 0;
        for(int i = 0; i < 8; i++) {
            hashValLong |= ((long) (hashValBytes[i]) & 0x0FF) << (8 * i);
        }
View Full Code Here

Examples of net.schmizz.sshj.signature.Signature.update()

        H = sha1.digest();

        Signature signature = Factory.Named.Util.create(trans.getConfig().getSignatureFactories(),
                                                        KeyType.fromKey(hostKey).toString());
        signature.init(hostKey, null);
        signature.update(H, 0, H.length);
        if (!signature.verify(sig))
            throw new TransportException(DisconnectReason.KEY_EXCHANGE_FAILED,
                                         "KeyExchange signature verification failed");
        return true;
    }
View Full Code Here

Examples of net.schmizz.sshj.transport.digest.Digest.update()

                .putByte((byte) 0) // <placeholder>
                .putRawBytes(sessionID);
        final int pos = hashInput.available() - sessionID.length - 1; // Position of <placeholder>

        hashInput.array()[pos] = 'A';
        hash.update(hashInput.array(), 0, hashInput.available());
        final byte[] initialIV_C2S = hash.digest();

        hashInput.array()[pos] = 'B';
        hash.update(hashInput.array(), 0, hashInput.available());
        final byte[] initialIV_S2C = hash.digest();
View Full Code Here

Examples of net.sf.archimede.model.collection.CollectionDao.update()

    }
   
    public String update() {
        CollectionDao collectionDao = CollectionDao.createInstance();
        try {
            collectionDao.update(this.selectedCollection.getCollection());
        } catch (ObjectLockedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (ObjectExistsException e) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of net.sf.archimede.model.folder.FolderDao.update()

    }
   
    public String update() {
        FolderDao folderDao = FolderDao.createInstance();
        try {
            folderDao.update(this.selectedFolder.getFolder());
        } catch (ObjectLockedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (ObjectExistsException e) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of net.sf.archimede.model.storedFile.StoredFileDao.update()

    }
   
    public String update() {
        StoredFileDao storedFileDao = StoredFileDao.createInstance();
        try {
            storedFileDao.update(this.selectedStoredFile.getStoredFile());
        } catch (ObjectLockedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (ObjectExistsException e) {
            // TODO Auto-generated catch block
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.