Int64 SystemProperties::GetInt64( /* [in] */ const String& key, /* [in] */ Int64 def) { if (key.IsNull() || key.GetLength() > PROP_NAME_MAX) { // throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX); return E_ILLEGAL_ARGUMENT_EXCEPTION; } return NativeGetInt64(key, def); }
ECode CursorWindow::GetInt64( /* [in] */ Int32 row, /* [in] */ Int32 col, /* [out] */ Int64* value) { AcquireReference(); //try { ECode ec = NativeGetInt64(row - mStartPos, col, value); //} finally { ReleaseReference(); //} return ec; }
ECode CursorWindow::GetInt32( /* [in] */ Int32 row, /* [in] */ Int32 col, /* [out] */ Int32* value) { AcquireReference(); //try { Int64 i64Value; ECode ec = NativeGetInt64(row - mStartPos, col, &i64Value); *value = (Int32)i64Value; //} finally { ReleaseReference(); //} return ec; }