FileDocCategorySizeDatePackage
FunctionContext.javaAPI DocAndroid 1.5 API1528Wed May 06 22:41:06 BST 2009SQLite

FunctionContext

public class FunctionContext extends Object
Context for execution of SQLite's user defined functions. A reference to an instance of this class is passed to user defined functions.

Fields Summary
private long
handle
Internal handle for the native SQLite API.
Constructors Summary
Methods Summary
public native intcount()
Retrieve number of rows for aggregate function.

private static native voidinternal_init()
Internal native initializer.

public native voidset_error(java.lang.String r)
Set function result from error message.

param
r result string (error message)

public native voidset_result(java.lang.String r)
Set function result from string.

param
r result string

public native voidset_result(int r)
Set function result from integer.

param
r result integer

public native voidset_result(double r)
Set function result from double.

param
r result double

public native voidset_result(byte[] r)
Set function result from byte array. Only provided by SQLite3 databases.

param
r result byte array

public native voidset_result_zeroblob(int n)
Set function result as empty blob given size. Only provided by SQLite3 databases.

param
n size for empty blob