org.apache.cayenne.access.sqlbuilder

## Interface NodeTreeVisitor

- All Known Implementing Classes:
    BaseSQLTreeProcessor, DB2SQLTreeProcessor, DerbySQLTreeProcessor, FirebirdSQLTreeProcessor, FrontBaseSQLTreeProcessor, H2SQLTreeProcessor, HSQLTreeProcessor, IngressSQLTreeProcessor, MySQLTreeProcessor, OpenBaseSQLTreeProcessor, OracleSQLTreeProcessor, PostgreSQLTreeProcessor, SimpleNodeTreeVisitor, SQLGenerationVisitor, SQLiteTreeProcessor, SQLServerTreeProcessor, SQLServerTreeProcessorV12, SybaseSQLTreeProcessor, TypeAwareSQLTreeProcessor

      public interface NodeTreeVisitor

  Since:
    4.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onChildNodeEnd(Node parent, Node child, int index, boolean hasMore)`
    `boolean` | `onChildNodeStart(Node parent, Node child, int index, boolean hasMore)`
    `void` | `onNodeEnd(Node node)`
    `boolean` | `onNodeStart(Node node)`

- - ### Method Detail

    - #### onNodeStart

          boolean onNodeStart(Node node)

      Parameters:
        `node` - to visit
      Returns:
        false if visitor should stop

    - #### onChildNodeStart

          boolean onChildNodeStart(Node parent,
                                   Node child,
                                   int index,
                                   boolean hasMore)

      Parameters:
        `parent` - node
        `child` - node
        `index` - of this child in parent
        `hasMore` - true if more children after this child
      Returns:
        false if visitor should stop

    - #### onChildNodeEnd

          void onChildNodeEnd(Node parent,
                              Node child,
                              int index,
                              boolean hasMore)

    - #### onNodeEnd

          void onNodeEnd(Node node)

Copyright © 2001–2021 Apache Cayenne. All rights reserved.