public class Projections extends Object
Projection
.Constructor and Description |
---|
Projections() |
Modifier and Type | Method and Description |
---|---|
static <T> org.neo4j.driver.projection.Projection<T> |
as(Class<T> type)
Create a simple
type projection. |
static <T> org.neo4j.driver.projection.Projection<T> |
singleAs(Class<T> type)
Create a
type projection for a query result with only one column. |
static ProjectionListSingle |
singleAsListOf(Class type)
Create a
type projection for a query result with only one column that is a list. |
public static <T> org.neo4j.driver.projection.Projection<T> singleAs(Class<T> type)
type
projection for a query result with only one column.public static ProjectionListSingle singleAsListOf(Class type)
type
projection for a query result with only one column that is a list.
This was created because a list of class is not a class.
SO to call this method you have to pass the parameter like this new ArrayList(){}.getClass()
.public static <T> org.neo4j.driver.projection.Projection<T> as(Class<T> type)
type
projection.Copyright © 2017. All rights reserved.