add appdatamgr part

Signed-off-by: zhaoyuan <zhaoyuan17@huawei.com>
This commit is contained in:
zhaoyuan 2021-09-21 11:21:31 +00:00
parent bdd59f5c6a
commit 9cf7cfa83e
2 changed files with 15 additions and 15 deletions

View File

@ -102,7 +102,7 @@ void AceDataAbility::OnStop()
LOGI("AceDataAbility::OnStop called End");
}
int32_t AceDataAbility::Insert(const Uri& uri, const OHOS::AppExecFwk::ValuesBucket& dummyValue)
int32_t AceDataAbility::Insert(const Uri& uri, const NativeRdb::ValuesBucket& dummyValue)
{
LOGI("AceDataAbility::Insert called");
OHOS::NativeRdb::ValuesBucket value;
@ -111,21 +111,21 @@ int32_t AceDataAbility::Insert(const Uri& uri, const OHOS::AppExecFwk::ValuesBuc
return ret;
}
std::shared_ptr<OHOS::AppExecFwk::ResultSet> AceDataAbility::Query(
std::shared_ptr<NativeRdb::AbsSharedResultSet> AceDataAbility::Query(
const Uri& uri, const std::vector<std::string>& columns,
const OHOS::AppExecFwk::DataAbilityPredicates& dummyPredicates)
const NativeRdb::DataAbilityPredicates& dummyPredicates)
{
LOGI("AceDataAbility::Query called");
OHOS::NativeRdb::DataAbilityPredicates predicates;
auto resultSet = Platform::PaContainer::Query(abilityId_, uri, columns, predicates);
(void)resultSet;
LOGI("AceDataAbility::Query called End");
std::shared_ptr<OHOS::AppExecFwk::ResultSet> dummyResultSet;
std::shared_ptr<NativeRdb::AbsSharedResultSet> dummyResultSet;
return dummyResultSet;
}
int32_t AceDataAbility::Update(const Uri& uri, const OHOS::AppExecFwk::ValuesBucket& dummyValue,
const OHOS::AppExecFwk::DataAbilityPredicates& dummyPredicates)
int32_t AceDataAbility::Update(const Uri& uri, const NativeRdb::ValuesBucket& dummyValue,
const NativeRdb::DataAbilityPredicates& dummyPredicates)
{
LOGI("AceDataAbility::Update called");
OHOS::NativeRdb::ValuesBucket value;
@ -135,7 +135,7 @@ int32_t AceDataAbility::Update(const Uri& uri, const OHOS::AppExecFwk::ValuesBuc
return ret;
}
int32_t AceDataAbility::Delete(const Uri& uri, const OHOS::AppExecFwk::DataAbilityPredicates& dummyPredicates)
int32_t AceDataAbility::Delete(const Uri& uri, const NativeRdb::DataAbilityPredicates& dummyPredicates)
{
LOGI("AceDataAbility::Delete called");
OHOS::NativeRdb::DataAbilityPredicates predicates;
@ -144,7 +144,7 @@ int32_t AceDataAbility::Delete(const Uri& uri, const OHOS::AppExecFwk::DataAbili
return ret;
}
int32_t AceDataAbility::BatchInsert(const Uri& uri, const std::vector<OHOS::AppExecFwk::ValuesBucket>& dummyValues)
int32_t AceDataAbility::BatchInsert(const Uri& uri, const std::vector<NativeRdb::ValuesBucket>& dummyValues)
{
LOGI("AceDataAbility::BatchInsert called");
std::vector<OHOS::NativeRdb::ValuesBucket> values;

View File

@ -36,15 +36,15 @@ public:
void OnStart(const OHOS::AAFwk::Want& want) override;
void OnStop() override;
int32_t Insert(const Uri& uri, const OHOS::AppExecFwk::ValuesBucket& value) override;
std::shared_ptr<OHOS::AppExecFwk::ResultSet> Query(
int32_t Insert(const Uri& uri, const NativeRdb::ValuesBucket& value) override;
std::shared_ptr<NativeRdb::AbsSharedResultSet> Query(
const Uri& uri, const std::vector<std::string>& columns,
const OHOS::AppExecFwk::DataAbilityPredicates& predicates) override;
int32_t Update(const Uri& uri, const OHOS::AppExecFwk::ValuesBucket& value,
const OHOS::AppExecFwk::DataAbilityPredicates& predicates) override;
int32_t Delete(const Uri& uri, const OHOS::AppExecFwk::DataAbilityPredicates& predicates) override;
const NativeRdb::DataAbilityPredicates& predicates) override;
int32_t Update(const Uri& uri, const NativeRdb::ValuesBucket& value,
const NativeRdb::DataAbilityPredicates& predicates) override;
int32_t Delete(const Uri& uri, const NativeRdb::DataAbilityPredicates& predicates) override;
int32_t BatchInsert(const Uri& uri, const std::vector<OHOS::AppExecFwk::ValuesBucket>& values) override;
int32_t BatchInsert(const Uri& uri, const std::vector<NativeRdb::ValuesBucket>& values) override;
std::string GetType(const Uri& uri) override;
std::vector<std::string> GetFileTypes(const Uri& uri, const std::string& mimeTypeFilter) override;
int32_t OpenFile(const Uri& uri, const std::string& mode) override;