21 #ifndef mysql_utils_jtie_hpp
22 #define mysql_utils_jtie_hpp
25 #include "decimal_utils.hpp"
26 #include "CharsetMap.hpp"
27 #include "MysqlUtilsWrapper.hpp"
30 #include "ndbjtie_defs.hpp"
31 #include "helpers.hpp"
47 JTIE_DEFINE_JINT_ENUM_TYPE_MAPPING(
CharsetMap::RecodeStatus,
48 c_m_n_m_CharsetMap_RecodeStatus)
79 JNIEXPORT jobject JNICALL
80 Java_com_mysql_ndbjtie_mysql_CharsetMap_create(JNIEnv * env, jclass cls)
82 TRACE(
"jobject Java_com_mysql_ndbjtie_mysql_CharsetMap_create(JNIEnv *, jclass)");
83 return gcreate< ttrait_c_m_n_m_CharsetMap_r >(env, cls);
91 JNIEXPORT
void JNICALL
92 Java_com_mysql_ndbjtie_mysql_CharsetMap_delete(JNIEnv * env, jclass cls, jobject p0)
94 TRACE(
"void Java_com_mysql_ndbjtie_mysql_CharsetMap_delete(JNIEnv *, jclass, jobject)");
95 gdelete< ttrait_c_m_n_m_CharsetMap_r >(env, cls, p0);
103 JNIEXPORT jstring JNICALL
104 Java_com_mysql_ndbjtie_mysql_CharsetMap_getName(JNIEnv * env, jobject obj, jint p0)
106 TRACE(
"jstring Java_com_mysql_ndbjtie_mysql_CharsetMap_getName(JNIEnv *, jobject, jint)");
107 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
108 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_char_cp_jutf8null, ttrait_int, &CharsetMap::getName >(env, obj, p0);
110 return gcall_fr< ttrait_char_cp_jutf8null, ttrait_c_m_n_m_CharsetMap_cr, ttrait_int, &MysqlUtilsWrapper::CharsetMap__getName >(env, NULL, obj, p0);
111 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
119 JNIEXPORT jstring JNICALL
120 Java_com_mysql_ndbjtie_mysql_CharsetMap_getMysqlName(JNIEnv * env, jobject obj, jint p0)
122 TRACE(
"jstring Java_com_mysql_ndbjtie_mysql_CharsetMap_getMysqlName(JNIEnv *, jobject, jint)");
123 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
124 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_char_cp_jutf8null, ttrait_int, &CharsetMap::getMysqlName >(env, obj, p0);
126 return gcall_fr< ttrait_char_cp_jutf8null, ttrait_c_m_n_m_CharsetMap_cr, ttrait_int, &MysqlUtilsWrapper::CharsetMap__getMysqlName >(env, NULL, obj, p0);
127 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
135 JNIEXPORT jint JNICALL
136 Java_com_mysql_ndbjtie_mysql_CharsetMap_getCharsetNumber(JNIEnv * env, jobject obj, jstring p0)
138 TRACE(
"jint Java_com_mysql_ndbjtie_mysql_CharsetMap_getCharsetNumber(JNIEnv *, jobject, jstring)");
139 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
140 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_int, ttrait_char_cp_jutf8null, &CharsetMap::getCharsetNumber >(env, obj, p0);
142 return gcall_fr< ttrait_int, ttrait_c_m_n_m_CharsetMap_cr, ttrait_char_cp_jutf8null, &MysqlUtilsWrapper::CharsetMap__getCharsetNumber >(env, NULL, obj, p0);
143 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
151 JNIEXPORT jint JNICALL
152 Java_com_mysql_ndbjtie_mysql_CharsetMap_getUTF8CharsetNumber(JNIEnv * env, jobject obj)
154 TRACE(
"jint Java_com_mysql_ndbjtie_mysql_CharsetMap_getUTF8CharsetNumber(JNIEnv *, jobject)");
155 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
156 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_int, &CharsetMap::getUTF8CharsetNumber >(env, obj);
158 return gcall_fr< ttrait_int, ttrait_c_m_n_m_CharsetMap_cr, &MysqlUtilsWrapper::CharsetMap__getUTF8CharsetNumber >(env, NULL, obj);
159 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
167 JNIEXPORT jint JNICALL
168 Java_com_mysql_ndbjtie_mysql_CharsetMap_getUTF16CharsetNumber(JNIEnv * env, jobject obj)
170 TRACE(
"jint Java_com_mysql_ndbjtie_mysql_CharsetMap_getUTF16CharsetNumber(JNIEnv *, jobject)");
171 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
172 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_int, &CharsetMap::getUTF16CharsetNumber >(env, obj);
174 return gcall_fr< ttrait_int, ttrait_c_m_n_m_CharsetMap_cr, &MysqlUtilsWrapper::CharsetMap__getUTF16CharsetNumber >(env, NULL, obj);
175 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
183 JNIEXPORT jbooleanArray JNICALL
184 Java_com_mysql_ndbjtie_mysql_CharsetMap_isMultibyte(JNIEnv * env, jobject jobj, jint p0)
186 TRACE(
"Java_com_mysql_ndbjtie_mysql_CharsetMap_isMultibyte(JNIEnv *, jobject, jint)");
187 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
188 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_bool_1cp_a, ttrait_int, &CharsetMap::isMultibyte >(env, jobj, p0);
190 return gcall_fr< ttrait_bool_1cp_a, ttrait_c_m_n_m_CharsetMap_cr, ttrait_int, &MysqlUtilsWrapper::CharsetMap__isMultibyte >(env, NULL, jobj, p0);
191 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
199 JNIEXPORT jint JNICALL
200 Java_com_mysql_ndbjtie_mysql_CharsetMap_recode(JNIEnv * env, jobject obj, jintArray p0, jint p1, jint p2, jobject p3, jobject p4)
202 TRACE(
"jint Java_com_mysql_ndbjtie_mysql_CharsetMap_recode(JNIEnv *, jobject, jintArray, jint, jint, jobject, jobject)");
203 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
204 return gcall_mfr< ttrait_c_m_n_m_CharsetMap_ct, ttrait_c_m_n_m_CharsetMap_RecodeStatus_iv,
ttrait_int32_2p_a, ttrait_int, ttrait_int, ttrait_void_0cp_bb, ttrait_void_0p_bb, &
CharsetMap::recode >(env, obj, p0, p1, p2, p3, p4);
206 return gcall_fr< ttrait_c_m_n_m_CharsetMap_RecodeStatus_iv, ttrait_c_m_n_m_CharsetMap_cr, ttrait_int32_2p_a, ttrait_int, ttrait_int, ttrait_void_0cp_bb, ttrait_void_0p_bb, &MysqlUtilsWrapper::CharsetMap__recode >(env, NULL, obj, p0, p1, p2, p3, p4);
207 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
219 JNIEXPORT jint JNICALL
220 Java_com_mysql_ndbjtie_mysql_Utils_decimal_1str2bin(JNIEnv * env, jclass cls, jobject p0, jint p1, jint p2, jint p3, jobject p4, jint p5)
222 TRACE(
"jint Java_com_mysql_ndbjtie_mysql_Utils_decimal_1str2bin(JNIEnv *, jclass, jobject, jint, jint, jint, jobject, jint)");
223 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
224 return gcall_fr< ttrait_int, ttrait_char_0cp_bb, ttrait_int, ttrait_int, ttrait_int, ttrait_void_0p_bb, ttrait_int, &::decimal_str2bin >(env, cls, p0, p1, p2, p3, p4, p5);
226 return gcall_fr< ttrait_int, ttrait_char_0cp_bb, ttrait_int, ttrait_int, ttrait_int, ttrait_void_0p_bb, ttrait_int, &MysqlUtilsWrapper::decimal_str2bin >(env, cls, p0, p1, p2, p3, p4, p5);
227 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
235 JNIEXPORT jint JNICALL
236 Java_com_mysql_ndbjtie_mysql_Utils_decimal_1bin2str(JNIEnv * env, jclass cls, jobject p0, jint p1, jint p2, jint p3, jobject p4, jint p5)
238 TRACE(
"jint Java_com_mysql_ndbjtie_mysql_Utils_decimal_1bin2str(JNIEnv *, jclass, jobject, jint, jint, jint, jobject, jint)");
239 #ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
240 return gcall_fr< ttrait_int, ttrait_void_0cp_bb, ttrait_int, ttrait_int, ttrait_int, ttrait_char_0p_bb, ttrait_int, &::decimal_bin2str >(env, cls, p0, p1, p2, p3, p4, p5);
242 return gcall_fr< ttrait_int, ttrait_void_0cp_bb, ttrait_int, ttrait_int, ttrait_int, ttrait_char_0p_bb, ttrait_int, &MysqlUtilsWrapper::decimal_bin2str >(env, cls, p0, p1, p2, p3, p4, p5);
243 #endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
250 #endif // mysql_utils_jtie_hpp