|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mapping.PreferredConstructor.Parameter<T,P>
T
- the type of the parameterpublic static class PreferredConstructor.Parameter<T,P extends PersistentProperty<P>>
Value object to represent constructor parameters.
Constructor Summary | |
---|---|
PreferredConstructor.Parameter(String name,
TypeInformation<T> type,
Annotation[] annotations,
PersistentEntity<T,P> entity)
Creates a new PreferredConstructor.Parameter with the given name, TypeInformation as well as an array of
Annotation s. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getName()
Returns the name of the parameter or null if none was given. |
Class<T> |
getRawType()
Returns the raw resolved type of the parameter. |
String |
getSpelExpression()
Returns the key to be used when looking up a source data structure to populate the actual parameter value. |
TypeInformation<T> |
getType()
Returns the TypeInformation of the parameter. |
int |
hashCode()
|
boolean |
hasSpelExpression()
Returns whether the constructor parameter is equipped with a SpEL expression. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferredConstructor.Parameter(String name, TypeInformation<T> type, Annotation[] annotations, PersistentEntity<T,P> entity)
PreferredConstructor.Parameter
with the given name, TypeInformation
as well as an array of
Annotation
s. Will insprect the annotations for an Value
annotation to lookup a key or an SpEL
expression to be evaluated.
name
- the name of the parameter, can be nulltype
- must not be nullannotations
- must not be null but can be emptyentity
- can be null.Method Detail |
---|
public String getName()
public TypeInformation<T> getType()
TypeInformation
of the parameter.
public Class<T> getRawType()
public String getSpelExpression()
public boolean hasSpelExpression()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |