Examples of FinderCrudService


Examples of com.dooapp.gaedo.finders.FinderCrudService

      }
      return returned;
    }
    Class<? extends Object> valueClass = value.getClass();
    if(repository.containsKey(valueClass)) {
      FinderCrudService service = repository.get(valueClass);
      if(service instanceof BluePrintsBackedFinderService) {
        return ((BluePrintsBackedFinderService) service).getVertexFor(value, cascade, objectsBeingUpdated);
      } else {
        throw new IncompatibleServiceException(service, valueClass);
      }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

   */
  @SuppressWarnings("unchecked")
  @Override
  public FieldInformer getInformerFor(Property field) {
    try {
      FinderCrudService service = repository.get(field.getType());
      return service.getInformer().asField(field);
    } catch (NoSuchServiceException e) {
      return null;
    }
  }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

      }
      return returned;
    }
    Class<? extends Object> valueClass = value.getClass();
    if (repository.containsKey(valueClass)) {
      FinderCrudService service = repository.get(valueClass);
      if (service instanceof AbstractBluePrintsBackedFinderService) {
        return ((AbstractBluePrintsBackedFinderService) service).getVertexFor(value, cascade, objectsBeingUpdated);
      } else {
        throw new IncompatibleServiceException(service, valueClass);
      }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

      for(Edge e : edges) {
        Vertex value = e.getInVertex();
        try {
          Object temporaryValue = GraphUtils.createInstance(driver, strategy, classLoader, value, property.getType(), repository, objectsBeingAccessed);
          if(repository.containsKey(temporaryValue.getClass())) {
            FinderCrudService service = repository.get(temporaryValue.getClass());
            if (service instanceof AbstractBluePrintsBackedFinderService) {
              AbstractBluePrintsBackedFinderService<?, ?, ?> blueprints= (AbstractBluePrintsBackedFinderService<?, ?, ?>) service;
              collection.add(blueprints.loadObject(value, objectsBeingAccessed));
            }
          } else {
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

    if (containedClass.isInstance(value)) {
      return getVertexForInstanceOfDataType(value, cascade, objectsBeingUpdated, allowIdGeneration);
    }
    Class<? extends Object> valueClass = value.getClass();
    if (repository.containsKey(valueClass)) {
      FinderCrudService service = repository.get(valueClass);
      if (service instanceof AbstractBluePrintsBackedFinderService) {
        return ((AbstractBluePrintsBackedFinderService) service).getVertexFor(value, cascade, objectsBeingUpdated);
      } else {
        throw new IncompatibleServiceException(service, valueClass);
      }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

    if(collection.size()==0) {
      for(Edge e : rootVertex.getOutEdges(GraphUtils.getEdgeNameFor(property))) {
        Vertex value = e.getInVertex();
        Object temporaryValue = GraphUtils.createInstance(value);
        if(repository.containsKey(temporaryValue.getClass())) {
          FinderCrudService service = repository.get(temporaryValue.getClass());
          if (service instanceof BluePrintsBackedFinderService) {
            BluePrintsBackedFinderService blueprints= (BluePrintsBackedFinderService) service;
            collection.add(blueprints.getObjectFromKey(value));
          }
        } else {
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

      }
      return returned;
    }
    Class<? extends Object> valueClass = value.getClass();
    if(repository.containsKey(valueClass)) {
      FinderCrudService service = repository.get(valueClass);
      if(service instanceof BluePrintsBackedFinderService) {
        return ((BluePrintsBackedFinderService) service).getVertexFor(value);
      } else {
        throw new IncompatibleServiceException(service, valueClass);
      }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

    try {
      for(Edge e : rootVertex.getOutEdges(edgeName)) {
        Vertex value = e.getInVertex();
        Object temporaryValue = GraphUtils.createInstance(driver, strategy, classLoader, value, property.getType(), repository, objectsBeingAccessed);
        if(repository.containsKey(temporaryValue.getClass())) {
          FinderCrudService service = repository.get(temporaryValue.getClass());
          if (service instanceof AbstractBluePrintsBackedFinderService) {
            AbstractBluePrintsBackedFinderService<?, ?, ?> blueprints= (AbstractBluePrintsBackedFinderService<?, ?, ?>) service;
            collection.add(blueprints.loadObject(value, objectsBeingAccessed));
          }
        } else {
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

      }
      return returned;
    }
    Class<? extends Object> valueClass = value.getClass();
    if (repository.containsKey(valueClass)) {
      FinderCrudService service = repository.get(valueClass);
      if (service instanceof AbstractBluePrintsBackedFinderService) {
        return ((AbstractBluePrintsBackedFinderService) service).getVertexFor(value, cascade, objectsBeingUpdated);
      } else {
        throw new IncompatibleServiceException(service, valueClass);
      }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FinderCrudService

  public Representation put() {
    String containedType = getRequestAttributes().get(
        CONTAINED_TYPE_ATTRIBUTE).toString();
    try {
      Class<?> containedClass = Class.forName(containedType);
      FinderCrudService service = getServiceRepository().get(containedClass);
      Map<String, Object> objectParams = RestServiceParams.OBJECT.getParams(getRequestAttributes());
      Object returned = create(service, objectParams);
      return represent(returned);
    } catch(Exception e) {
      return handleExceptionRestReturn("unable to get data from service associated to "+containedType, e);
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.