MySQL 5.6.14 Source Code Document
|
#include <jtie_tconv_array_impl.hpp>
Static Public Member Functions | |
static C * | getArrayElements (JNIEnv *env, jobjectArray j, jboolean *isCopy) |
static void | releaseArrayElements (JNIEnv *env, jobjectArray j, const C *c, jint mode) |
static jobjectArray | newArray (JNIEnv *env, jsize len, const C *c) |
Implements ArrayConv for Java Object array types.
Please, note that on balance this type of object array mapping, while having a few merits, has turned out inferior to other array mappings: It
The reason for the difficulties of this mapping stems from an asymmetry: The natural 1-1 mapping of Java 'MyClass[]' is C 'MyClass**' while C 'MyClass*', strictly speaking, has no Java Object array pendant, for lack of notion of (contigous arrays of) embedded Java Objects.
While assumed to work, this mapping has not been used and tested yet; we're keeping it, for it still meets best Java programmers' expectations for C object arrays to be mapped to Java Object[].
Definition at line 281 of file jtie_tconv_array_impl.hpp.