1package SQLite;
2
3/**
4 * Callback interface for SQLite's authorizer function.
5 */
6
7public interface Authorizer {
8
9    /**
10     * Callback to authorize access.
11     *
12     * @param what integer indicating type of access
13     * @param arg1 first argument (table, view, index, or trigger name)
14     * @param arg2 second argument (file, table, or column name)
15     * @param arg3 third argument (database name)
16     * @param arg4 third argument (trigger name)
17     * @return Constants.SQLITE_OK for success, Constants.SQLITE_IGNORE
18     * for don't allow access but don't raise an error, Constants.SQLITE_DENY
19     * for abort SQL statement with error.
20     */
21
22    public int authorize(int what, String arg1, String arg2, String arg3,
23			 String arg4);
24}
25
26