LibreOffice Module connectivity (master) 1
|
helper class to hold a local ref to a JNI object More...
#include <LocalRef.hxx>
Public Member Functions | |
LocalRef (JNIEnv &environment) | |
LocalRef (JNIEnv &environment, T object) | |
~LocalRef () | |
T | release () |
void | set (T object) |
void | reset () |
JNIEnv & | env () const |
T | get () const |
bool | is () const |
Private Member Functions | |
LocalRef (LocalRef const &)=delete | |
LocalRef & | operator= (LocalRef const &)=delete |
Private Attributes | |
JNIEnv & | m_environment |
T | m_object |
helper class to hold a local ref to a JNI object
Note that this class never actually calls NewLocalRef. It is assumed that all objects passed are already acquired with a local ref (as it usually is the case if you obtain the object from a JNI method).
Definition at line 41 of file LocalRef.hxx.
|
inlineexplicit |
Definition at line 44 of file LocalRef.hxx.
|
inline |
Definition at line 50 of file LocalRef.hxx.
|
inline |
Definition at line 56 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::reset().
|
privatedelete |
|
inline |
Definition at line 79 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::m_environment.
Referenced by connectivity::jdbc::GlobalRef< T >::set(), and connectivity::jdbc::ContextClassLoaderScope::~ContextClassLoaderScope().
|
inline |
Definition at line 80 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::m_object.
Referenced by connectivity::java_lang_Object::callIntMethodWithStringArg(), connectivity::java_lang_Object::callVoidMethodWithStringArg(), connectivity::java_sql_CallableStatement::createStatement(), connectivity::java_sql_Statement_Base::execute(), connectivity::java_sql_Statement_Base::executeQuery(), connectivity::java_sql_Connection::nativeSQL(), connectivity::java_sql_CallableStatement::registerOutParameter(), connectivity::java_sql_PreparedStatement::setString(), connectivity::java_sql_ResultSet::updateString(), and connectivity::jdbc::ContextClassLoaderScope::~ContextClassLoaderScope().
|
inline |
Definition at line 81 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::m_object.
Referenced by connectivity::jdbc::ContextClassLoaderScope::isActive().
|
privatedelete |
|
inline |
Definition at line 61 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::m_object, and t.
Referenced by connectivity::java_sql_Connection::loadDriverFromProperties(), connectivity::jdbc::GlobalRef< T >::set(), and connectivity::jdbc::ContextClassLoaderScope::~ContextClassLoaderScope().
|
inline |
Definition at line 70 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::m_environment, and connectivity::jdbc::LocalRef< T >::m_object.
Referenced by connectivity::jdbc::LocalRef< T >::set(), and connectivity::jdbc::LocalRef< T >::~LocalRef().
|
inline |
Definition at line 68 of file LocalRef.hxx.
References connectivity::jdbc::LocalRef< T >::m_object, and connectivity::jdbc::LocalRef< T >::reset().
Referenced by connectivity::java_sql_Connection::loadDriverFromProperties().
|
private |
Definition at line 87 of file LocalRef.hxx.
Referenced by connectivity::jdbc::LocalRef< T >::env(), and connectivity::jdbc::LocalRef< T >::reset().
|
private |
Definition at line 88 of file LocalRef.hxx.
Referenced by connectivity::jdbc::LocalRef< T >::get(), connectivity::jdbc::LocalRef< T >::is(), connectivity::jdbc::LocalRef< T >::release(), connectivity::jdbc::LocalRef< T >::reset(), and connectivity::jdbc::LocalRef< T >::set().