|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.ObjectSQLite.FunctionContext
public class FunctionContext
Context for execution of SQLite's user defined functions. A reference to an instance of this class is passed to user defined functions.
| Field Summary | |
|---|---|
private long |
handle
Internal handle for the native SQLite API. |
| Constructor Summary | |
|---|---|
FunctionContext()
|
|
| Method Summary | |
|---|---|
int |
count()
Retrieve number of rows for aggregate function. |
private static void |
internal_init()
Internal native initializer. |
void |
set_error(java.lang.String r)
Set function result from error message. |
void |
set_result_zeroblob(int n)
Set function result as empty blob given size. |
void |
set_result(byte[] r)
Set function result from byte array. |
void |
set_result(double r)
Set function result from double. |
void |
set_result(int r)
Set function result from integer. |
void |
set_result(java.lang.String r)
Set function result from string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long handle
| Constructor Detail |
|---|
public FunctionContext()
| Method Detail |
|---|
public int count()
private static void internal_init()
public void set_error(java.lang.String r)
r - result string (error message)public void set_result_zeroblob(int n)
n - size for empty blobpublic void set_result(byte[] r)
r - result byte arraypublic void set_result(double r)
r - result doublepublic void set_result(int r)
r - result integerpublic void set_result(java.lang.String r)
r - result string
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||