@Override public void addBatch() throws SQLException { throwIfUnboundParameters(); batch.add(new PhoenixPreparedStatement(this)); }
public QueryPlan optimizeQuery() throws SQLException { throwIfUnboundParameters(); return optimizeQuery(statement); }
@Override public int executeUpdate() throws SQLException { throwIfUnboundParameters(); if (!statement.getOperation().isMutation()) { throw new ExecuteUpdateNotApplicableException(statement.getOperation()); } if (!batch.isEmpty()) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.EXECUTE_UPDATE_WITH_NON_EMPTY_BATCH) .build().buildException(); } return executeMutation(statement); }
@Override public ResultSet executeQuery() throws SQLException { throwIfUnboundParameters(); if (statement.getOperation().isMutation()) { throw new ExecuteQueryNotApplicableException(statement.getOperation()); } return executeQuery(statement,createQueryLogger(statement,query)); }
boolean execute(boolean batched) throws SQLException { throwIfUnboundParameters(); if (!batched && statement.getOperation().isMutation() && !batch.isEmpty()) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.EXECUTE_UPDATE_WITH_NON_EMPTY_BATCH) .build().buildException(); } if (statement.getOperation().isMutation()) { executeMutation(statement); return false; } executeQuery(statement, createQueryLogger(statement,query)); return true; }
@Override public void addBatch() throws SQLException { throwIfUnboundParameters(); batch.add(new PhoenixPreparedStatement(this)); }
public QueryPlan optimizeQuery() throws SQLException { throwIfUnboundParameters(); return optimizeQuery(statement); }
@Override public void addBatch() throws SQLException { throwIfUnboundParameters(); batch.add(new PhoenixPreparedStatement(this)); }
public QueryPlan optimizeQuery() throws SQLException { throwIfUnboundParameters(); return optimizeQuery(statement); }
@Override public int executeUpdate() throws SQLException { throwIfUnboundParameters(); if (!statement.getOperation().isMutation()) { throw new ExecuteUpdateNotApplicableException(statement.getOperation()); } if (!batch.isEmpty()) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.EXECUTE_UPDATE_WITH_NON_EMPTY_BATCH) .build().buildException(); } return executeMutation(statement); }
@Override public ResultSet executeQuery() throws SQLException { throwIfUnboundParameters(); if (statement.getOperation().isMutation()) { throw new ExecuteQueryNotApplicableException(statement.getOperation()); } return executeQuery(statement,createQueryLogger(statement,query)); }
@Override public int executeUpdate() throws SQLException { throwIfUnboundParameters(); if (!statement.getOperation().isMutation()) { throw new ExecuteUpdateNotApplicableException(statement.getOperation()); } if (!batch.isEmpty()) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.EXECUTE_UPDATE_WITH_NON_EMPTY_BATCH) .build().buildException(); } return executeMutation(statement); }
@Override public ResultSet executeQuery() throws SQLException { throwIfUnboundParameters(); if (statement.getOperation().isMutation()) { throw new ExecuteQueryNotApplicableException(statement.getOperation()); } return executeQuery(statement,createQueryLogger(statement,query)); }
boolean execute(boolean batched) throws SQLException { throwIfUnboundParameters(); if (!batched && statement.getOperation().isMutation() && !batch.isEmpty()) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.EXECUTE_UPDATE_WITH_NON_EMPTY_BATCH) .build().buildException(); } if (statement.getOperation().isMutation()) { executeMutation(statement); return false; } executeQuery(statement, createQueryLogger(statement,query)); return true; }
boolean execute(boolean batched) throws SQLException { throwIfUnboundParameters(); if (!batched && statement.getOperation().isMutation() && !batch.isEmpty()) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.EXECUTE_UPDATE_WITH_NON_EMPTY_BATCH) .build().buildException(); } if (statement.getOperation().isMutation()) { executeMutation(statement); return false; } executeQuery(statement, createQueryLogger(statement,query)); return true; }