Spring Data Commons

org.springframework.data.mapping.model
Interface PersistentProperty

All Known Implementing Classes:
BasicPersistentProperty

public interface PersistentProperty

Author:
Graeme Rocher, Jon Brisbin, Oliver Gierke

Method Summary
 Association getAssociation()
           
 Class<?> getComponentType()
          Returns the component type of the type if it is a Collection.
 Field getField()
           
 Class<?> getMapValueType()
          Returns the type of the values if the property is a Map.
 String getName()
          The name of the property
 Object getOwner()
           
 PropertyDescriptor getPropertyDescriptor()
           
 Class<?> getType()
          The type of the property
 TypeInformation getTypeInformation()
           
 Value getValueAnnotation()
           
 boolean isArray()
           
 boolean isAssociation()
           
 boolean isCollection()
           
 boolean isComplexType()
           
 boolean isEntity()
          Returns whether the property has to be regarded as entity which means its type will be also be considered to be a PersistentEntity.
 boolean isIdProperty()
           
 boolean isMap()
           
 boolean isTransient()
           
 

Method Detail

getOwner

Object getOwner()

getName

String getName()
The name of the property

Returns:
The property name

getType

Class<?> getType()
The type of the property

Returns:
The property type

getTypeInformation

TypeInformation getTypeInformation()

getPropertyDescriptor

PropertyDescriptor getPropertyDescriptor()

getField

Field getField()

getValueAnnotation

Value getValueAnnotation()

isTransient

boolean isTransient()

isAssociation

boolean isAssociation()

getAssociation

Association getAssociation()

isCollection

boolean isCollection()

isMap

boolean isMap()

isArray

boolean isArray()

isComplexType

boolean isComplexType()

isEntity

boolean isEntity()
Returns whether the property has to be regarded as entity which means its type will be also be considered to be a PersistentEntity.

Returns:

getComponentType

Class<?> getComponentType()
Returns the component type of the type if it is a Collection. Will return the type of the key if the property is a Map.

Returns:
the component type, the map's key type or null if neither Collection nor Map.

getMapValueType

Class<?> getMapValueType()
Returns the type of the values if the property is a Map.

Returns:
the map's value type or null if no Map

isIdProperty

boolean isIdProperty()

Spring Data Commons

Copyright © 2011. All Rights Reserved.