LibreOffice Module connectivity (master) 1
|
#include <hsqldb/HStorageAccess.hxx>
#include <com/sun/star/embed/XStorage.hpp>
#include <hsqldb/HStorageMap.hxx>
#include "accesslog.hxx"
#include <osl/diagnose.h>
#include <comphelper/diagnose_ex.hxx>
#include <string.h>
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | ThrowException(env, type, msg) |
Functions | |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_openStream (JNIEnv *env, jobject, jstring name, jstring key, jint mode) |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_close (JNIEnv *env, jobject, jstring name, jstring key) |
SAL_JNI_EXPORT jlong JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_getFilePointer (JNIEnv *env, jobject, jstring name, jstring key) |
SAL_JNI_EXPORT jlong JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_length (JNIEnv *env, jobject, jstring name, jstring key) |
jint | read_from_storage_stream (JNIEnv *env, jstring name, jstring key) |
SAL_JNI_EXPORT jint JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring name, jstring key) |
jint | read_from_storage_stream_into_buffer (JNIEnv *env, jstring name, jstring key, jbyteArray buffer, jint off, jint len) |
SAL_JNI_EXPORT jint JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2_3BII (JNIEnv *env, jobject obj_this, jstring name, jstring key, jbyteArray buffer, jint off, jint len) |
SAL_JNI_EXPORT jint JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_readInt (JNIEnv *env, jobject, jstring name, jstring key) |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_seek (JNIEnv *env, jobject, jstring name, jstring key, jlong position) |
void | write_to_storage_stream_from_buffer (JNIEnv *env, jstring name, jstring key, jbyteArray buffer, jint off, jint len) |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_write (JNIEnv *env, jobject obj_this, jstring name, jstring key, jbyteArray buffer, jint off, jint len) |
void | write_to_storage_stream (JNIEnv *env, jstring name, jstring key, jint v) |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_writeInt (JNIEnv *env, jobject obj_this, jstring name, jstring key, jint v) |
Definition at line 38 of file HStorageAccess.cxx.
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_close | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key | ||
) |
Definition at line 64 of file HStorageAccess.cxx.
References env, Exception, name, sName, and TOOLS_WARN_EXCEPTION.
SAL_JNI_EXPORT jlong JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_getFilePointer | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key | ||
) |
Definition at line 103 of file HStorageAccess.cxx.
SAL_JNI_EXPORT jlong JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_length | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key | ||
) |
Definition at line 127 of file HStorageAccess.cxx.
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_openStream | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key, | ||
jint | mode | ||
) |
Definition at line 46 of file HStorageAccess.cxx.
SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2 | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key | ||
) |
Definition at line 183 of file HStorageAccess.cxx.
References env, name, and read_from_storage_stream().
SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2_3BII | ( | JNIEnv * | env, |
jobject | obj_this, | ||
jstring | name, | ||
jstring | key, | ||
jbyteArray | buffer, | ||
jint | off, | ||
jint | len | ||
) |
Definition at line 250 of file HStorageAccess.cxx.
References env, name, and read_from_storage_stream_into_buffer().
SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_readInt | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key | ||
) |
Definition at line 271 of file HStorageAccess.cxx.
References aData, ch, env, Exception, name, and ThrowException.
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_seek | ( | JNIEnv * | env, |
jobject | , | ||
jstring | name, | ||
jstring | key, | ||
jlong | position | ||
) |
Definition at line 335 of file HStorageAccess.cxx.
References aData, BUFFER_SIZE, env, n, name, and position().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_write | ( | JNIEnv * | env, |
jobject | obj_this, | ||
jstring | name, | ||
jstring | key, | ||
jbyteArray | buffer, | ||
jint | off, | ||
jint | len | ||
) |
Definition at line 446 of file HStorageAccess.cxx.
References env, name, and write_to_storage_stream_from_buffer().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_writeInt | ( | JNIEnv * | env, |
jobject | obj_this, | ||
jstring | name, | ||
jstring | key, | ||
jint | v | ||
) |
Definition at line 501 of file HStorageAccess.cxx.
References env, name, v, and write_to_storage_stream().
jint read_from_storage_stream | ( | JNIEnv * | env, |
jstring | name, | ||
jstring | key | ||
) |
Definition at line 146 of file HStorageAccess.cxx.
References aData, env, Exception, and name.
Referenced by Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2(), and Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2().
jint read_from_storage_stream_into_buffer | ( | JNIEnv * | env, |
jstring | name, | ||
jstring | key, | ||
jbyteArray | buffer, | ||
jint | off, | ||
jint | len | ||
) |
Definition at line 198 of file HStorageAccess.cxx.
References aData, env, Exception, name, sName, and ThrowException.
Referenced by Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2_3BII(), and Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3BII().
void write_to_storage_stream | ( | JNIEnv * | env, |
jstring | name, | ||
jstring | key, | ||
jint | v | ||
) |
Definition at line 462 of file HStorageAccess.cxx.
References env, Exception, name, ThrowException, TOOLS_WARN_EXCEPTION, and v.
Referenced by Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_writeInt(), and Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_write__Ljava_lang_String_2Ljava_lang_String_2I().
void write_to_storage_stream_from_buffer | ( | JNIEnv * | env, |
jstring | name, | ||
jstring | key, | ||
jbyteArray | buffer, | ||
jint | off, | ||
jint | len | ||
) |
Definition at line 402 of file HStorageAccess.cxx.
References aData, env, Exception, name, ThrowException, and TOOLS_WARN_EXCEPTION.
Referenced by Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_write(), Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_write__Ljava_lang_String_2Ljava_lang_String_2_3B(), and Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_write__Ljava_lang_String_2Ljava_lang_String_2_3BII().