Examples of RelationshipInfo


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

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

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

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

        return property.getRelationshipInfo().isRelatedToVia() && property.getRelationshipInfo().isCollection();
    }

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

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

            final Neo4jPersistentProperty property = relPath.getBaseProperty();
            return formatMatch(variableContext.getVariableFor(property.getOwner()),
                    QueryTemplates.getArrow(property.getRelationshipInfo()),
                    variableContext.getVariableFor(relPath));
        }
        final RelationshipInfo info = relPath.getLeafProperty().getRelationshipInfo();
        return formatMatch2(matchPattern(variableContext, relPath.getParentPath()),
                QueryTemplates.getArrow(info),
                variableContext.getVariableFor(relPath));
    }
View Full Code Here

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

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

        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

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

        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

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

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

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