org.springframework.data.repository.query.parser
Class Part
java.lang.Object
org.springframework.data.repository.query.parser.Part
public class Part
- extends Object
A single part of a method name that has to be transformed into a query part.
The actual transformation is defined by a Part.Type
that is determined
from inspecting the given part. The query part can then be looked up via
#getQueryPart()
.
- Author:
- Oliver Gierke
Nested Class Summary |
static class |
Part.Type
The type of a method name part. |
Constructor Summary |
Part(String part,
Class<?> clazz)
Creates a new Part from the given method name part, the
Class the part originates from and the start parameter index. |
Part
public Part(String part,
Class<?> clazz)
- Creates a new
Part
from the given method name part, the
Class
the part originates from and the start parameter index.
- Parameters:
part
- clazz
-
getParameterRequired
public boolean getParameterRequired()
getNumberOfArguments
public int getNumberOfArguments()
- Returns how many method parameters are bound by this part.
- Returns:
getProperty
public Property getProperty()
- Returns:
- the part
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getType
public Part.Type getType()
- Returns:
- the type
Copyright © 2011. All Rights Reserved.