theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Class_JV_API

MqContextC - access data related to the factory-type of the object … More...

+ Collaboration diagram for MqContextC_Class_JV_API:

Functions

native MqFactoryC jvmqmsgque.MqContextC.ClassFactoryGet ()
  Java: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC
 
native void jvmqmsgque.MqContextC.ClassFactorySet (MqFactoryC item)
  Java: ctx.ClassFactorySet(MqFactoryC item) C-API
link the MqContextC to a new MqFactoryC
 
native String jvmqmsgque.MqContextC.ClassIdentGet ()
  Java: String ctx.ClassIdentGet() C-API
get the application-identification
 
native void jvmqmsgque.MqContextC.ClassIdentSet (String ident)
  Java: ctx.ClassIdentSet(String ident) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
native String jvmqmsgque.MqContextC.ClassOriginalIdentGet ()
  Java: String ctx.ClassOriginalIdentGet() C-API
get the MqFactoryS.originalIdent from the MqContextC
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ClassFactoryGet (JNIEnv *env, jobject self)
  Java: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ClassFactorySet (JNIEnv *env, jobject self, jobject item)
  Java: ctx.ClassFactorySet(MqFactoryC item) C-API
link the MqContextC to a new MqFactoryC
 
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqContextC_ClassIdentGet (JNIEnv *env, jobject self)
  Java: String ctx.ClassIdentGet() C-API
get the application-identification
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ClassIdentSet (JNIEnv *env, jobject self, jstring ident)
  Java: ctx.ClassIdentSet(String ident) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqContextC_ClassOriginalIdentGet (JNIEnv *env, jobject self)
  Java: String ctx.ClassOriginalIdentGet() C-API
get the MqFactoryS::originalIdent from the MqContextC
 

Detailed Description

MqContextC - access data related to the factory-type of the object …

The type of an object is related to the MqFactoryC. The factory decide which class a new created object has. The factory has two identifiers:

The relevance of the MqContextC CLASS API based type system, provided by MqFactoryC, decreased with the rise of the MANAGED OBJECT technology.
The MqContextC CLASS API based type system has more influence for target-languages without reflection, like C or C++.
The factory is something like a constructor but only support the application-context MqContextC .
The MqContextC ROUTE API using the MqClassIdentGet from MqFactoryC to identify an application from remote.

The type of an object is related to the MqFactoryC. The factory decide which class a new created object has. The factory has two identifiers:

The relevance of the MqContextC CLASS API based type system, provided by MqFactoryC, decreased with the rise of the MANAGED OBJECT technology.
The MqContextC CLASS API based type system has more influence for target-languages without reflection, like C or C++.
The factory is something like a constructor but only support the application-context MqContextC .
The MqContextC ROUTE API using the MqClassIdentGet from MqFactoryC to identify an application from remote.

Function Documentation

◆ ClassFactoryGet()

native MqFactoryC jvmqmsgque.MqContextC.ClassFactoryGet ( )

◆ ClassFactorySet()

native void jvmqmsgque.MqContextC.ClassFactorySet ( MqFactoryC item)

◆ ClassIdentGet()

native String jvmqmsgque.MqContextC.ClassIdentGet ( )

Java: String ctx.ClassIdentGet() C-API
get the application-identification

◆ ClassIdentSet()

native void jvmqmsgque.MqContextC.ClassIdentSet ( String ident)

Java: ctx.ClassIdentSet(String ident) C-API
link the MqContextC to a new MqFactoryC identified by ident

◆ ClassOriginalIdentGet()

native String jvmqmsgque.MqContextC.ClassOriginalIdentGet ( )

◆ Java_jvmqmsgque_MqContextC_ClassFactoryGet()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ClassFactoryGet ( JNIEnv * env,
jobject self )

Java: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC

Definition at line 204 of file MqContextC_jv.c.

204 {
205 MQ_CTXN hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",self);
206 JavaErrorCheck;
207 MkRtSetup_X(hdl);
208 MQ_FCT __retVal__L = MqClassFactoryGet(hdl);
209 jobject __retVal__S = MQ(MqFactoryC_ObjNew)(MK_RT_CALL env,__retVal__L);
210 return __retVal__S;
211error:
212 return 0;
213}
#define MK_RT_CALL
#define MkRtSetup_X(x)
MQ_FCT const MqClassFactoryGet(MQ_CTXN const ctx)
get the MqFactoryC used by the MqContextC
const struct MqContextS * MQ_CTXN
class-shortcut for const struct MqContextS *, all const shortcut using the XX_YYYC syntax (only for p...
PUBLIC data structure for the jvmqmsgque-specific-data
data used to define a factory

◆ Java_jvmqmsgque_MqContextC_ClassFactorySet()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ClassFactorySet ( JNIEnv * env,
jobject self,
jobject item )

Java: ctx.ClassFactorySet(MqFactoryC item) C-API
link the MqContextC to a new MqFactoryC

Definition at line 218 of file MqContextC_jv.c.

218 {
219 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
220 JavaErrorCheck;
221 MkRtSetup_X(hdl);
222 MQ_FCT item_hdl = (MQ_FCT)pObj2Hdl(env,"MqFactoryC",item);
223 JavaErrorCheck;
224 enum MkErrorE errVal = MqClassFactorySet(hdl, item_hdl);
225 MkErrorC_Check(hdl, errVal)
226error:
227 return;
228}
MkErrorE
#define MqClassFactorySet(...)
struct MqContextS * MQ_CTX
class-shortcut for struct MqContextS *, all shortcut using the XX_YYY syntax (only for public API) …
struct MqFactoryS * MQ_FCT
class-shortcut for struct MqFactoryS *, all shortcut using the XX_YYY syntax (only for public API) …

◆ Java_jvmqmsgque_MqContextC_ClassIdentGet()

JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqContextC_ClassIdentGet ( JNIEnv * env,
jobject self )

Java: String ctx.ClassIdentGet() C-API
get the application-identification

Definition at line 231 of file MqContextC_jv.c.

231 {
232 MQ_CTXN hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",self);
233 JavaErrorCheck;
234 MkRtSetup_X(hdl);
235 MK_STRN __retVal__L = MqClassIdentGet(hdl);
236 jstring __retVal__S = JC2O(env,__retVal__L);
237 return __retVal__S;
238error:
239 return 0;
240}
const MK_STRB * MK_STRN
MK_STRN MqClassIdentGet(MQ_CTXN const ctx)
get the application-identification …

◆ Java_jvmqmsgque_MqContextC_ClassIdentSet()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ClassIdentSet ( JNIEnv * env,
jobject self,
jstring ident )

Java: ctx.ClassIdentSet(String ident) C-API
link the MqContextC to a new MqFactoryC identified by ident

Definition at line 243 of file MqContextC_jv.c.

243 {
244 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
245 JavaErrorCheck;
246 MkRtSetup_X(hdl);
247 MK_STRN ident_ptr = (ident?(*env)->GetStringUTFChars(env,ident,NULL):NULL);
248 JavaErrorCheck;
249 enum MkErrorE errVal = MqClassIdentSet(hdl, ident_ptr);
250 MkErrorC_Check(hdl, errVal)
251 if (ident_ptr) (*env)->ReleaseStringUTFChars(env,ident,ident_ptr);
252error:
253 return;
254}
#define MqClassIdentSet(...)

◆ Java_jvmqmsgque_MqContextC_ClassOriginalIdentGet()

JNIEXPORT jstring JNICALL Java_jvmqmsgque_MqContextC_ClassOriginalIdentGet ( JNIEnv * env,
jobject self )

Java: String ctx.ClassOriginalIdentGet() C-API
get the MqFactoryS::originalIdent from the MqContextC

Definition at line 257 of file MqContextC_jv.c.

257 {
258 MQ_CTXN hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",self);
259 JavaErrorCheck;
260 MkRtSetup_X(hdl);
261 MK_STRN __retVal__L = MqClassOriginalIdentGet(hdl);
262 jstring __retVal__S = JC2O(env,__retVal__L);
263 return __retVal__S;
264error:
265 return 0;
266}
MK_STRN MqClassOriginalIdentGet(MQ_CTXN const ctx)
get the MqFactoryS::originalIdent from the MqContextC