Class SpannerJdbcTemplate
- java.lang.Object
-
- migratedb.v1.core.api.internal.jdbc.JdbcTemplate
-
- migratedb.v1.core.internal.database.spanner.SpannerJdbcTemplate
-
public class SpannerJdbcTemplate extends JdbcTemplate
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.api.internal.jdbc.JdbcTemplate
connection, nullType
-
-
Constructor Summary
Constructors Constructor Description SpannerJdbcTemplate(Connection connection, DatabaseType databaseType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PreparedStatementprepareStatement(String sql, Object[] params)Creates a new prepared statement for this sql with these params.-
Methods inherited from class migratedb.v1.core.api.internal.jdbc.JdbcTemplate
execute, executeStatement, extractErrors, getConnection, query, queryForBoolean, queryForInt, queryForList, queryForString, queryForStringList, update
-
-
-
-
Constructor Detail
-
SpannerJdbcTemplate
public SpannerJdbcTemplate(Connection connection, DatabaseType databaseType)
-
-
Method Detail
-
prepareStatement
protected PreparedStatement prepareStatement(String sql, Object[] params) throws SQLException
Description copied from class:JdbcTemplateCreates a new prepared statement for this sql with these params.- Overrides:
prepareStatementin classJdbcTemplate- Parameters:
sql- The sql to execute.params- The params.- Returns:
- The new prepared statement.
- Throws:
SQLException- when the statement could not be prepared.
-
-