22#include <osl/diagnose.h>
29jclass java_sql_Array::theClass =
nullptr;
31java_sql_Array::~java_sql_Array()
45 static jmethodID mID(
nullptr);
51 static jmethodID mID(
nullptr);
55css::uno::Sequence< css::uno::Any > SAL_CALL
java_sql_Array::getArray(
const css::uno::Reference< css::container::XNameAccess >& typeMap )
60 static const char *
const cSignature =
"(Ljava/util/Map;)[Ljava/lang/Object;";
61 static const char *
const cMethodName =
"getArray";
62 static jmethodID mID(
nullptr);
65 t.pEnv->CallObjectMethod(
object, mID, obj);
68 t.pEnv->DeleteLocalRef(obj);
70 return css::uno::Sequence< css::uno::Any >();
73css::uno::Sequence< css::uno::Any > SAL_CALL
java_sql_Array::getArrayAtIndex( sal_Int32 index, sal_Int32 count,
const css::uno::Reference< css::container::XNameAccess >& typeMap )
78 static const char *
const cSignature =
"(IILjava/util/Map;)[Ljava/lang/Object;";
79 static const char *
const cMethodName =
"getArray";
81 static jmethodID mID(
nullptr);
83 t.pEnv->CallObjectMethod(
object, mID,
index,
count,obj);
86 t.pEnv->DeleteLocalRef(obj);
88 return css::uno::Sequence< css::uno::Any >();
91css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
java_sql_Array::getResultSet(
const css::uno::Reference< css::container::XNameAccess >& typeMap )
98 static const char *
const cSignature =
"(Ljava/util/Map;)Ljava/sql/ResultSet;";
99 static const char *
const cMethodName =
"getResultSet";
101 static jmethodID mID(
nullptr);
103 t.pEnv->CallObjectMethod(
object, mID, obj);
106 t.pEnv->DeleteLocalRef(obj);
111css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
java_sql_Array::getResultSetAtIndex( sal_Int32 index, sal_Int32 count,
const css::uno::Reference< css::container::XNameAccess >& typeMap )
118 static const char *
const cSignature =
"(Ljava/util/Map;)Ljava/sql/ResultSet;";
119 static const char *
const cMethodName =
"getResultSetAtIndex";
121 static jmethodID mID(
nullptr);
123 t.pEnv->CallObjectMethod(
object, mID,
index,
count,obj);
126 t.pEnv->DeleteLocalRef(obj);
sal_Int32 callIntMethod_ThrowSQL(const char *_pMethodName, jmethodID &_inout_MethodID) const
OUString callStringMethod(const char *_pMethodName, jmethodID &_inout_MethodID) const
static void ThrowSQLException(JNIEnv *pEnv, const css::uno::Reference< css::uno::XInterface > &_rContext)
static jclass findMyClass(const char *_pClassName)
void obtainMethodId_throwSQL(JNIEnv *_pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID) const
virtual OUString SAL_CALL getBaseTypeName() override
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSetAtIndex(sal_Int32 index, sal_Int32 count, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
virtual sal_Int32 SAL_CALL getBaseType() override
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet(const css::uno::Reference< css::container::XNameAccess > &typeMap) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getArray(const css::uno::Reference< css::container::XNameAccess > &typeMap) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getArrayAtIndex(sal_Int32 index, sal_Int32 count, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
virtual jclass getMyClass() const override
jobject convertTypeMapToJavaMap(const css::uno::Reference< css::container::XNameAccess > &_rMap)