23#include <osl/diagnose.h>
31jclass java_sql_Date::theClass =
nullptr;
32java_sql_Date::java_sql_Date(
const css::util::Date& _rOut ) :
java_util_Date( nullptr, nullptr )
45 static jmethodID mID(
nullptr);
48 static const char *
const cSignature =
"(Ljava/lang/String;)Ljava/sql/Date;";
49 mID =
t.pEnv->GetStaticMethodID(
getMyClass(),
"valueOf", cSignature );
51 OSL_ENSURE(mID,
"Unknown method id!");
52 tempObj =
t.pEnv->CallStaticObjectMethod(
getMyClass(), mID,
args[0].l );
54 t.pEnv->DeleteLocalRef( tempObj );
74java_sql_Date::operator css::util::Date()
113 static jmethodID mID(
nullptr);
116 static const char *
const cSignature =
"(Ljava/lang/String;)Ljava/sql/Time;";
117 mID =
t.pEnv->GetStaticMethodID(
getMyClass(),
"valueOf", cSignature );
119 OSL_ENSURE(mID,
"Unknown method id!");
120 tempObj =
t.pEnv->CallStaticObjectMethod(
getMyClass(), mID,
args[0].l );
121 t.pEnv->DeleteLocalRef(
static_cast<jstring
>(
args[0].l));
123 t.pEnv->DeleteLocalRef( tempObj );
127java_sql_Time::operator css::util::Time()
168 static jmethodID mID(
nullptr);
171 static const char *
const cSignature =
"(Ljava/lang/String;)Ljava/sql/Timestamp;";
172 mID =
t.pEnv->GetStaticMethodID(
getMyClass(),
"valueOf", cSignature );
174 OSL_ENSURE(mID,
"Unknown method id!");
175 tempObj =
t.pEnv->CallStaticObjectMethod(
getMyClass(), mID,
args[0].l );
178 t.pEnv->DeleteLocalRef( tempObj );
183java_sql_Timestamp::operator css::util::DateTime()
void saveRef(JNIEnv *pEnv, jobject myObj)
static jclass findMyClass(const char *_pClassName)
virtual jclass getMyClass() const override
virtual ~java_sql_Date() override
static jclass st_getMyClass()
static jclass st_getMyClass()
virtual ~java_sql_Time() override
virtual jclass getMyClass() const override
java_sql_Time(JNIEnv *pEnv, jobject myObj)
static jclass st_getMyClass()
java_sql_Timestamp(JNIEnv *pEnv, jobject myObj)
virtual ~java_sql_Timestamp() override
virtual jclass getMyClass() const override
jstring convertwchar_tToJavaString(JNIEnv *pEnv, const OUString &Temp)
OUString toString(OptionInfo const *info)