List of utility methods to do SQL Execute
void | executeStatement(Connection con, String sql) Insert data into the database. PreparedStatement ps = con.prepareStatement(sql); ps.executeUpdate(); |
void | executeStatement(Connection conn, String command) execute Statement java.sql.Statement statement = conn.createStatement(); try { statement.executeUpdate(command); } finally { statement.close(); |
void | executeStatement(final String databaseName, final String statement) execute Statement Connection c = null; Statement stmt = null; try { c = DriverManager.getConnection("jdbc:sqlite:" + databaseName + ".db"); stmt = c.createStatement(); stmt.executeUpdate(statement); stmt.close(); c.close(); ... |
void | executeStatements(final Connection conn, final List execute Statements for (final String statement : statements) { conn.createStatement().execute(statement); |
void | executeUnRegister(String schemaName, String tableName, String columnName, Connection con) execute Un Register String stmt = "call db2gse.ST_unregister_spatial_column(?,?,?,?,?)"; String s = "{" + stmt + "}"; CallableStatement ps = con.prepareCall(s); ps.setString(1, quote(schemaName)); ps.setString(2, quote(tableName)); ps.setString(3, quote(columnName)); ps.registerOutParameter(4, Types.INTEGER); ps.registerOutParameter(5, Types.CHAR); ... |