Class PreparedStatementBuilder
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.manager.PreparedStatementBuilder
-
public class PreparedStatementBuilder extends Object
Encapsulates prepared statement string and parameters.
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedStatementbuild()Builds prepared statement from query string and string parameters.PreparedStatementBuilderwithConnection(Connection connection)PreparedStatementBuilderwithParameters(List<String> parameters)PreparedStatementBuilderwithQuery(String query)
-
-
-
Method Detail
-
withParameters
public PreparedStatementBuilder withParameters(List<String> parameters)
-
withQuery
public PreparedStatementBuilder withQuery(String query)
-
withConnection
public PreparedStatementBuilder withConnection(Connection connection)
-
build
public PreparedStatement build()
Builds prepared statement from query string and string parameters.- Returns:
- prepared statement. See
PreparedStatement.
-
-