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 PreparedStatement
build()
Builds prepared statement from query string and string parameters.PreparedStatementBuilder
withConnection(Connection connection)
PreparedStatementBuilder
withParameters(List<String> parameters)
PreparedStatementBuilder
withQuery(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
.
-
-