public final class ConstructorQueryMappings
extends java.lang.Object
DatabaseQuery
and checks if it's a constructor query. If it is one,
then the fully qualified class name and the persistent fields will be available.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Returns the class name used to define the constructor expression.
|
DatabaseQuery |
getQuery()
Returns the
DatabaseQuery for which its JPQL query was scanned to check if it's
constructor query and if so, to gather the information. |
boolean |
isConstructorQuery()
Determines whether the JPQL query is a constructor query, i.e.
|
java.lang.Iterable<DatabaseMapping> |
mappings()
Returns a non-
null Iterable over the ordered list of DatabaseMapping
objects that represents the parameter arguments defined in the constructor expression. |
public java.lang.String getClassName()
null
if the query is not a constructor querypublic DatabaseQuery getQuery()
DatabaseQuery
for which its JPQL query was scanned to check if it's
constructor query and if so, to gather the information.DatabaseQuery
that was scannedpublic boolean isConstructorQuery()
Example: SELECT new test.example.Employee(e.name, e.id) FROM Employee e
true
if the SELECT
clause has a single select item
and it's a constructor expression; false
otherwisepublic java.lang.Iterable<DatabaseMapping> mappings()
null
Iterable
over the ordered list of DatabaseMapping
objects that represents the parameter arguments defined in the constructor expression.EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference