JObjectRef Soprano::Sesame2::RepositoryConnection::getStatements( const JObjectRef& subject, const JObjectRef& predicate, const JObjectRef& object, const JObjectRef& context )
{
    JObjectRef contexts = JNIWrapper::instance()->env()->NewObjectArray( context ? 1 : 0,
                                                                         d->classResource(),
                                                                         context );
    return callObjectMethod( d->IDgetStatements(), subject.data(), predicate.data(), object.data(), true, contexts.data() ).toGlobalRef();
}
Exemple #2
0
Object* rvmCallObjectClassMethodA(Env* env, Class* clazz, Method* method, jvalue* args) {
    CallInfo* callInfo = INIT_CALL_INFO(env, NULL, method, FALSE, args);
    if (!callInfo) return NULL;
    rvmInitialize(env, method->clazz);
    if (rvmExceptionOccurred(env)) return NULL;
    return callObjectMethod(env, callInfo);
}
Exemple #3
0
Object* rvmCallNonvirtualObjectInstanceMethodA(Env* env, Object* obj, Method* method, jvalue* args) {
    CallInfo* callInfo = INIT_CALL_INFO(env, obj, method, FALSE, args);
    if (!callInfo) return NULL;
    if (obj && CLASS_IS_PROXY(obj->clazz)) {
        env->reserved0 = (void*) method->name;
        env->reserved1 = (void*) method->desc;
    }
    return callObjectMethod(env, callInfo);
}
jobject JNIMethod::callObjectMethod( jobject instance, ... )
{
	jobject result = NULL;

	va_list args;
	va_start( args, instance );
	result = callObjectMethod( instance, args );
	va_end( args );

	return result;
}
Exemple #5
0
jobject JCCEnv::enumerationNext(jobject obj) const
{
    return callObjectMethod(obj, _mids[mid_enumeration_nextElement]);
}
Exemple #6
0
jobject JCCEnv::iteratorNext(jobject obj) const
{
    return callObjectMethod(obj, _mids[mid_iterator_next]);
}
JObjectRef Soprano::Sesame2::RepositoryConnection::prepareQuery( const JObjectRef& queryLang, const JStringRef& queryString )
{
    // prepare the query
    return callObjectMethod( d->IDprepareQuery(), queryLang.data(), queryString.data() ).toGlobalRef();
}
JObjectRef Soprano::Sesame2::RepositoryConnection::getContextIDs()
{
    return callObjectMethod( d->IDgetContextIDs() ).toGlobalRef();
}