java.lang.Object
de.hybris.platform.catalog.jalo.synchronization.JDBCQuery

public class JDBCQuery extends Object
Since:
3.1-u6
  • Constructor Details

    • JDBCQuery

      public JDBCQuery(Tenant tenant, String query, List values)
      Constructor for JDBCQuery.
      Parameters:
      tenant - - the tenant we wish to execute the query as.
      query - - the query we wish to execute
      values - - a List of values to inject into the query
    • JDBCQuery

      public JDBCQuery(Tenant tenant, String query, List values, boolean useReadOnlyDatasource)
      Constructor for JDBCQuery.
      Parameters:
      tenant - - the tenant we wish to execute the query as.
      query - - the query we wish to execute
      values - - a List of values to inject into the query
      useReadOnlyDatasource - - if query should be run on read only datasource(if available)
    • JDBCQuery

      public JDBCQuery(Tenant tenant, String query, List values, boolean useReadOnlyDatasource, ReadOnlyConditionsHelper readOnlyConditionsHelper)
      Constructor for JDBCQuery.
      Parameters:
      tenant - - the tenant we wish to execute the query as.
      query - - the query we wish to execute
      values - - a List of values to inject into the query
      useReadOnlyDatasource - - if query should be run on read only datasource(if available)
      readOnlyConditionsHelper - - an ReadOnlyConditionsHelper used to retrieve the read only data source.
  • Method Details

    • execute

      public void execute()
    • getActiveOrReadOnlyDataSource

      protected HybrisDataSource getActiveOrReadOnlyDataSource()
    • readPK

      public PK readPK(int pos)
    • readDate

      public Date readDate(int pos)
    • hasNext

      public boolean hasNext()
    • getResultSet

      public ResultSet getResultSet()
    • handleError

      protected RuntimeException handleError(SQLException exception)
    • close

      public void close()