Examples of FinderCrudService


Examples of com.dooapp.gaedo.finders.FinderCrudService

  public Representation find() {
    String containedType = getRequestAttributes().get(
        CONTAINED_TYPE_ATTRIBUTE).toString();
    try {
      Class<?> containedClass = Class.forName(containedType);
      FinderCrudService service = getServiceRepository().get(containedClass);
      Map<String, Object> filterParams = RestServiceParams.FILTER.getParams(getRequestAttributes());
      Map<String, Object> sortParams = RestServiceParams.SORT.getParams(getRequestAttributes());
      Map<String, Object> returnParams = RestServiceParams.RETURN.getParams(getRequestAttributes());
      Object returnable = find(service, filterParams, sortParams, returnParams);
      return represent(returnable);
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

  }

  protected Object loadValue(ObjectCache objectsBeingAccessed, Vertex value) {
    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;
        temporaryValue = 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

      }
      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

    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

    try {
      for(Edge e : rootVertex.getOutEdges(GraphUtils.getEdgeNameFor(property))) {
        Vertex value = e.getInVertex();
        Object temporaryValue = GraphUtils.createInstance(classLoader, value, repository, objectsBeingAccessed);
        if(repository.containsKey(temporaryValue.getClass())) {
          FinderCrudService service = repository.get(temporaryValue.getClass());
          if (service instanceof BluePrintsBackedFinderService) {
            BluePrintsBackedFinderService blueprints= (BluePrintsBackedFinderService) 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 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

      }
      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

      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
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.