Lines Matching refs:pEnv
53 java_sql_CallableStatement::java_sql_CallableStatement( JNIEnv * pEnv, java_sql_Connection& _rCon,c… in java_sql_CallableStatement() argument
54 : java_sql_PreparedStatement( pEnv, _rCon, sql ) in java_sql_CallableStatement()
90 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getByte()
91 createStatement(t.pEnv); in getByte()
102 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getBytes()
103 createStatement(t.pEnv); in getBytes()
105 …jbyteArray out = (jbyteArray)callObjectMethodWithIntArg(t.pEnv,"getBytes","(I)[B", mID, columnInde… in getBytes()
109 aSeq.realloc(t.pEnv->GetArrayLength(out)); in getBytes()
110 memcpy(aSeq.getArray(),t.pEnv->GetByteArrayElements(out,&p),aSeq.getLength()); in getBytes()
111 t.pEnv->DeleteLocalRef(out); in getBytes()
117 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getDate()
118 createStatement(t.pEnv); in getDate()
120 … jobject out = callObjectMethodWithIntArg(t.pEnv,"getDate","(I)Ljava/sql/Date;", mID, columnIndex); in getDate()
121 …return out ? static_cast <com::sun::star::util::Date>(java_sql_Date( t.pEnv, out )) : ::com::sun::… in getDate()
125 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getDouble()
126 createStatement(t.pEnv); in getDouble()
134 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getFloat()
135 createStatement(t.pEnv); in getFloat()
143 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getInt()
144 createStatement(t.pEnv); in getInt()
151 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getLong()
152 createStatement(t.pEnv); in getLong()
160 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getObject()
161 createStatement(t.pEnv); in getObject()
163 …/*jobject out = */callObjectMethodWithIntArg(t.pEnv,"getObject","(I)Ljava/lang/Object;", mID, colu… in getObject()
170 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getShort()
171 createStatement(t.pEnv); in getShort()
181 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getString()
182 createStatement(t.pEnv); in getString()
189 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getTime()
190 createStatement(t.pEnv); in getTime()
192 … jobject out = callObjectMethodWithIntArg(t.pEnv,"getTime","(I)Ljava/sql/Time;", mID, columnIndex); in getTime()
194 …return out ? static_cast <com::sun::star::util::Time> (java_sql_Time( t.pEnv, out )) : ::com::sun:… in getTime()
199 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getTimestamp()
200 createStatement(t.pEnv); in getTimestamp()
202 …jobject out = callObjectMethodWithIntArg(t.pEnv,"getTimestamp","(I)Ljava/sql/Timestamp;", mID, col… in getTimestamp()
204 …return out ? static_cast <com::sun::star::util::DateTime> (java_sql_Timestamp( t.pEnv, out )) : ::… in getTimestamp()
211 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in registerOutParameter()
214 createStatement(t.pEnv); in registerOutParameter()
221 obtainMethodId(t.pEnv, cMethodName,cSignature, mID); in registerOutParameter()
223 jdbc::LocalRef< jstring > str( t.env(),convertwchar_tToJavaString(t.pEnv,typeName)); in registerOutParameter()
224 t.pEnv->CallVoidMethod( object, mID, parameterIndex,sqlType,str.get()); in registerOutParameter()
225 ThrowLoggedSQLException( m_aLogger, t.pEnv, *this ); in registerOutParameter()
232 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in registerNumericOutParameter()
235 createStatement(t.pEnv); in registerNumericOutParameter()
241 obtainMethodId(t.pEnv, cMethodName,cSignature, mID); in registerNumericOutParameter()
242 t.pEnv->CallVoidMethod( object, mID, parameterIndex,sqlType,scale); in registerNumericOutParameter()
243 ThrowLoggedSQLException( m_aLogger, t.pEnv, *this ); in registerNumericOutParameter()
270 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getArray()
271 createStatement(t.pEnv); in getArray()
273 …jobject out = callObjectMethodWithIntArg(t.pEnv,"getArray","(I)Ljava/sql/Array;", mID, columnIndex… in getArray()
275 return out==0 ? 0 : new java_sql_Array( t.pEnv, out ); in getArray()
280 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getClob()
281 createStatement(t.pEnv); in getClob()
283 … jobject out = callObjectMethodWithIntArg(t.pEnv,"getClob","(I)Ljava/sql/Clob;", mID, columnIndex); in getClob()
285 return out==0 ? 0 : new java_sql_Clob( t.pEnv, out ); in getClob()
289 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getBlob()
290 createStatement(t.pEnv); in getBlob()
292 … jobject out = callObjectMethodWithIntArg(t.pEnv,"getBlob","(I)Ljava/sql/Blob;", mID, columnIndex); in getBlob()
294 return out==0 ? 0 : new java_sql_Blob( t.pEnv, out ); in getBlob()
299 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in getRef()
300 createStatement(t.pEnv); in getRef()
302 jobject out = callObjectMethodWithIntArg(t.pEnv,"getRef","(I)Ljava/sql/Ref;", mID, columnIndex); in getRef()
304 return out==0 ? 0 : new java_sql_Ref( t.pEnv, out ); in getRef()
323 SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); in createStatement()
324 if( t.pEnv && !object ){ in createStatement()
331 jdbc::LocalRef< jstring > str( t.env(),convertwchar_tToJavaString(t.pEnv,m_sSqlStatement)); in createStatement()
335 mID = t.pEnv->GetMethodID( m_pConnection->getMyClass(), cMethodName, cSignature ); in createStatement()
337 …out = t.pEnv->CallObjectMethod( m_pConnection->getJavaObject(), mID, str.get() ,m_nResultSetType,m… in createStatement()
342 …static jmethodID mID2 = t.pEnv->GetMethodID( m_pConnection->getMyClass(), cMethodName, cSignature2… in createStatement()
344 out = t.pEnv->CallObjectMethod( m_pConnection->getJavaObject(), mID2, str.get() ); in createStatement()
347 ThrowLoggedSQLException( m_aLogger, t.pEnv, *this ); in createStatement()
350 object = t.pEnv->NewGlobalRef( out ); in createStatement()