public final class Neo4jExecutor extends Object
Constructor and Description |
---|
Neo4jExecutor(org.neo4j.ogm.session.SessionFactory sessionFactory)
Instantiates a new neo 4 j executor.
|
Modifier and Type | Method and Description |
---|---|
long |
countEntitiesOfType(Class<?> entity)
Count entities of type.
|
<T> void |
delete(T object)
Delete.
|
<T> void |
deleteAll(Class<T> targetClass)
Delete all.
|
<T> T |
load(Class<T> targetClass,
Long id)
Load.
|
<T> T |
load(Class<T> targetClass,
Long id,
int depth)
Load.
|
<T> Collection<T> |
loadAll(Class<T> targetClass)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
org.neo4j.ogm.cypher.query.SortOrder sortOrder)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
Collection<Long> ids,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
org.neo4j.ogm.cypher.query.SortOrder sortOrder)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filter filter,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
org.neo4j.ogm.cypher.query.SortOrder sortOrder)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.Filters filters,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.query.SortOrder sortOrder)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Class<T> targetClass,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
org.neo4j.ogm.cypher.query.SortOrder sortOrder)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
int depth)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination)
Load all.
|
<T> Collection<T> |
loadAll(Collection<T> objects,
org.neo4j.ogm.cypher.query.SortOrder sortOrder,
org.neo4j.ogm.cypher.query.Pagination pagination,
int depth)
Load all.
|
org.neo4j.ogm.session.Session |
openSession()
Open session.
|
<T> com.landawn.abacus.util.stream.Stream<T> |
query(Class<T> objectType,
String cypher,
Map<String,?> parameters)
Query.
|
com.landawn.abacus.util.stream.Stream<Map<String,Object>> |
query(String cypher,
Map<String,?> parameters)
Query.
|
com.landawn.abacus.util.stream.Stream<Map<String,Object>> |
query(String cypher,
Map<String,?> parameters,
boolean readOnly)
Query.
|
<T> T |
queryForObject(Class<T> objectType,
String cypher,
Map<String,?> parameters)
Query for object.
|
Long |
resolveGraphIdFor(Object possibleEntity)
Resolve graph id for.
|
<T> void |
save(T object)
Save.
|
<T> void |
save(T object,
int depth)
Save.
|
org.neo4j.ogm.session.SessionFactory |
sessionFactory()
Session factory.
|
public Neo4jExecutor(org.neo4j.ogm.session.SessionFactory sessionFactory)
sessionFactory
- the session factorypublic org.neo4j.ogm.session.SessionFactory sessionFactory()
public org.neo4j.ogm.session.Session openSession()
public <T> T load(Class<T> targetClass, Long id)
T
- the generic typetargetClass
- the target classid
- the idpublic <T> T load(Class<T> targetClass, Long id, int depth)
T
- the generic typetargetClass
- the target classid
- the iddepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids)
T
- the generic typetargetClass
- the target classids
- the idspublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, int depth)
T
- the generic typetargetClass
- the target classids
- the idsdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, org.neo4j.ogm.cypher.query.SortOrder sortOrder)
T
- the generic typetargetClass
- the target classids
- the idssortOrder
- the sort orderpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, org.neo4j.ogm.cypher.query.SortOrder sortOrder, int depth)
T
- the generic typetargetClass
- the target classids
- the idssortOrder
- the sort orderdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classids
- the idspagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classids
- the idspagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classids
- the idssortOrder
- the sort orderpagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, Collection<Long> ids, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classids
- the idssortOrder
- the sort orderpagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Collection<T> objects)
T
- the generic typeobjects
- the objectspublic <T> Collection<T> loadAll(Collection<T> objects, int depth)
T
- the generic typeobjects
- the objectsdepth
- the depthpublic <T> Collection<T> loadAll(Collection<T> objects, org.neo4j.ogm.cypher.query.SortOrder sortOrder)
T
- the generic typeobjects
- the objectssortOrder
- the sort orderpublic <T> Collection<T> loadAll(Collection<T> objects, org.neo4j.ogm.cypher.query.SortOrder sortOrder, int depth)
T
- the generic typeobjects
- the objectssortOrder
- the sort orderdepth
- the depthpublic <T> Collection<T> loadAll(Collection<T> objects, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typeobjects
- the objectspagination
- the paginationpublic <T> Collection<T> loadAll(Collection<T> objects, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typeobjects
- the objectspagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Collection<T> objects, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typeobjects
- the objectssortOrder
- the sort orderpagination
- the paginationpublic <T> Collection<T> loadAll(Collection<T> objects, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typeobjects
- the objectssortOrder
- the sort orderpagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass)
T
- the generic typetargetClass
- the target classpublic <T> Collection<T> loadAll(Class<T> targetClass, int depth)
T
- the generic typetargetClass
- the target classdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.query.SortOrder sortOrder)
T
- the generic typetargetClass
- the target classsortOrder
- the sort orderpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.query.SortOrder sortOrder, int depth)
T
- the generic typetargetClass
- the target classsortOrder
- the sort orderdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classpagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classpagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classsortOrder
- the sort orderpagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classsortOrder
- the sort orderpagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter)
T
- the generic typetargetClass
- the target classfilter
- the filterpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, int depth)
T
- the generic typetargetClass
- the target classfilter
- the filterdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, org.neo4j.ogm.cypher.query.SortOrder sortOrder)
T
- the generic typetargetClass
- the target classfilter
- the filtersortOrder
- the sort orderpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, org.neo4j.ogm.cypher.query.SortOrder sortOrder, int depth)
T
- the generic typetargetClass
- the target classfilter
- the filtersortOrder
- the sort orderdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classfilter
- the filterpagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classfilter
- the filterpagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classfilter
- the filtersortOrder
- the sort orderpagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filter filter, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classfilter
- the filtersortOrder
- the sort orderpagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters)
T
- the generic typetargetClass
- the target classfilters
- the filterspublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, int depth)
T
- the generic typetargetClass
- the target classfilters
- the filtersdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, org.neo4j.ogm.cypher.query.SortOrder sortOrder)
T
- the generic typetargetClass
- the target classfilters
- the filterssortOrder
- the sort orderpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, org.neo4j.ogm.cypher.query.SortOrder sortOrder, int depth)
T
- the generic typetargetClass
- the target classfilters
- the filterssortOrder
- the sort orderdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classfilters
- the filterspagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classfilters
- the filterspagination
- the paginationdepth
- the depthpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination)
T
- the generic typetargetClass
- the target classfilters
- the filterssortOrder
- the sort orderpagination
- the paginationpublic <T> Collection<T> loadAll(Class<T> targetClass, org.neo4j.ogm.cypher.Filters filters, org.neo4j.ogm.cypher.query.SortOrder sortOrder, org.neo4j.ogm.cypher.query.Pagination pagination, int depth)
T
- the generic typetargetClass
- the target classfilters
- the filterssortOrder
- the sort orderpagination
- the paginationdepth
- the depthpublic <T> void save(T object)
T
- the generic typeobject
- the objectpublic <T> void save(T object, int depth)
T
- the generic typeobject
- the objectdepth
- the depthpublic <T> void delete(T object)
T
- the generic typeobject
- the objectpublic <T> void deleteAll(Class<T> targetClass)
T
- the generic typetargetClass
- the target classpublic <T> T queryForObject(Class<T> objectType, String cypher, Map<String,?> parameters)
T
- the generic typeobjectType
- the object typecypher
- the cypherparameters
- the parameterspublic com.landawn.abacus.util.stream.Stream<Map<String,Object>> query(String cypher, Map<String,?> parameters)
cypher
- the cypherparameters
- the parameterspublic com.landawn.abacus.util.stream.Stream<Map<String,Object>> query(String cypher, Map<String,?> parameters, boolean readOnly)
cypher
- the cypherparameters
- the parametersreadOnly
- the read onlypublic <T> com.landawn.abacus.util.stream.Stream<T> query(Class<T> objectType, String cypher, Map<String,?> parameters)
T
- the generic typeobjectType
- the object typecypher
- the cypherparameters
- the parameterspublic long countEntitiesOfType(Class<?> entity)
entity
- the entityCopyright © 2019. All rights reserved.