Package org.springframework.data.neo4j.mapping

Examples of org.springframework.data.neo4j.mapping.RelationshipInfo


    }

  @Override
  public boolean accept(final Neo4jPersistentProperty property) {
      if (!property.isRelationship()) return false;
        final RelationshipInfo info = property.getRelationshipInfo();
        return info.isCollection() && info.isRelatedTo() && info.isReadonly();
  }
View Full Code Here


        return info.isCollection() && info.isRelatedTo() && info.isReadonly();
  }

  @Override
  public FieldAccessor forField(final Neo4jPersistentProperty property) {
        final RelationshipInfo relationshipInfo = property.getRelationshipInfo();
        return new ReadOnlyRelatedToCollectionFieldAccessor(relationshipInfo.getRelationshipType(), relationshipInfo.getDirection(), (Class<?>) property.getRelationshipInfo().getTargetType().getType(), template,property);
  }
View Full Code Here

        return property.getRelationshipInfo().isRelatedTo() && property.getRelationshipInfo().isSingle();
    }

    @Override
    public FieldAccessor forField(final Neo4jPersistentProperty property) {
        final RelationshipInfo relationshipInfo = property.getRelationshipInfo();
        return new RelatedToSingleFieldAccessor(relationshipInfo.getRelationshipType(), relationshipInfo.getDirection(), (Class<?>) relationshipInfo.getTargetType().getType(), template,property);
    }
View Full Code Here

    }

    @Override
    public boolean accept(final Neo4jPersistentProperty property) {
        if (!property.isRelationship()) return false;
        final RelationshipInfo info = property.getRelationshipInfo();
        return info.isCollection() && info.isRelatedTo() && !info.isReadonly();
    }
View Full Code Here

        return info.isCollection() && info.isRelatedTo() && !info.isReadonly();
    }

    @Override
    public FieldAccessor forField(final Neo4jPersistentProperty property) {
        final RelationshipInfo relationshipInfo = property.getRelationshipInfo();
        final Class<?> targetType = relationshipInfo.getTargetType().getType();
        return new RelatedToCollectionFieldAccessor(relationshipInfo.getRelationshipType(), relationshipInfo.getDirection(), targetType, template, property);
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.mapping.RelationshipInfo

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.