mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-17 09:36:24 +00:00
1062 lines
39 KiB
HTML
1062 lines
39 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.4.2_03) on Sat Apr 30 14:01:27 CEST 2011 -->
|
|
<TITLE>
|
|
Stmt (SQLite Java Wrapper)
|
|
</TITLE>
|
|
|
|
<META NAME="keywords" CONTENT="SQLite.Stmt class">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
parent.document.title="Stmt (SQLite Java Wrapper)";
|
|
}
|
|
</SCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../SQLite/ProgressHandler.html" title="interface in SQLite"><B>PREV CLASS</B></A>
|
|
<A HREF="../SQLite/StringEncoder.html" title="class in SQLite"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../index.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="Stmt.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
SQLite</FONT>
|
|
<BR>
|
|
Class Stmt</H2>
|
|
<PRE>
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
|
|
<IMG SRC="../resources/inherit.gif" ALT="extended by"><B>SQLite.Stmt</B>
|
|
</PRE>
|
|
<HR>
|
|
<DL>
|
|
<DT>public class <B>Stmt</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
|
|
|
|
<P>
|
|
Class to represent compiled SQLite3 statement.
|
|
|
|
Note, that all native methods of this class are
|
|
not synchronized, i.e. it is up to the caller
|
|
to ensure that only one thread is in these
|
|
methods at any one time.
|
|
<P>
|
|
|
|
<P>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=2><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#error_code">error_code</A></B></CODE>
|
|
|
|
<BR>
|
|
Internal last error code for prepare()/step() methods.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>private long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#handle">handle</A></B></CODE>
|
|
|
|
<BR>
|
|
Internal handle for the SQLite3 statement.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=2><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#Stmt()">Stmt</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=2><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind_parameter_count()">bind_parameter_count</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Return number of parameters in compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind_parameter_index(java.lang.String)">bind_parameter_index</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE>
|
|
|
|
<BR>
|
|
Return index of named parameter in compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind_parameter_name(int)">bind_parameter_name</A></B>(int pos)</CODE>
|
|
|
|
<BR>
|
|
Return name of parameter in compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind_zeroblob(int, int)">bind_zeroblob</A></B>(int pos,
|
|
int length)</CODE>
|
|
|
|
<BR>
|
|
Bind positional zero'ed blob to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind(int)">bind</A></B>(int pos)</CODE>
|
|
|
|
<BR>
|
|
Bind positional SQL null to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind(int, byte[])">bind</A></B>(int pos,
|
|
byte[] value)</CODE>
|
|
|
|
<BR>
|
|
Bind positional byte array to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind(int, double)">bind</A></B>(int pos,
|
|
double value)</CODE>
|
|
|
|
<BR>
|
|
Bind positional double value to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind(int, int)">bind</A></B>(int pos,
|
|
int value)</CODE>
|
|
|
|
<BR>
|
|
Bind positional integer value to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind(int, long)">bind</A></B>(int pos,
|
|
long value)</CODE>
|
|
|
|
<BR>
|
|
Bind positional long value to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#bind(int, java.lang.String)">bind</A></B>(int pos,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</CODE>
|
|
|
|
<BR>
|
|
Bind positional String to compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#clear_bindings()">clear_bindings</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Clear all bound parameters of the compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#close()">close</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Close the compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> byte[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_bytes(int)">column_bytes</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve blob column from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_count()">column_count</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Retrieve number of columns of exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_database_name(int)">column_database_name</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Return database name of column of SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_decltype(int)">column_decltype</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Return declared column type of SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> double</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_double(int)">column_double</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve double column from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_int(int)">column_int</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve integer column from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_long(int)">column_long</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve long column from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_origin_name(int)">column_origin_name</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Return origin column name of column of SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_string(int)">column_string</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve string column from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_table_name(int)">column_table_name</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Return table name of column of SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column_type(int)">column_type</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve column type from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#column(int)">column</A></B>(int col)</CODE>
|
|
|
|
<BR>
|
|
Retrieve column data as object from exec'ed SQLite3 statement.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#finalize()">finalize</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Destructor for object.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>private static void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#internal_init()">internal_init</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Internal native initializer.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#prepare()">prepare</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Prepare the next SQL statement for the Stmt instance.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#reset()">reset</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Reset the compiled SQLite3 statement without
|
|
clearing parameter bindings.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#status(int, boolean)">status</A></B>(int op,
|
|
boolean flg)</CODE>
|
|
|
|
<BR>
|
|
Return statement status information.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../SQLite/Stmt.html#step()">step</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Perform one step of compiled SQLite3 statement.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=1><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="error_code"><!-- --></A><H3>
|
|
error_code</H3>
|
|
<PRE>
|
|
protected int <B>error_code</B></PRE>
|
|
<DL>
|
|
<DD>Internal last error code for prepare()/step() methods.
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="handle"><!-- --></A><H3>
|
|
handle</H3>
|
|
<PRE>
|
|
private long <B>handle</B></PRE>
|
|
<DL>
|
|
<DD>Internal handle for the SQLite3 statement.
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=1><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="Stmt()"><!-- --></A><H3>
|
|
Stmt</H3>
|
|
<PRE>
|
|
public <B>Stmt</B>()</PRE>
|
|
<DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN=1><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="bind_parameter_count()"><!-- --></A><H3>
|
|
bind_parameter_count</H3>
|
|
<PRE>
|
|
public int <B>bind_parameter_count</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return number of parameters in compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>int number of parameters
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind_parameter_index(java.lang.String)"><!-- --></A><H3>
|
|
bind_parameter_index</H3>
|
|
<PRE>
|
|
public int <B>bind_parameter_index</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return index of named parameter in compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - of parameter
|
|
<DT><B>Returns:</B><DD>int index of parameter, 1-based
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind_parameter_name(int)"><!-- --></A><H3>
|
|
bind_parameter_name</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>bind_parameter_name</B>(int pos)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return name of parameter in compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based
|
|
<DT><B>Returns:</B><DD>String parameter name
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind_zeroblob(int, int)"><!-- --></A><H3>
|
|
bind_zeroblob</H3>
|
|
<PRE>
|
|
public void <B>bind_zeroblob</B>(int pos,
|
|
int length)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional zero'ed blob to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based<DD><CODE>length</CODE> - byte size of zero blob
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind(int)"><!-- --></A><H3>
|
|
bind</H3>
|
|
<PRE>
|
|
public void <B>bind</B>(int pos)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional SQL null to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind(int, byte[])"><!-- --></A><H3>
|
|
bind</H3>
|
|
<PRE>
|
|
public void <B>bind</B>(int pos,
|
|
byte[] value)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional byte array to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based<DD><CODE>value</CODE> - value of parameter, may be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind(int, double)"><!-- --></A><H3>
|
|
bind</H3>
|
|
<PRE>
|
|
public void <B>bind</B>(int pos,
|
|
double value)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional double value to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based<DD><CODE>value</CODE> - value of parameter
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind(int, int)"><!-- --></A><H3>
|
|
bind</H3>
|
|
<PRE>
|
|
public void <B>bind</B>(int pos,
|
|
int value)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional integer value to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based<DD><CODE>value</CODE> - value of parameter
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind(int, long)"><!-- --></A><H3>
|
|
bind</H3>
|
|
<PRE>
|
|
public void <B>bind</B>(int pos,
|
|
long value)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional long value to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based<DD><CODE>value</CODE> - value of parameter
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="bind(int, java.lang.String)"><!-- --></A><H3>
|
|
bind</H3>
|
|
<PRE>
|
|
public void <B>bind</B>(int pos,
|
|
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Bind positional String to compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - parameter index, 1-based<DD><CODE>value</CODE> - value of parameter, may be null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="clear_bindings()"><!-- --></A><H3>
|
|
clear_bindings</H3>
|
|
<PRE>
|
|
public void <B>clear_bindings</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Clear all bound parameters of the compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="close()"><!-- --></A><H3>
|
|
close</H3>
|
|
<PRE>
|
|
public void <B>close</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Close the compiled SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_bytes(int)"><!-- --></A><H3>
|
|
column_bytes</H3>
|
|
<PRE>
|
|
public byte[] <B>column_bytes</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve blob column from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>byte[] column value
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_count()"><!-- --></A><H3>
|
|
column_count</H3>
|
|
<PRE>
|
|
public int <B>column_count</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve number of columns of exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>int number of columns
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_database_name(int)"><!-- --></A><H3>
|
|
column_database_name</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>column_database_name</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return database name of column of SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>String or null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_decltype(int)"><!-- --></A><H3>
|
|
column_decltype</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>column_decltype</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return declared column type of SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>String or null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_double(int)"><!-- --></A><H3>
|
|
column_double</H3>
|
|
<PRE>
|
|
public double <B>column_double</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve double column from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>double column value
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_int(int)"><!-- --></A><H3>
|
|
column_int</H3>
|
|
<PRE>
|
|
public int <B>column_int</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve integer column from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>int column value
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_long(int)"><!-- --></A><H3>
|
|
column_long</H3>
|
|
<PRE>
|
|
public long <B>column_long</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve long column from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>long column value
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_origin_name(int)"><!-- --></A><H3>
|
|
column_origin_name</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>column_origin_name</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return origin column name of column of SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>String or null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_string(int)"><!-- --></A><H3>
|
|
column_string</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>column_string</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve string column from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>String column value
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_table_name(int)"><!-- --></A><H3>
|
|
column_table_name</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>column_table_name</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Return table name of column of SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>String or null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column_type(int)"><!-- --></A><H3>
|
|
column_type</H3>
|
|
<PRE>
|
|
public int <B>column_type</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve column type from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>column type code, e.g. SQLite.Constants.SQLITE_INTEGER
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="column(int)"><!-- --></A><H3>
|
|
column</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>column</B>(int col)
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Retrieve column data as object from exec'ed SQLite3 statement.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - column number, 0-based
|
|
<DT><B>Returns:</B><DD>Object or null
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="finalize()"><!-- --></A><H3>
|
|
finalize</H3>
|
|
<PRE>
|
|
protected void <B>finalize</B>()</PRE>
|
|
<DL>
|
|
<DD>Destructor for object.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="internal_init()"><!-- --></A><H3>
|
|
internal_init</H3>
|
|
<PRE>
|
|
private static void <B>internal_init</B>()</PRE>
|
|
<DL>
|
|
<DD>Internal native initializer.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="prepare()"><!-- --></A><H3>
|
|
prepare</H3>
|
|
<PRE>
|
|
public boolean <B>prepare</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Prepare the next SQL statement for the Stmt instance.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true when the next piece of the SQL statement sequence
|
|
has been prepared, false on end of statement sequence.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="reset()"><!-- --></A><H3>
|
|
reset</H3>
|
|
<PRE>
|
|
public void <B>reset</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Reset the compiled SQLite3 statement without
|
|
clearing parameter bindings.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="status(int, boolean)"><!-- --></A><H3>
|
|
status</H3>
|
|
<PRE>
|
|
public int <B>status</B>(int op,
|
|
boolean flg)</PRE>
|
|
<DL>
|
|
<DD>Return statement status information.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>op</CODE> - which counter to report<DD><CODE>flg</CODE> - reset flag
|
|
<DT><B>Returns:</B><DD>counter</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="step()"><!-- --></A><H3>
|
|
step</H3>
|
|
<PRE>
|
|
public boolean <B>step</B>()
|
|
throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
|
|
<DL>
|
|
<DD>Perform one step of compiled SQLite3 statement.
|
|
|
|
Example:<BR>
|
|
<PRE>
|
|
...
|
|
try {
|
|
Stmt s = db.prepare("select * from x; select * from y;");
|
|
s.bind(...);
|
|
...
|
|
s.bind(...);
|
|
while (s.step(cb)) {
|
|
Object o = s.value(...);
|
|
...
|
|
}
|
|
// s.reset() for re-execution or
|
|
// s.prepare() for the next piece of SQL
|
|
while (s.prepare()) {
|
|
s.bind(...);
|
|
...
|
|
s.bind(...);
|
|
while (s.step(cb)) {
|
|
Object o = s.value(...);
|
|
...
|
|
}
|
|
}
|
|
} catch (SQLite.Exception e) {
|
|
s.close();
|
|
}
|
|
</PRE>
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true when row data is available, false on end
|
|
of result set.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../SQLite/ProgressHandler.html" title="interface in SQLite"><B>PREV CLASS</B></A>
|
|
<A HREF="../SQLite/StringEncoder.html" title="class in SQLite"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../index.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="Stmt.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<small>Contact: <a HREF="mailto:chw@ch-werner.de">Christian Werner</a></small>
|
|
</BODY>
|
|
</HTML>
|