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

#include <jtie_tconv_idcache_impl.hpp>

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

Public Types

typedef MemberIdStrongCache< C > Base
- Public Types inherited from MemberIdStrongCache< C >
typedef MemberId< C > A
typedef MemberIdCache< C > Base
- Public Types inherited from MemberIdCache< C >
typedef C::memberID_t ID_t
- Public Types inherited from MemberId< C >
typedef C::memberID_t ID_t

Static Public Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from MemberId< C >
static unsigned long nIdLookUps = 0
- Static Protected Attributes inherited from MemberIdCache< C >
static jclass gClassRef = NULL
static ID_t mid = NULL

Detailed Description

template<typename C>
struct MemberIdPreloadedStrongCache< C >

Provides caching of JNI Field/Method IDs using strong class references with preloading (at class initialization) – VERY TRICKY, NOT SUPPORTED.

Definition at line 393 of file jtie_tconv_idcache_impl.hpp.

Member Function Documentation

template<typename C >
static jclass MemberIdPreloadedStrongCache< C >::getClass ( JNIEnv *  env)
inlinestatic

Returns a JNI Reference to the class declaring the member specified by info type 'C'.

Depending upon the underlying caching strategy, a returned reference may be local or global, weak or strong; the scope of its use must be demarcated by releaseRef().

Pre condition:

  • this thread has no pending JNI exception (!env->ExceptionCheck())

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 reference is valid (at least) until releaseRef()

Reimplemented from MemberIdStrongCache< C >.

Definition at line 400 of file jtie_tconv_idcache_impl.hpp.


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