|
||||||||||
| 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.text.Collator
public abstract class Collator
User-Defined Collating Sequence class.
JdbcConnection.createCollationSequence(org.sqlite.text.Collator),
JdbcConnection.dropCollationSequence(org.sqlite.text.Collator),
JdbcConnection.dropCollationSequence(java.lang.String)| Constructor Summary | |
|---|---|
Collator(java.lang.String name)
Create new collation sequence with SQLITE_UTF8. |
|
Collator(java.lang.String name,
int enc)
Create new collation sequence. |
|
| Method Summary | |
|---|---|
protected int |
xCompare(byte[] source,
byte[] target)
Called from the sqlite3_step() function. |
| Methods inherited from class org.sqlite.callback.NamedCallback |
|---|
getEncoding, 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 |
| Methods inherited from interface java.util.Comparator |
|---|
compare, equals |
| Constructor Detail |
|---|
public Collator(java.lang.String name)
name - the name of the new collation sequence.NamedCallback.NamedCallback(java.lang.String)
public Collator(java.lang.String name,
int enc)
name - the name of the new collation sequence.enc - the most desirable encoding may be one of the constants SQLITE_UTF8, SQLITE_UTF16LE, SQLITE_UTF16BE or SQLITE_UTF16_ALIGNED.NamedCallback.NamedCallback(java.lang.String, int)| Method Detail |
|---|
protected final int xCompare(byte[] source,
byte[] target)
throws java.io.UnsupportedEncodingException
source - the source bytes to be compared.target - the target bytes to be compared.
java.io.UnsupportedEncodingExceptionComparator.compare(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||