org.wso2.carbon.dataservices.sql.driver.processor.reader

## Class CustomDataReader

- java.lang.Object
- - org.wso2.carbon.dataservices.sql.driver.processor.reader.CustomDataReader

- All Implemented Interfaces:
    DataReader

      public class CustomDataReader
      extends Object
      implements DataReader

  This class represents a data reader class for a custom data source.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CustomDataReader(Connection connection)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `TCustomConnection.CustomDataSource` | `getDataSource()`
    `DataTable` | `getDataTable(String name)`
    `void` | `populateData()`

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

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

- - ### Constructor Detail

    - #### CustomDataReader

          public CustomDataReader(Connection connection)
                           throws SQLException

      Throws:
        `SQLException`

  - ### Method Detail

    - #### getDataSource

          public TCustomConnection.CustomDataSource getDataSource()

    - #### populateData

          public void populateData()
                            throws SQLException

      Specified by:
        `populateData` in interface `DataReader`
      Throws:
        `SQLException`

    - #### getDataTable

          public DataTable getDataTable(String name)
                                 throws SQLException

      Specified by:
        `getDataTable` in interface `DataReader`
      Throws:
        `SQLException`

Copyright © 2017 WSO2. All rights reserved.