|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlite.udf.Context
public class Context
sqlite3_context and sqlite3_value wrapper class.
| Constructor Summary | |
|---|---|
Context(long ctx)
invoke Context(long, 0, 0) constructor. |
|
Context(long ctx,
int argc,
long value)
invoke Context(SWIGTYPE_p_sqlite3_context, int, SWIGTYPE_p_p_Mem) constructor. |
|
Context(SWIGTYPE_p_sqlite3_context ctx,
int argc,
SWIGTYPE_p_p_Mem value)
create Context object. |
|
| Method Summary | |
|---|---|
int |
getArgumentCount()
Returns the number of arguments. |
java.lang.Object |
getAuxData(int parameterIndex)
invoke sqlite3_get_auxdata() function. |
SWIGTYPE_p_void |
getBlob(int parameterIndex)
invoke sqlite3_value_blob() function. |
int |
getByteLength(int parameterIndex)
invoke sqlite3_value_bytes() function. |
byte[] |
getBytes(int parameterIndex)
invoke sqlite3_value_blob() function. |
java.sql.Date |
getDate(int parameterIndex)
invoke sqlite3_value_text() function. |
SWIGTYPE_p_sqlite3 |
getDbHandle()
invoke sqlite3_context_db_handle() function. |
double |
getDouble(int parameterIndex)
invoke sqlite3_value_double() function. |
int |
getInt(int parameterIndex)
invoke sqlite3_value_int() function. |
long |
getLong(int parameterIndex)
invoke sqlite3_value_int64() function. |
SWIGTYPE_p_Mem |
getSQLite3ValuePtr(int parameterIndex)
Returns the value of sqlite3_value*. |
java.lang.String |
getString(int parameterIndex)
invoke sqlite3_value_text() function. |
java.sql.Time |
getTime(int parameterIndex)
invoke sqlite3_value_text() function. |
java.sql.Timestamp |
getTimestamp(int parameterIndex)
invoke sqlite3_value_text() function. |
int |
getValueNumericType(int parameterIndex)
invoke sqlite3_value_numeric_type() function. |
int |
getValueType(int parameterIndex)
invoke sqlite3_value_type() function. |
boolean |
hasValues()
true if the getArgumentCount() is greater than 0, and the sqlite3_value** wrapper object is not null. |
void |
result(boolean x)
invoke sqlite3_result_int() function. |
void |
result(byte[] x)
invoke sqlite3_result_blob() function. |
void |
result(byte[] x,
int len)
invoke sqlite3_result_blob() function. |
void |
result(java.sql.Date x)
invoke sqlite3_result_text() function. |
void |
result(double x)
invoke sqlite3_result_double() function. |
void |
result(int x)
invoke sqlite3_result_int() function. |
void |
result(long x)
invoke sqlite3_result_int64() function. |
void |
result(java.lang.String x)
invoke sqlite3_result_text() function. |
void |
result(SWIGTYPE_p_Mem x)
invoke sqlite3_result_value() function. |
void |
result(SWIGTYPE_p_void x,
int bytes)
invoke sqlite3_result_blob() function. |
void |
result(java.sql.Time x)
invoke sqlite3_result_text() function. |
void |
result(java.sql.Timestamp x)
invoke sqlite3_result_text() function. |
void |
resultError(java.lang.String x)
invoke sqlite3_result_error() function. |
void |
resultErrorCode(int x)
invoke sqlite3_result_error_code() function. |
void |
resultErrorNoMemory()
invoke sqlite3_result_error_nomem() function. |
void |
resultErrorTooBig()
invoke sqlite3_result_error_toobig() function. |
void |
resultNull()
invoke sqlite3_result_null() function. |
void |
resultZeroBlob(int bytes)
invoke sqlite3_result_zeroblob() function. |
void |
setAuxData(int parameterIndex,
java.lang.Object auxdata)
invoke sqlite3_set_auxdata() function. The "auxdata" is some auxiliary data that can be associated with a constant argument to a function. |
protected void |
validateParamaeterIndexRange(int parameterIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context(long ctx)
ctx - the sqlite3_context* value
public Context(long ctx,
int argc,
long value)
ctx - the sqlite3_context* valueargc - the number of argumentsvalue - the sqlite3_value** value
public Context(SWIGTYPE_p_sqlite3_context ctx,
int argc,
SWIGTYPE_p_p_Mem value)
ctx - the sqlite3_context* wrapper objectargc - the number of argumentsvalue - the sqlite3_value** wrapper object| Method Detail |
|---|
public int getArgumentCount()
public boolean hasValues()
public void result(SWIGTYPE_p_void x,
int bytes)
x - the result valuebytes - the number of bytespublic void result(byte[] x)
x - the result value
public void result(byte[] x,
int len)
x - the result valuelen - the number of bytespublic void result(double x)
x - the result valuepublic void result(int x)
x - the result valuepublic void result(long x)
x - the result valuepublic void result(boolean x)
x - the result value.public void result(java.lang.String x)
x - the result valuepublic void result(SWIGTYPE_p_Mem x)
x - the result valuepublic void result(java.sql.Date x)
x - the result valuepublic void result(java.sql.Time x)
x - the result valuepublic void result(java.sql.Timestamp x)
x - the result valuepublic void resultError(java.lang.String x)
x - the result valuepublic void resultNull()
public void resultErrorCode(int x)
x - the result error codepublic void resultErrorNoMemory()
public void resultErrorTooBig()
public void resultZeroBlob(int bytes)
bytes - the number of bytes
public SWIGTYPE_p_void getBlob(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public int getByteLength(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public byte[] getBytes(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public double getDouble(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public int getInt(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public long getLong(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public java.lang.String getString(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public java.sql.Date getDate(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.SQLite3.parseDate(String)
public java.sql.Time getTime(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.SQLite3.parseTime(String)
public java.sql.Timestamp getTimestamp(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.SQLite3.parseTimestamp(String)
public int getValueType(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public int getValueNumericType(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
protected void validateParamaeterIndexRange(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public SWIGTYPE_p_Mem getSQLite3ValuePtr(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public java.lang.Object getAuxData(int parameterIndex)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...
java.sql.SQLException - When the parameterIndex is not valid.
public void setAuxData(int parameterIndex,
java.lang.Object auxdata)
throws java.sql.SQLException
parameterIndex - the first parameter is 1, the second is 2, ...auxdata - the meta-data for the N-th argument of the application-defined function.
java.sql.SQLException - When the parameterIndex is not valid.public SWIGTYPE_p_sqlite3 getDbHandle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||