public class Neo4jItemWriterBuilder<T>
extends java.lang.Object
Neo4jItemWriter
Neo4jItemWriter
Constructor and Description |
---|
Neo4jItemWriterBuilder() |
Modifier and Type | Method and Description |
---|---|
Neo4jItemWriter<T> |
build()
Validates and builds a
Neo4jItemWriter . |
Neo4jItemWriterBuilder<T> |
delete(boolean delete)
Boolean flag indicating whether the writer should save or delete the item at write
time.
|
Neo4jItemWriterBuilder<T> |
sessionFactory(org.neo4j.ogm.session.SessionFactory sessionFactory)
Establish the session factory that will be used to create
Session instances
for interacting with Neo4j. |
public Neo4jItemWriterBuilder<T> delete(boolean delete)
delete
- true if write should delete item, false if item should be saved.
Default is false.Neo4jItemWriter.setDelete(boolean)
public Neo4jItemWriterBuilder<T> sessionFactory(org.neo4j.ogm.session.SessionFactory sessionFactory)
Session
instances
for interacting with Neo4j.sessionFactory
- sessionFactory to be used.Neo4jItemWriter.setSessionFactory(SessionFactory)
public Neo4jItemWriter<T> build()
Neo4jItemWriter
.Neo4jItemWriter