Class AbstractNeo4jItemReader<T>

    • Field Detail

      • logger

        protected org.apache.commons.logging.Log logger
    • Constructor Detail

      • AbstractNeo4jItemReader

        public AbstractNeo4jItemReader()
    • Method Detail

      • setParameterValues

        public void setParameterValues​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
        Optional parameters to be used in the cypher query.
        Parameters:
        parameterValues - the parameter values to be used in the cypher query
      • getParameterValues

        protected final java.util.Map<java.lang.String,​java.lang.Object> getParameterValues()
      • setStartStatement

        public void setStartStatement​(java.lang.String startStatement)
        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.
      • setReturnStatement

        public void setReturnStatement​(java.lang.String returnStatement)
        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.
      • setMatchStatement

        public void setMatchStatement​(java.lang.String matchStatement)
        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
      • setWhereStatement

        public void setWhereStatement​(java.lang.String whereStatement)
        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
      • setOrderByStatement

        public void setOrderByStatement​(java.lang.String orderByStatement)
        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.
      • getSessionFactory

        protected org.neo4j.ogm.session.SessionFactory getSessionFactory()
      • setSessionFactory

        public void setSessionFactory​(org.neo4j.ogm.session.SessionFactory sessionFactory)
        Establish the session factory for the reader.
        Parameters:
        sessionFactory - the factory to use for the reader.
      • getTargetType

        protected final java.lang.Class<T> getTargetType()
      • generateLimitCypherQuery

        protected java.lang.String generateLimitCypherQuery()
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Checks mandatory properties
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
        See Also:
        InitializingBean.afterPropertiesSet()