FileDocCategorySizeDatePackage
SQLiteCustomFunction.javaAPI DocAndroid 5.1 API1643Thu Mar 12 22:22:10 GMT 2015android.database.sqlite

SQLiteCustomFunction

public final class SQLiteCustomFunction extends Object
Describes a custom SQL function.
hide

Fields Summary
public final String
name
public final int
numArgs
public final SQLiteDatabase.CustomFunction
callback
Constructors Summary
public SQLiteCustomFunction(String name, int numArgs, SQLiteDatabase.CustomFunction callback)
Create custom function.

param
name The name of the sqlite3 function.
param
numArgs The number of arguments for the function, or -1 to support any number of arguments.
param
callback The callback to invoke when the function is executed.

        if (name == null) {
            throw new IllegalArgumentException("name must not be null.");
        }

        this.name = name;
        this.numArgs = numArgs;
        this.callback = callback;
    
Methods Summary
private voiddispatchCallback(java.lang.String[] args)

        callback.callback(args);