Home
last modified time | relevance | path

Searched refs:VariantValue (Results 1 – 7 of 7) sorted by relevance

/base/security/access_token/services/common/database/src/
Dvariant_value.cpp21 VariantValue::VariantValue() : type_(ValueType::TYPE_NULL) in VariantValue() function in OHOS::Security::AccessToken::VariantValue
24 VariantValue::~VariantValue() in ~VariantValue()
27 VariantValue::VariantValue(int32_t value) : type_(ValueType::TYPE_INT) in VariantValue() function in OHOS::Security::AccessToken::VariantValue
32 VariantValue::VariantValue(int64_t value) : type_(ValueType::TYPE_INT64) in VariantValue() function in OHOS::Security::AccessToken::VariantValue
37 VariantValue::VariantValue(const std::string& value) : type_(ValueType::TYPE_STRING) in VariantValue() function in OHOS::Security::AccessToken::VariantValue
42 ValueType VariantValue::GetType() const in GetType()
47 int32_t VariantValue::GetInt() const in GetInt()
56 int64_t VariantValue::GetInt64() const in GetInt64()
65 std::string VariantValue::GetString() const in GetString()
Dgeneric_values.cpp23 map_.insert(std::make_pair(key, VariantValue(value))); in Put()
28 map_.insert(std::make_pair(key, VariantValue(value))); in Put()
33 map_.insert(std::make_pair(key, VariantValue(value))); in Put()
36 void GenericValues::Put(const std::string& key, const VariantValue& value) in Put()
41 VariantValue GenericValues::Get(const std::string& key) const in Get()
45 return VariantValue(); in Get()
54 return VariantValue::DEFAULT_VALUE; in GetInt()
63 return VariantValue::DEFAULT_VALUE; in GetInt64()
Dstatement.cpp103 void Statement::Bind(const std::string& tableColumnName, const VariantValue& value) in Bind()
125 VariantValue Statement::GetValue(const int32_t column, const bool flagInt64) const in GetValue()
131 return VariantValue(GetColumnInt64(column)); in GetValue()
133 return VariantValue(GetColumnInt(column)); in GetValue()
136 return VariantValue(GetColumnString(column)); in GetValue()
138 return VariantValue(); in GetValue()
/base/security/access_token/services/common/database/include/
Dvariant_value.h32 class VariantValue final {
34 VariantValue();
35 virtual ~VariantValue();
37 explicit VariantValue(int32_t value);
38 explicit VariantValue(int64_t value);
39 explicit VariantValue(const std::string& value);
Dgeneric_values.h39 void Put(const std::string& key, const VariantValue& value);
43 VariantValue Get(const std::string& key) const;
53 std::map<std::string, VariantValue> map_;
Dstatement.h38 void Bind(const std::string& tableColumnName, const VariantValue& value);
49 VariantValue GetValue(const int32_t column, const bool flagInt64) const;
/base/security/access_token/services/common/database/test/unittest/
Ddatabase_test.cpp158 VariantValue Test(testValue);
171 VariantValue Ntest(ntestValue);
174 VariantValue Test(testValue);