Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
std::string AbstractDBHandler::GetLocale() { return locale_; }
+int AbstractDBHandler::GetPID() { return pid_; }
+
+void AbstractDBHandler::SetPID(int pid) {
+ pid_ = pid;
+}
+
void AbstractDBHandler::SetLocale(const std::string& locale) {
locale_ = locale;
}
AbstractDBHandler(uid_t uid);
virtual ~AbstractDBHandler();
virtual int Execute() = 0;
+ void SetPID(int pid);
void SetLocale(const std::string& locale);
void SetDBType(DBType type);
void SetOpType(OperationType type);
protected:
bool Connect();
+ int GetPID();
std::vector<sqlite3*> GetConnection();
std::string GetLocale();
DBType db_type_ = DB_TYPE_NONE;
OperationType op_type_ = OPERATION_TYPE_NONE;
uid_t uid_;
+ int pid_;
std::string locale_;
std::vector<sqlite3*> db_handle_list_;
};