MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MemberIdCache< C > Struct Template Reference

#include <jtie_tconv_idcache_impl.hpp>

Inheritance diagram for MemberIdCache< C >:
Collaboration diagram for MemberIdCache< C >:

Public Types

typedef C::memberID_t ID_t
- Public Types inherited from MemberId< C >
typedef C::memberID_t ID_t

Static Public Member Functions

static ID_t getId (JNIEnv *env, jclass cls)
- Static Public Member Functions inherited from MemberId< C >
static void setClass (JNIEnv *env, jclass cls)
static jclass getClass (JNIEnv *env)
static void releaseRef (JNIEnv *env, jclass cls)

Static Protected Attributes

static jclass gClassRef = NULL
static ID_t mid = NULL

Additional Inherited Members

- Static Public Attributes inherited from MemberId< C >
static unsigned long nIdLookUps = 0

Detailed Description

template<typename C>
struct MemberIdCache< C >

Base class for caching of JNI Field/Method IDs.

Definition at line 264 of file jtie_tconv_idcache_impl.hpp.

Member Function Documentation

template<typename C >
static ID_t MemberIdCache< C >::getId ( JNIEnv *  env,
jclass  cls 
)
inlinestatic

Returns the JNI Field/Method ID of a Java class member.

The member ID is only valid along with a class object obtained by getClass() and before releaseRef().

Pre condition:

  • this thread has no pending JNI exception (!env->ExceptionCheck())
  • a valid class reference obtained by getClass(): assert(cls != NULL)

Post condition:

  • return value is NULL:
    • this thread has a pending JNI exception (env->ExceptionCheck()) otherwise:
    • this thread has no pending JNI exception (!env->ExceptionCheck())
    • the returned member ID is valid (at least) until releaseRef()

Reimplemented from MemberId< C >.

Definition at line 267 of file jtie_tconv_idcache_impl.hpp.


The documentation for this struct was generated from the following file: