Spring Data Neo4j

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
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
           
 Collection<? extends Annotation> getAnnotations()
           
 IndexInfo getIndexInfo()
           
 String getNeo4jPropertyName()
           
 Neo4jPersistentEntity<?> getOwner()
           
 RelationshipInfo getRelationshipInfo()
          Returns the RelationshipInfo for the given property if it is a relationship or null otherwise.
 Object getValue(Object entity)
           
<T extends Annotation>
boolean
isAnnotationPresent(Class<T> annotationType)
           
 boolean isDeserializableField(ConversionService conversionService)
           
 boolean isIndexed()
           
 boolean isNeo4jPropertyType()
           
 boolean isRelationship()
          Returns whether the property represents a relationship.
 boolean isSerializableField(ConversionService conversionService)
           
 boolean isSimpleValueField()
           
 boolean isSyntheticField()
           
 void setValue(Object entity, Object newValue)
           
 
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
getAssociation, getComponentType, getField, getMapValueType, getName, 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()

isIndexed

boolean isIndexed()

getIndexInfo

IndexInfo getIndexInfo()

getNeo4jPropertyName

String getNeo4jPropertyName()

isSimpleValueField

boolean isSimpleValueField()

isSerializableField

boolean isSerializableField(ConversionService conversionService)

isDeserializableField

boolean isDeserializableField(ConversionService conversionService)

isNeo4jPropertyType

boolean isNeo4jPropertyType()

isSyntheticField

boolean isSyntheticField()

getAnnotations

Collection<? extends Annotation> getAnnotations()

getAnnotation

<T extends Annotation> T getAnnotation(Class<T> annotationType)

isAnnotationPresent

<T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)

setValue

void setValue(Object entity,
              Object newValue)

getValue

Object getValue(Object entity)

getOwner

Neo4jPersistentEntity<?> getOwner()
Specified by:
getOwner in interface org.springframework.data.mapping.PersistentProperty<Neo4jPersistentProperty>

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.