Package com.dooapp.gaedo.finders.repository

Examples of com.dooapp.gaedo.finders.repository.ServiceRepository.containsKey()


  @Override
    public <DataType> void deleteVertex(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?> service, GraphDatabaseDriver driver, Vertex objectVertex, Vertex valueVertex, Serializable value, ObjectCache objectsBeingUpdated) {
    ServiceRepository repository = driver.getRepository();
    // some first-level check to see if someone else than this transformer has any knowledge of value (because, well, this id will be longer than hell)
    Class<? extends Serializable> valueClass = value.getClass();
    if(repository.containsKey(valueClass)) {
      FinderCrudService dedicated = repository.get(valueClass);
      if (dedicated instanceof AbstractBluePrintsBackedFinderService) {
        AbstractBluePrintsBackedFinderService blueprints= (AbstractBluePrintsBackedFinderService) dedicated;
        blueprints.deleteOutEdgeVertex(objectVertex, valueVertex, value, objectsBeingUpdated);
        return;
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.