|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlite.callback.Callback
org.sqlite.callback.NamedCallback
org.sqlite.udf.Function
public abstract class Function
User-Defined function class.
JdbcConnection.createFunction(Function),
JdbcConnection.dropFunction(Function),
JdbcConnection.dropFunction(java.lang.String)| Field Summary | |
|---|---|
protected int |
argc
the number of arguments that the SQL function or aggregate takes |
| Constructor Summary | |
|---|---|
protected |
Function(java.lang.String name)
invoke Function(String, -1) constructor. |
protected |
Function(java.lang.String name,
int argc)
create Function object |
| Method Summary | |
|---|---|
int |
getArgumentCount()
Returns the number of arguments that the SQL function or aggregate takes. |
protected abstract void |
xFunc(Context ctx)
Called from the sqlite3_step() function. |
protected void |
xFunc(long context,
int argc,
long value)
Called from the sqlite3_step() function. |
| Methods inherited from class org.sqlite.callback.NamedCallback |
|---|
getName |
| Methods inherited from class org.sqlite.callback.Callback |
|---|
isRegistered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int argc
| Constructor Detail |
|---|
protected Function(java.lang.String name)
name - the function name
protected Function(java.lang.String name,
int argc)
name - the function nameargc - the number of arguments that the SQL function or aggregate takes.| Method Detail |
|---|
public int getArgumentCount()
protected final void xFunc(long context,
int argc,
long value)
context - the sqlite3_context* valueargc - the number of argumentsvalue - the sqlite3_value** value
protected abstract void xFunc(Context ctx)
throws java.sql.SQLException
ctx - sqlite3_context wrapper object
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||