|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mapping.PropertyPath
public class PropertyPath
Abstraction of a PropertyPath of a domain class.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static PropertyPath |
from(String source,
Class<?> type)
Extracts the PropertyPath chain from the given source String and type. |
static PropertyPath |
from(String source,
TypeInformation<?> type)
Extracts the PropertyPath chain from the given source String and TypeInformation. |
PropertyPath |
getLeafProperty()
Returns the leaf property of the PropertyPath. |
TypeInformation<?> |
getOwningType()
Returns the owning type of the PropertyPath. |
String |
getSegment()
Returns the name of the PropertyPath. |
Class<?> |
getType()
Returns the type of the property will return the plain resolved type for simple properties, the component type for any Iterable or the value type of a Map if the property is one. |
int |
hashCode()
|
boolean |
hasNext()
Returns whether there is a nested PropertyPath. |
boolean |
isCollection()
Returns whether the PropertyPath is actually a collection. |
Iterator<PropertyPath> |
iterator()
|
PropertyPath |
next()
Returns the next nested PropertyPath. |
String |
toDotPath()
Returns the PropertyPath in dot notation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public TypeInformation<?> getOwningType()
PropertyPath.
public String getSegment()
PropertyPath.
public PropertyPath getLeafProperty()
PropertyPath.
public Class<?> getType()
Iterable or the value type of a Map if the property is one.
public PropertyPath next()
PropertyPath.
PropertyPath or null if no nested PropertyPath available.hasNext()public boolean hasNext()
PropertyPath. If this returns true you can expect
next() to return a non- null value.
public String toDotPath()
PropertyPath in dot notation.
public boolean isCollection()
PropertyPath is actually a collection.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Iterator<PropertyPath> iterator()
iterator in interface Iterable<PropertyPath>
public static PropertyPath from(String source,
Class<?> type)
PropertyPath chain from the given source String and type.
source - type -
public static PropertyPath from(String source,
TypeInformation<?> type)
PropertyPath chain from the given source String and TypeInformation.
source - must not be null.type -
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||