Package com.linkedin.restli.examples.custom.types

Examples of com.linkedin.restli.examples.custom.types.CustomNonNegativeLong.toLong()


  public Greeting get(CompoundKey key)
  {
    CustomNonNegativeLong age = (CustomNonNegativeLong)key.getPart("age");
    Date birthday = (Date)key.getPart("birthday");

    return new Greeting().setId(age.toLong() + birthday.getTime());
  }

  @Override
  public BatchUpdateResult<CompoundKey, Greeting> batchUpdate(BatchUpdateRequest<CompoundKey, Greeting> entities)
  {
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.