Examples of LiteralInCollectionUpdaterProperty


Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

   * @param property
   * @return
   */
  private boolean callMatchLiteral(Vertex examined, Property property) {
    EqualsTo used = new EqualsTo(strategy, getDriver(), path, Updater.ELEMENT_IN_COLLECTION_MARKER);
    return used.matchesVertex(examined, new LiteralInCollectionUpdaterProperty(property, expected, Updater.ELEMENT_IN_COLLECTION_MARKER));
  }
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

      // stinky code fragment for collections : as each value is stored under
      // a key in the form propertyName:index, we have to iterate upon them
      String propertyKeyInIndex = null;
      String propertyValueInIndex = null;
      if (Collection.class.isAssignableFrom(lastProperty.getType())) {
        propertyKeyInIndex = GraphUtils.getEdgeNameFor(new LiteralInCollectionUpdaterProperty(lastProperty, expected, Updater.ELEMENT_IN_COLLECTION_MARKER));
        propertyValueInIndex = Updater.ELEMENT_IN_COLLECTION_MARKER_GRAPH_VALUE;
      } else {
        propertyKeyInIndex = GraphUtils.getEdgeNameFor(lastProperty);
        LiteralTransformer<Type> transformer = Literals.get(expectedClass);
        if(Literals.containsKey(lastProperty.getType())) {
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

   * @param property
   * @return
   */
  public boolean callMatchLiteral(Vertex examined, Property property) {
    EqualsTo used = new EqualsTo(strategy, getDriver(), path, Updater.ELEMENT_IN_COLLECTION_MARKER);
    LiteralInCollectionUpdaterProperty finalProperty = new CollectionAccessByValueProperty(property, expected, Updater.ELEMENT_IN_COLLECTION_MARKER);
    finalProperty.setGenericType(Updater.ELEMENT_IN_COLLECTION_MARKER.getClass());
    return used.matchesVertex(examined, finalProperty);
  }
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

   * @param property
   * @return
   */
  public boolean callMatchLiteral(Vertex examined, Property property) {
    EqualsTo used = new EqualsTo(strategy, getDriver(), path, Updater.ELEMENT_IN_COLLECTION_MARKER);
    return used.matchesVertex(examined, new LiteralInCollectionUpdaterProperty(property, expected, Updater.ELEMENT_IN_COLLECTION_MARKER));
  }
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

      // stinky code fragment for collections : as each value is stored under
      // a key in the form propertyName:index, we have to iterate upon them
      String propertyKeyInIndex = null;
      String propertyValueInIndex = null;
      if (Collection.class.isAssignableFrom(lastProperty.getType())) {
        propertyKeyInIndex = GraphUtils.getEdgeNameFor(new LiteralInCollectionUpdaterProperty(lastProperty, expected, Updater.ELEMENT_IN_COLLECTION_MARKER));
        propertyValueInIndex = Updater.ELEMENT_IN_COLLECTION_MARKER_GRAPH_VALUE;
      } else {
        propertyKeyInIndex = GraphUtils.getEdgeNameFor(lastProperty);
        LiteralTransformer<Type> transformer = Literals.get(expectedClass);
        if(Literals.containsKey(lastProperty.getType())) {
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

   * @param property
   * @return
   */
  public boolean callMatchLiteral(Vertex examined, Property property) {
    EqualsTo used = new EqualsTo(strategy, getDriver(), path, Updater.ELEMENT_IN_COLLECTION_MARKER);
    LiteralInCollectionUpdaterProperty finalProperty = new LiteralInCollectionUpdaterProperty(property, expected, Updater.ELEMENT_IN_COLLECTION_MARKER);
    finalProperty.setGenericType(Updater.ELEMENT_IN_COLLECTION_MARKER.getClass());
    return used.matchesVertex(examined, finalProperty);
  }
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

          loaders.put(index, new LoadValueBehindEdge(e));
        }
      }
      // Not all values were laoded from external edges, maybe they're stored as properties ...
      for (int index = 0; index < collectionSize; index++) {
        AbstractPropertyAdapter elementByIndexProperty = new LiteralInCollectionUpdaterProperty(property, index, null);
        if(rootVertex.getPropertyKeys().contains(GraphUtils.getEdgeNameFor(elementByIndexProperty))) {
          loaders.put(index, new LoadValueInProperty(elementByIndexProperty));
        }
      }
View Full Code Here

Examples of com.dooapp.gaedo.blueprints.operations.LiteralInCollectionUpdaterProperty

      // stinky code fragment for collections : as each value is stored under
      // a key in the form propertyName:index, we have to iterate upon them
      String propertyKeyInIndex = null;
      String propertyValueInIndex = null;
      if (Collection.class.isAssignableFrom(lastProperty.getType())) {
        propertyKeyInIndex = GraphUtils.getEdgeNameFor(new LiteralInCollectionUpdaterProperty(lastProperty, expected, Updater.ELEMENT_IN_COLLECTION_MARKER));
        propertyValueInIndex = Updater.ELEMENT_IN_COLLECTION_MARKER_GRAPH_VALUE;
      } else {
        propertyKeyInIndex = GraphUtils.getEdgeNameFor(lastProperty);
        LiteralTransformer<Type> transformer = Literals.get(expectedClass);
        if(Literals.containsKey(lastProperty.getType())) {
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.