private synchronized LensQuery getQuery() { if (!isFullyInitialized) { this.actualLensQuery = statement.getQuery(queryHandle); this.isFullyInitialized = true; } return actualLensQuery; } }
public String getOrDefaultQueryHandleString(String queryHandleString) { if (queryHandleString != null) { return queryHandleString; } if (getClient().getStatement().getQuery() != null) { return getClient().getStatement().getQueryHandleString(); } throw new IllegalArgumentException("Query handle not provided and no queries interacted with in the session."); } }
private synchronized LensQuery getQuery() { if (!isFullyInitialized) { this.actualLensQuery = statement.getQuery(queryHandle); this.isFullyInitialized = true; } return actualLensQuery; } }
public String getOrDefaultQueryHandleString(String queryHandleString) { if (queryHandleString != null) { return queryHandleString; } if (getClient().getStatement().getQuery() != null) { return getClient().getStatement().getQueryHandleString(); } throw new IllegalArgumentException("Query handle not provided and no queries interacted with in the session."); } }
/** * Gets the result set meta data for the most recently executed query. */ public QueryResultSetMetadata getResultSetMetaData() { return this.getResultSetMetaData(this.getQuery()); }
/** * Gets the error message, if any, for the most recently executed query. */ public String getErrorMessage() { return this.getQuery().getErrorMessage(); }
/** * Gets result set for the most recently executed query. */ public QueryResult getResultSet() { return this.getResultSet(this.getQuery()); }
/** * Gets status for query represented by handle. */ public QueryStatus getStatus(QueryHandle handle) { return getQuery(handle).getStatus(); }
/** * Gets the error message, if any, for the most recently executed query. */ public String getErrorMessage() { return this.getQuery().getErrorMessage(); }
/** * Gets http result set for the most recently executed query. */ public Response getHttpResultSet() { return this.getHttpResultSet(this.getQuery()); }
/** * Kill the most recently submitted query via any executeQuery methods. * * @return true, if successful */ public boolean kill() { return this.kill(this.getQuery()); }
/** * Gets http result set for the most recently executed query. */ public Response getHttpResultSet() { return this.getHttpResultSet(this.getQuery()); }
/** * Gets result set for the most recently executed query. */ public QueryResult getResultSet() { return this.getResultSet(this.getQuery()); }
/** * Kill the most recently submitted query via any executeQuery methods. * * @return true, if successful */ public boolean kill() { return this.kill(this.getQuery()); }
/** * Gets the status for the most recently executed query. */ public QueryStatus getStatus() { return getQuery().getStatus(); }
/** *Gets the error code, if any, for the most recently executed query. */ public int getErrorCode() { return this.getQuery().getErrorCode(); }
/** * Gets status for query represented by handle. */ public QueryStatus getStatus(QueryHandle handle) { return getQuery(handle).getStatus(); }
/** * Gets the status for the most recently executed query. */ public QueryStatus getStatus() { return getQuery().getStatus(); }
/** * Was the most recently executed query successful. * * @return true, if successful */ public boolean wasQuerySuccessful() { return this.getQuery().getStatus().getStatus().equals(QueryStatus.Status.SUCCESSFUL); }
/** * Was the most recently executed query successful. * * @return true, if successful */ public boolean wasQuerySuccessful() { return this.getQuery().getStatus().getStatus().equals(QueryStatus.Status.SUCCESSFUL); }