LibreOffice Module connectivity (master) 1
Macros | Functions
HStorageAccess.cxx File Reference
#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>
Include dependency graph for HStorageAccess.cxx:

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)
 

Macro Definition Documentation

◆ ThrowException

#define ThrowException (   env,
  type,
  msg 
)
Value:
{ \
env->ThrowNew(env->FindClass(type), msg); }
const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > & env
sal_Int32 type
Definition: pq_statics.cxx:60

Definition at line 38 of file HStorageAccess.cxx.

Function Documentation

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_close()

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.

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_getFilePointer()

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.

References env, and name.

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_length()

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.

References env, and name.

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_openStream()

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.

References env, mode, and name.

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2()

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().

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_read__Ljava_lang_String_2Ljava_lang_String_2_3BII()

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().

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_readInt()

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.

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_seek()

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().

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_write()

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().

◆ Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess_writeInt()

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().

◆ read_from_storage_stream()

jint read_from_storage_stream ( JNIEnv *  env,
jstring  name,
jstring  key 
)

◆ read_from_storage_stream_into_buffer()

jint read_from_storage_stream_into_buffer ( JNIEnv *  env,
jstring  name,
jstring  key,
jbyteArray  buffer,
jint  off,
jint  len 
)

◆ write_to_storage_stream()

void write_to_storage_stream ( JNIEnv *  env,
jstring  name,
jstring  key,
jint  v 
)

◆ write_to_storage_stream_from_buffer()

void write_to_storage_stream_from_buffer ( JNIEnv *  env,
jstring  name,
jstring  key,
jbyteArray  buffer,
jint  off,
jint  len 
)