Examples of elementSize()


Examples of com.google.storage.onestore.v3.OnestoreEntity.Path.elementSize()

  public static void updateKey(Reference reference, Key key) {

    if (key.getName() == null) {
      Path path = reference.getPath();
      key.setId(path.getElement(path.elementSize() - 1).getId());
    }
  }

  KeyTranslator() { }
}
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.Path.elementSize()

     * @return
     */
    private String getKindFromKey(Reference key) {
        Path p = key.getPath();
        logger.debug("key: " + p);
        int size = p.elementSize();
        Element target = p.getElement(size-1);
        String kind = target.getType();
        logger.debug("kind: " + target.getType());
        return kind;
    }
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.