Package SQLite
Class Shell
- java.lang.Object
-
- SQLite.Shell
-
-
Constructor Summary
Constructors Constructor Description Shell(PrintStream ps, PrintStream errs)Shell(PrintWriter pw, PrintWriter err)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectclone()Creates and returns a copy of thisObject.voidcolumns(String[] args)Reports column names of the query result.static voidmain(String[] args)booleannewrow(String[] args)Reports row data of the query result.static Stringsql_quote(String str)static Stringsql_quote_dbl(String str)voidtypes(String[] args)Reports type names of the columns of the query result.
-
-
-
Constructor Detail
-
Shell
public Shell(PrintWriter pw, PrintWriter err)
-
Shell
public Shell(PrintStream ps, PrintStream errs)
-
-
Method Detail
-
clone
protected Object clone()
Description copied from class:ObjectCreates and returns a copy of thisObject. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should callsuper.clone()to create the new instance and then create deep copies of the nested, mutable objects.
-
columns
public void columns(String[] args)
Description copied from interface:CallbackReports column names of the query result. This method is invoked first (and once) when the SQLite engine returns the result set.
-
types
public void types(String[] args)
Description copied from interface:CallbackReports type names of the columns of the query result. This is available from SQLite 2.6.0 on and needs the PRAGMA show_datatypes to be turned on.
-
newrow
public boolean newrow(String[] args)
Description copied from interface:CallbackReports row data of the query result. This method is invoked for each row of the result set. If true is returned the running SQLite query is aborted.
-
main
public static void main(String[] args)
-
-