1 package net.jaekl.squelch.stmt;
3 import java.io.IOException;
4 import java.io.PrintWriter;
5 import java.sql.Connection;
6 import java.sql.SQLException;
9 * Abstract base class for all statements (e.g., Insert, Create, Delete, Describe)
12 public abstract class Stmt {
13 // Returns true iff. line represents an instance of this statement type
14 abstract public boolean handles(String line);
16 // Execute line as a statement of this type
17 abstract public int exec(Connection conn, PrintWriter pw, String line) throws IOException, SQLException;