Class ReturnedType
java.lang.Object
org.springframework.data.repository.query.ReturnedType
A representation of the type returned by a
QueryMethod
.- Since:
- 1.12
- Author:
- Oliver Gierke, Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionfinal Class<?>
Returns the entity type.Returns the properties required to be used to populate the result.abstract Class<?>
Returns the type of the individual objects to return.abstract Class<?>
Returns the type that the query execution is supposed to pass to the underlying infrastructure.final boolean
isInstance
(Object source) Returns whether the given source object is an instance of the returned type.abstract boolean
Returns whether the type is projecting, i.e. not of the domain type.abstract boolean
Returns whether the returned type will require custom construction.
-
Method Details
-
getDomainType
Returns the entity type.- Returns:
-
isInstance
Returns whether the given source object is an instance of the returned type.- Parameters:
source
- can be null.- Returns:
-
isProjecting
public abstract boolean isProjecting()Returns whether the type is projecting, i.e. not of the domain type.- Returns:
-
getReturnedType
Returns the type of the individual objects to return.- Returns:
-
needsCustomConstruction
public abstract boolean needsCustomConstruction()Returns whether the returned type will require custom construction.- Returns:
-
getTypeToRead
Returns the type that the query execution is supposed to pass to the underlying infrastructure. null is returned to indicate a generic type (a map or tuple-like type) shall be used.- Returns:
-
getInputProperties
Returns the properties required to be used to populate the result.- Returns:
-