Class JDBCQuery
java.lang.Object
de.hybris.platform.catalog.jalo.synchronization.JDBCQuery
- Since:
- 3.1-u6
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for JDBCQuery.Constructor for JDBCQuery.JDBCQuery(Tenant tenant, String query, List values, boolean useReadOnlyDatasource, ReadOnlyConditionsHelper readOnlyConditionsHelper) Constructor for JDBCQuery. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidexecute()protected HybrisDataSourceprotected RuntimeExceptionhandleError(SQLException exception) booleanhasNext()readDate(int pos) readPK(int pos)
-
Constructor Details
-
JDBCQuery
Constructor for JDBCQuery.- Parameters:
tenant- - the tenant we wish to execute the query as.query- - the query we wish to executevalues- - a List of values to inject into the query
-
JDBCQuery
Constructor for JDBCQuery.- Parameters:
tenant- - the tenant we wish to execute the query as.query- - the query we wish to executevalues- - a List of values to inject into the queryuseReadOnlyDatasource- - 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 executevalues- - a List of values to inject into the queryuseReadOnlyDatasource- - if query should be run on read only datasource(if available)readOnlyConditionsHelper- - anReadOnlyConditionsHelperused to retrieve the read only data source.
-
-
Method Details
-
execute
public void execute() -
getActiveOrReadOnlyDataSource
-
readPK
-
readDate
-
hasNext
public boolean hasNext() -
getResultSet
-
handleError
-
close
public void close()
-