org.sqlite.callback
Class NamedCallback

java.lang.Object
  extended by org.sqlite.callback.Callback
      extended by org.sqlite.callback.NamedCallback
Direct Known Subclasses:
Collator, Function

public abstract class NamedCallback
extends Callback

SQLite Named Callback function class.

See Also:
Create Or Redefine SQL Functions, Define New Collating Sequences

Constructor Summary
NamedCallback(java.lang.String name)
          create named callback object with SQLITE_UTF8.
NamedCallback(java.lang.String name, int enc)
          create named callback object.
 
Method Summary
 int getEncoding()
          Returns the text encoding code.
 java.lang.String getName()
          Returns the function name.
 
Methods inherited from class org.sqlite.callback.Callback
delete, isRegistered, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedCallback

public NamedCallback(java.lang.String name)
create named callback object with SQLITE_UTF8.

Parameters:
name - the function name
See Also:
NamedCallback(java.lang.String, int)

NamedCallback

public NamedCallback(java.lang.String name,
                     int enc)
create named callback object.

Parameters:
name - the function name
enc - the most desirable encoding may be one of the constants SQLITE_UTF8, SQLITE_UTF16LE, SQLITE_UTF16BE, SQLITE_UTF16 or SQLITE_UTF16_ALIGNED.
See Also:
Text Encodings
Method Detail

getName

public java.lang.String getName()
Returns the function name.

Returns:
the function name

getEncoding

public int getEncoding()
Returns the text encoding code.

Returns:
the text encoding code