|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.query.parser.Property
public class Property
Abstraction of a Property of a domain class.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static Property |
from(String source,
Class<?> type)
Extracts the Property chain from the given source String
and type. |
String |
getName()
Returns the name of the Property. |
TypeInformation<?> |
getOwningType()
Returns the owning type of the Property. |
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 Property. |
boolean |
isCollection()
Returns whether the Property is actually a collection. |
Property |
next()
Returns the next nested Property. |
String |
toDotPath()
Returns the Property path in dot notation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public TypeInformation<?> getOwningType()
Property.
public String getName()
Property.
public Class<?> getType()
Iterable or the
value type of a Map if the property is one.
public Property next()
Property.
Property or null if no nested
Property available.hasNext()public boolean hasNext()
Property. If this returns
true you can expect next() to return a non-
null value.
public String toDotPath()
Property path in dot notation.
public boolean isCollection()
Property is actually a collection.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
public static Property from(String source,
Class<?> type)
Property chain from the given source String
and type.
source - type -
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||