|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sqlite.callback.Callback
org.sqlite.event.CollationNeededHandler
public class CollationNeededHandler
Collation Needed Callbacks class.
JdbcConnection.setCollationNeededHandler(CollationNeededHandler)
,
JdbcConnection.clearCollationNeededHandler()
Constructor Summary | |
---|---|
CollationNeededHandler()
|
Method Summary | |
---|---|
Collator |
addCollator(Collator col)
Appends the Collator object. |
void |
register(SWIGTYPE_p_sqlite3 db)
invoke sqlite3_collation_needed() function and this object is registered in the database. WARNING! Do not use this method because it is called internally. |
Collator |
removeCollator(Collator col)
Removes the Collator object. |
Collator |
removeCollator(java.lang.String name)
Removes the Collator object. |
void |
setDatabase(Database db)
Set the Database object. 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 void |
xCollationNeeded(long pDb,
int eTextRep,
java.lang.String name)
Register the desired collation sequence. |
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 CollationNeededHandler()
Method Detail |
---|
public final void register(SWIGTYPE_p_sqlite3 db) throws java.sql.SQLException
register
in class Callback
db
- the database handle.
java.sql.SQLException
- When the return value of the sqlite3_collation_needed() function is not SQLITE_OK.Database.setCollationNeededHandler(CollationNeededHandler)
public final void unregister(SWIGTYPE_p_sqlite3 db) throws java.sql.SQLException
unregister
in class Callback
db
- the database handle.
java.sql.SQLException
- When the return value of the sqlite3_collation_needed() function is not SQLITE_OK.Database.clearCollationNeededHandler()
public void setDatabase(Database db)
db
- the Database objectpublic Collator addCollator(Collator col)
col
- the Collator object
public Collator removeCollator(java.lang.String name)
name
- the collation sequence name
public Collator removeCollator(Collator col)
col
- the Collator object
protected final void xCollationNeeded(long pDb, int eTextRep, java.lang.String name) throws java.sql.SQLException
pDb
- the sqlite3* valueeTextRep
- the value is one of SQLITE_UTF8, SQLITE_UTF16BE, or SQLITE_UTF16LE, indicating the most desirable form of the collation sequence function required.name
- the name of the required collation sequence.
java.sql.SQLException
- When the return value of the sqlite3_create_collation() function is not SQLITE_OK.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |