Package org.springframework.data.neo4j.support.node

Examples of org.springframework.data.neo4j.support.node.NodeEntityStateFactory


    @Bean
  public Neo4jNodeBacking neo4jNodeBacking() throws Exception {
    Neo4jNodeBacking aspect = Neo4jNodeBacking.aspectOf();
    aspect.setGraphDatabaseContext(graphDatabaseContext());
        NodeEntityStateFactory entityStateFactory = nodeEntityStateFactory();
    aspect.setNodeEntityStateFactory(entityStateFactory);
    return aspect;
  }
View Full Code Here


    }

    @Bean
    public NodeEntityStateFactory nodeEntityStateFactory() throws Exception {

        NodeEntityStateFactory entityStateFactory = new NodeEntityStateFactory();
        entityStateFactory.setGraphDatabaseContext(graphDatabaseContext());
        entityStateFactory.setEntityManagerFactory(entityManagerFactory);
        entityStateFactory.setMappingContext(mappingContext());
        entityStateFactory.setNodeDelegatingFieldAccessorFactory(nodeDelegatingFieldAccessorFactory());
        return entityStateFactory;
    }
View Full Code Here

    @Bean
  public Neo4jNodeBacking neo4jNodeBacking() throws Exception {
    Neo4jNodeBacking aspect = Neo4jNodeBacking.aspectOf();
    aspect.setTemplate(neo4jTemplate());
        NodeEntityStateFactory entityStateFactory = nodeEntityStateFactory();
    aspect.setNodeEntityStateFactory(entityStateFactory);
    return aspect;
  }
View Full Code Here

        final NoopRelationshipTypeRepresentationStrategy relationshipTypeRepresentationStrategy = new NoopRelationshipTypeRepresentationStrategy();
        factoryBean.setRelationshipTypeRepresentationStrategy(relationshipTypeRepresentationStrategy);
        factoryBean.setConversionService(new Neo4jConversionServiceFactoryBean().getObject());
        factoryBean.setEntityStateHandler(entityStateHandler);

        EntityStateFactory<Node> nodeEntityStateFactory = new NodeEntityStateFactory(mappingContext, new FieldAccessorFactoryFactory() {
                    public DelegatingFieldAccessorFactory create(Neo4jTemplate template) {
                        return new NodeDelegatingFieldAccessorFactory(template);
                    }
                });
View Full Code Here

        }
        if (this.relationshipTypeRepresentationStrategy == null) {
            this.relationshipTypeRepresentationStrategy = typeRepresentationStrategyFactory.getRelationshipTypeRepresentationStrategy();
        }
        if (this.nodeEntityStateFactory==null) {
            this.nodeEntityStateFactory = new NodeEntityStateFactory(mappingContext, new NodeDelegatingFieldAccessorFactory.Factory());
        }
        if (this.relationshipEntityStateFactory==null) {
            this.relationshipEntityStateFactory = new RelationshipEntityStateFactory(mappingContext, new RelationshipDelegatingFieldAccessorFactory.Factory());
        }
        this.typeRepresentationStrategies = new TypeRepresentationStrategies(mappingContext, nodeTypeRepresentationStrategy, relationshipTypeRepresentationStrategy);
View Full Code Here

        return new RelationshipEntityStateFactory(neo4jMappingContext(),relationshipDelegatingFieldAccessorFactory());
    }

    @Bean
    public NodeEntityStateFactory nodeEntityStateFactory() throws Exception {
        return new NodeEntityStateFactory(neo4jMappingContext(), nodeDelegatingFieldAccessorFactory());
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.support.node.NodeEntityStateFactory

Copyright © 2018 www.massapicom. 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.