Class Neo4jItemReaderBuilder<T>
java.lang.Object
org.springframework.batch.item.data.builder.Neo4jItemReaderBuilder<T>
Deprecated.
since 5.0 in favor of the item reader builder from ...
A builder for the
Neo4jItemReader
.- Since:
- 4.0
- Author:
- Glenn Renfro, Mahmoud Ben Hassine
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Returns a fully constructedNeo4jItemReader
.currentItemCount
(int currentItemCount) Deprecated.Index for the current item.matchStatement
(String matchStatement) Deprecated.An optional match fragment of the cypher query.maxItemCount
(int maxItemCount) Deprecated.Configure the max number of items to be read.Deprecated.The name used to calculate the key within theExecutionContext
.orderByStatement
(String orderByStatement) Deprecated.A list of properties to order the results by.pageSize
(int pageSize) Deprecated.The number of items to be read with each page.parameterValues
(Map<String, Object> parameterValues) Deprecated.Optional parameters to be used in the cypher query.returnStatement
(String returnStatement) Deprecated.The return statement of the cypher query.saveState
(boolean saveState) Deprecated.Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.sessionFactory
(org.neo4j.ogm.session.SessionFactory sessionFactory) Deprecated.Establish the session factory for the reader.startStatement
(String startStatement) Deprecated.The start segment of the cypher query.targetType
(Class<T> targetType) Deprecated.The object type to be returned from each call toAbstractItemCountingItemStreamItemReader.read()
whereStatement
(String whereStatement) Deprecated.An optional where fragment of the cypher query.
-
Constructor Details
-
Neo4jItemReaderBuilder
public Neo4jItemReaderBuilder()Deprecated.
-
-
Method Details
-
saveState
Deprecated.Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.- Parameters:
saveState
- defaults to true- Returns:
- The current instance of the builder.
-
name
Deprecated.The name used to calculate the key within theExecutionContext
. Required ifsaveState(boolean)
is set to true.- Parameters:
name
- name of the reader instance- Returns:
- The current instance of the builder.
- See Also:
-
maxItemCount
Deprecated.Configure the max number of items to be read.- Parameters:
maxItemCount
- the max items to be read- Returns:
- The current instance of the builder.
- See Also:
-
currentItemCount
Deprecated.Index for the current item. Used on restarts to indicate where to start from.- Parameters:
currentItemCount
- current index- Returns:
- this instance for method chaining
- See Also:
-
sessionFactory
public Neo4jItemReaderBuilder<T> sessionFactory(org.neo4j.ogm.session.SessionFactory sessionFactory) Deprecated.Establish the session factory for the reader.- Parameters:
sessionFactory
- the factory to use for the reader.- Returns:
- this instance for method chaining
- See Also:
-
pageSize
Deprecated.The number of items to be read with each page.- Parameters:
pageSize
- the number of items- Returns:
- this instance for method chaining
- See Also:
-
parameterValues
Deprecated.Optional parameters to be used in the cypher query.- Parameters:
parameterValues
- the parameter values to be used in the cypher query- Returns:
- this instance for method chaining
- See Also:
-
startStatement
Deprecated.The start segment of the cypher query. START is prepended to the statement provided and should not be included.- Parameters:
startStatement
- the start fragment of the cypher query.- Returns:
- this instance for method chaining
- See Also:
-
returnStatement
Deprecated.The return statement of the cypher query. RETURN is prepended to the statement provided and should not be included- Parameters:
returnStatement
- the return fragment of the cypher query.- Returns:
- this instance for method chaining
- See Also:
-
matchStatement
Deprecated.An optional match fragment of the cypher query. MATCH is prepended to the statement provided and should not be included.- Parameters:
matchStatement
- the match fragment of the cypher query- Returns:
- this instance for method chaining
- See Also:
-
whereStatement
Deprecated.An optional where fragment of the cypher query. WHERE is prepended to the statement provided and should not be included.- Parameters:
whereStatement
- where fragment of the cypher query- Returns:
- this instance for method chaining
- See Also:
-
orderByStatement
Deprecated.A list of properties to order the results by. This is required so that subsequent page requests pull back the segment of results correctly. ORDER BY is prepended to the statement provided and should not be included.- Parameters:
orderByStatement
- order by fragment of the cypher query.- Returns:
- this instance for method chaining
- See Also:
-
targetType
Deprecated.The object type to be returned from each call toAbstractItemCountingItemStreamItemReader.read()
- Parameters:
targetType
- the type of object to return.- Returns:
- this instance for method chaining
- See Also:
-
build
Deprecated.Returns a fully constructedNeo4jItemReader
.- Returns:
- a new
Neo4jItemReader
-