00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include "nsISupports.idl"
00040 #include "mozIStorageValueArray.idl"
00041
00042 interface mozIStorageConnection;
00043 interface mozIStorageDataSet;
00044 interface nsISimpleEnumerator;
00045
00046 [ptr] native sqlite3stmtptr(struct sqlite3_stmt);
00047
00048 [scriptable, uuid(656aa634-36e2-4977-802e-79bce39c1024)]
00049 interface mozIStorageStatement : mozIStorageValueArray {
00054 void initialize (in mozIStorageConnection aDBConnection, in AUTF8String aSQLStatement);
00055
00056 mozIStorageStatement clone ();
00057
00058
00059
00060
00061 readonly attribute unsigned long parameterCount;
00062
00063
00064
00065
00066 AUTF8String getParameterName(in unsigned long aParamIndex);
00067
00068
00069
00070
00071 void getParameterIndexes(in AUTF8String aParameterName,
00072 out unsigned long aCount,
00073 [array,size_is(aCount),retval] out unsigned long aIndexes);
00074
00075
00076
00077 readonly attribute unsigned long columnCount;
00078
00079
00080
00081
00082 AUTF8String getColumnName(in unsigned long aColumnIndex);
00083
00084
00085
00086
00087 void reset ();
00088
00089
00090
00091
00092 void bindCStringParameter (in unsigned long aParamIndex, in string aValue);
00093 void bindUTF8StringParameter (in unsigned long aParamIndex, in AUTF8String aValue);
00094
00095 void bindWStringParameter (in unsigned long aParamIndex, in wstring aValue);
00096 void bindStringParameter (in unsigned long aParamIndex, in AString aValue);
00097
00098 void bindDoubleParameter (in unsigned long aParamIndex, in double aValue);
00099 void bindInt32Parameter (in unsigned long aParamIndex, in long aValue);
00100 void bindInt64Parameter (in unsigned long aParamIndex, in long long aValue);
00101
00102 void bindNullParameter (in unsigned long aParamIndex);
00103
00104 void bindDataParameter (in unsigned long aParamIndex, [array,const,size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
00105
00106
00107
00115 void execute ();
00116
00123 mozIStorageDataSet executeDataSet ();
00124
00135 boolean executeStep ();
00136
00141 const long MOZ_STORAGE_STATEMENT_INVALID = 0;
00142 const long MOZ_STORAGE_STATEMENT_READY = 1;
00143 const long MOZ_STORAGE_STATEMENT_EXECUTING = 2;
00144
00145 readonly attribute long state;
00146
00147 [noscript,notxpcom] sqlite3stmtptr getNativeStatementPointer();
00148 };