Examples of Gemstone


Examples of sample.data.gemfire.domain.Gemstone

    Assert.notNull(gemstone.getName(), "The name of the Gemstone must be specified!");

    // NOTE deliberately (naively) validate the Gemstone after mutating data access in
    // GemFire rather than before
    // to demonstrate transactions in GemFire.
    Gemstone savedGemstone = validate(this.gemstoneRepo.save(gemstone));

    Assert.state(savedGemstone.equals(get(gemstone.getId())), String.format(
        "Failed to find Gemstone (%1$s) in GemFire's Cache Region 'Gemstones'!",
        gemstone));

    System.out.printf("Saved Gemstone (%1$s)%n", savedGemstone.getName());

    return gemstone;
  }
View Full Code Here

Examples of sample.data.gemfire.domain.Gemstone

  protected Gemstone createGemstone(final String name) {
    return createGemstone(this.ID_GENERATOR.incrementAndGet(), name);
  }

  protected Gemstone createGemstone(final Long id, final String name) {
    return new Gemstone(id, name);
  }
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.