Spring Data Graph

org.springframework.data.neo4j.mapping
Interface Neo4JPersistentProperty

All Superinterfaces:
org.springframework.data.mapping.PersistentProperty<Neo4JPersistentProperty>

public interface Neo4JPersistentProperty
extends org.springframework.data.mapping.PersistentProperty<Neo4JPersistentProperty>

Interface for Neo4J specific PersistentPropertys. Declares additional metadata to lookup relationship information.

Author:
Oliver Gierke

Method Summary
 RelationshipInfo getRelationshipInfo()
          Returns the RelationshipInfo for the given property if it is a relationship or null otherwise.
 boolean isRelationship()
          Returns whether the property represents a relationship.
 
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPropertyDescriptor, getRawType, getSpelExpression, getType, getTypeInformation, isArray, isAssociation, isCollection, isComplexType, isEntity, isIdProperty, isMap, isTransient
 

Method Detail

isRelationship

boolean isRelationship()
Returns whether the property represents a relationship. If this returns true, clients can expect getRelationshipInfo() to return a non-null value.

Returns:

getRelationshipInfo

RelationshipInfo getRelationshipInfo()
Returns the RelationshipInfo for the given property if it is a relationship or null otherwise.

Returns:
See Also:
isRelationship()

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.