Lines Matching refs:pEnv
46 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in setProperty()
52 args[0].l = convertwchar_tToJavaString(t.pEnv,key); in setProperty()
53 args[1].l = convertwchar_tToJavaString(t.pEnv,value); in setProperty()
59 obtainMethodId(t.pEnv, cMethodName,cSignature, mID); in setProperty()
60 out = t.pEnv->CallObjectMethod(object, mID, args[0].l,args[1].l); in setProperty()
61 ThrowSQLException(t.pEnv,NULL); in setProperty()
62 t.pEnv->DeleteLocalRef((jstring)args[1].l); in setProperty()
63 t.pEnv->DeleteLocalRef((jstring)args[0].l); in setProperty()
64 ThrowSQLException(t.pEnv,0); in setProperty()
66 t.pEnv->DeleteLocalRef(out); in setProperty()
87 if( !t.pEnv ) in java_util_Properties()
94 obtainMethodId(t.pEnv, "<init>",cSignature, mID); in java_util_Properties()
95 tempObj = t.pEnv->NewObject( getMyClass(), mID); in java_util_Properties()
96 saveRef( t.pEnv, tempObj ); in java_util_Properties()
97 t.pEnv->DeleteLocalRef( tempObj ); in java_util_Properties()
101 jstring connectivity::convertwchar_tToJavaString(JNIEnv *pEnv,const ::rtl::OUString& _rTemp) in convertwchar_tToJavaString() argument
103 OSL_ENSURE(pEnv,"Environment is NULL!"); in convertwchar_tToJavaString()
104 jstring pStr = pEnv->NewString(_rTemp.getStr(), _rTemp.getLength()); in convertwchar_tToJavaString()
105 pEnv->ExceptionClear(); in convertwchar_tToJavaString()
162 ::rtl::OUString connectivity::JavaString2String(JNIEnv *pEnv,jstring _Str) in JavaString2String() argument
168 const jchar* pChar = pEnv->GetStringChars(_Str,&bCopy); in JavaString2String()
169 jsize len = pEnv->GetStringLength(_Str); in JavaString2String()
173 pEnv->ReleaseStringChars(_Str,pChar); in JavaString2String()
174 pEnv->DeleteLocalRef(_Str); in JavaString2String()
190 sal_Bool connectivity::isExceptionOccured(JNIEnv *pEnv,sal_Bool _bClear) in isExceptionOccured() argument
192 if ( !pEnv ) in isExceptionOccured()
195 jthrowable pThrowable = pEnv->ExceptionOccurred(); in isExceptionOccured()
200 pEnv->ExceptionClear(); in isExceptionOccured()
202 if(pEnv->IsInstanceOf(pThrowable,java_sql_SQLException_BASE::st_getMyClass())) in isExceptionOccured()
205 java_sql_SQLException_BASE* pException = new java_sql_SQLException_BASE(pEnv,pThrowable); in isExceptionOccured()
210 pEnv->DeleteLocalRef(pThrowable); in isExceptionOccured()
221 if( !t.pEnv || !x.is() ) in createByteInputStream()
230 mID = t.pEnv->GetMethodID( clazz, "<init>", cSignature ); in createByteInputStream()
235 jbyteArray pByteArray = t.pEnv->NewByteArray(length); in createByteInputStream()
239 rtl_copyMemory(t.pEnv->GetByteArrayElements(pByteArray,&p),aData.getArray(),aData.getLength()); in createByteInputStream()
240 jobject out = t.pEnv->NewObject( clazz, mID,pByteArray); in createByteInputStream()
241 t.pEnv->DeleteLocalRef((jbyteArray)pByteArray); in createByteInputStream()
248 if( !t.pEnv || !x.is() ) in createCharArrayReader()
257 mID = t.pEnv->GetMethodID( clazz, "<init>", cSignature ); in createCharArrayReader()
262 jcharArray pCharArray = t.pEnv->NewCharArray(length); in createCharArrayReader()
266 rtl_copyMemory(t.pEnv->GetCharArrayElements(pCharArray,&p),aData.getArray(),aData.getLength()); in createCharArrayReader()
267 jobject out = t.pEnv->NewObject( clazz, mID,pCharArray); in createCharArrayReader()
268 t.pEnv->DeleteLocalRef((jcharArray)pCharArray); in createCharArrayReader()