|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mapping.PreferredConstructor<T>
public class PreferredConstructor<T>
Value object to encapsulate the constructor to be used when mapping persistent data to objects.
Nested Class Summary | |
---|---|
static class |
PreferredConstructor.Parameter<T>
Value object to represent constructor parameters. |
Constructor Summary | |
---|---|
PreferredConstructor(Constructor<T> constructor,
PreferredConstructor.Parameter<?>... parameters)
Creates a new PreferredConstructor from the given Constructor and PreferredConstructor.Parameter s. |
Method Summary | |
---|---|
Constructor<T> |
getConstructor()
Returns the underlying Constructor . |
Iterable<PreferredConstructor.Parameter<?>> |
getParameters()
Returns the PreferredConstructor.Parameter s of the constructor. |
boolean |
hasParameters()
Returns whether the constructor has PreferredConstructor.Parameter s. |
boolean |
isExplicitlyAnnotated()
Returns whether the constructor was explicitly selected (by PersistenceConstructor ). |
boolean |
isNoArgConstructor()
Returns whether the constructor does not have any arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferredConstructor(Constructor<T> constructor, PreferredConstructor.Parameter<?>... parameters)
PreferredConstructor
from the given Constructor
and PreferredConstructor.Parameter
s.
constructor
- parameters
- Method Detail |
---|
public Constructor<T> getConstructor()
Constructor
.
public Iterable<PreferredConstructor.Parameter<?>> getParameters()
PreferredConstructor.Parameter
s of the constructor.
public boolean hasParameters()
PreferredConstructor.Parameter
s.
isNoArgConstructor()
public boolean isNoArgConstructor()
hasParameters()
public boolean isExplicitlyAnnotated()
PersistenceConstructor
).
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |