org.modeshape.jcr.query

## Class JcrSqlQueryResult

- java.lang.Object
- - org.modeshape.jcr.query.JcrQueryResult
  - - org.modeshape.jcr.query.JcrSqlQueryResult

- All Implemented Interfaces:
    AutoCloseable, QueryResult

      public class JcrSqlQueryResult
      extends JcrQueryResult

  A specialization of `JcrQueryResult` that addresses the JCR-SQL specific columns.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.modeshape.jcr.query.JcrQueryResult

      `JcrQueryResult.AbstractRow, JcrQueryResult.MultiSelectorQueryResultRow, JcrQueryResult.QueryResultIterator, JcrQueryResult.QueryResultNodeIterator, JcrQueryResult.QueryResultRowIterator, JcrQueryResult.SingleSelectorQueryResultRow, JcrQueryResult.SingleSelectorQueryResultRowIterator`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `JCR_PATH_COLUMN_NAME`
    `static String` | `JCR_PATH_COLUMN_TYPE`
    `static String` | `JCR_SCORE_COLUMN_NAME`
    `static String` | `JCR_SCORE_COLUMN_TYPE`

    - ### Fields inherited from class org.modeshape.jcr.query.JcrQueryResult

      `context, queryStatement, results`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JcrSqlQueryResult(JcrQueryContext context, String query, QueryResults results, boolean restartable, int numRowsInMemory)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected List<String>` | `getColumnNameList()`
    `protected List<String>` | `getColumnTypeList()`
    `RowIterator` | `getRows()`

    - ### Methods inherited from class org.modeshape.jcr.query.JcrQueryResult

      `close, computeDefaultSelectorIndex, getColumnNames, getColumnTypes, getNodes, getPlan, getSelectorNames, getWarnings, isEmpty, sequence, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### JCR_SCORE_COLUMN_NAME

          public static final String JCR_SCORE_COLUMN_NAME

      See Also:
        Constant Field Values

    - #### JCR_PATH_COLUMN_NAME

          public static final String JCR_PATH_COLUMN_NAME

      See Also:
        Constant Field Values

    - #### JCR_SCORE_COLUMN_TYPE

          public static final String JCR_SCORE_COLUMN_TYPE

    - #### JCR_PATH_COLUMN_TYPE

          public static final String JCR_PATH_COLUMN_TYPE

  - ### Constructor Detail

    - #### JcrSqlQueryResult

          public JcrSqlQueryResult(JcrQueryContext context,
                           String query,
                           QueryResults results,
                           boolean restartable,
                           int numRowsInMemory)

  - ### Method Detail

    - #### getColumnNameList

          protected List<String> getColumnNameList()

      Overrides:
        `getColumnNameList` in class `JcrQueryResult`

    - #### getColumnTypeList

          protected List<String> getColumnTypeList()

      Overrides:
        `getColumnTypeList` in class `JcrQueryResult`

    - #### getRows

          public RowIterator getRows()

      Specified by:
        `getRows` in interface `QueryResult`
      Overrides:
        `getRows` in class `JcrQueryResult`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.