|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlite.callback.Callback
org.sqlite.auth.Authorizer
public abstract class Authorizer
Compile-Time Authorization class.
JdbcConnection.setAuthorizer(Authorizer),
JdbcConnection.clearAuthorizer()| Constructor Summary | |
|---|---|
Authorizer()
|
|
| Method Summary | |
|---|---|
void |
register(SWIGTYPE_p_sqlite3 db)
invoke sqlite3_set_authorizer() function and this object is registered in the database. WARNING! Do not use this method because it is called internally. |
void |
unregister(SWIGTYPE_p_sqlite3 db)
Unregister this object from the database. WARNING! Do not use this method because it is called internally. |
protected abstract int |
xAuth(int action,
java.lang.String str1,
java.lang.String str2,
java.lang.String database,
java.lang.String triggerOrView)
Called from the sqlite3_prepare(), sqlite3_prepare_v2() function. |
| Methods inherited from class org.sqlite.callback.Callback |
|---|
delete, isRegistered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Authorizer()
| Method Detail |
|---|
public final void register(SWIGTYPE_p_sqlite3 db)
throws java.sql.SQLException
register in class Callbackdb - the database handle.
java.sql.SQLException - When the return value of the sqlite3_set_authorizer() function is not SQLITE_OK.Database.setAuthorizer(Authorizer)
public final void unregister(SWIGTYPE_p_sqlite3 db)
throws java.sql.SQLException
unregister in class Callbackdb - the database handle.
java.sql.SQLException - When the return value of the sqlite3_set_authorizer() function is not SQLITE_OK.Database.clearAuthorizer()
protected abstract int xAuth(int action,
java.lang.String str1,
java.lang.String str2,
java.lang.String database,
java.lang.String triggerOrView)
action - action codestr1 - see alto 'Authorizer Action Codes' pagestr2 - see alto 'Authorizer Action Codes' pagedatabase - database nametriggerOrView - trigger or view name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||