7 namespace persistency {
22 std::vector<std::tuple<std::string, std::string, std::string> >
tagListBuffer;
47 if (!
m_session->gtSchema().gtTable().select(
49 throwException(
"Global Tag \"" + gtName +
"\" has not been found in the database.",
"GTEditor::load");
86 return m_data.get() ?
m_data->snapshotTime : boost::posix_time::ptime();
97 insert(recordName,
"-", tagName, checkType);
108 if (rlabel.empty()) {
111 m_data->tagListBuffer.push_back(std::tie(recordName, rlabel, tagName));
119 if (
m_data->description.empty())
120 throwException(
"A non-empty Description string is mandatory.",
"GTEditor::flush");
121 if (
m_data->release.empty())
122 throwException(
"A non-empty Release string is mandatory.",
"GTEditor::flush");
135 if (!
m_data->tagListBuffer.empty()) {
138 m_data->tagListBuffer.clear();
149 if (!
m_session->isTransactionActive(
false))
tuple ret
prodAgent to be discontinued
void setDescription(const std::string &description)
std::string description() const
void insert(const std::string &recordName, const std::string &tagName, bool checkType=false)
std::vector< std::tuple< std::string, std::string, std::string > > tagListBuffer
std::shared_ptr< SessionImpl > m_session
unsigned long long Time_t
void checkTransaction(const std::string &ctx)
boost::posix_time::ptime snapshotTime
boost::posix_time::ptime snapshotTime() const
void setSnapshotTime(const boost::posix_time::ptime &snapshotTime)
GTEditor & operator=(const GTEditor &rhs)
std::string release() const
void load(const std::string >Name)
const Time_t MAX_VAL(std::numeric_limits< Time_t >::max())
void throwException(const std::string &message, const std::string &methodName)
cond::Time_t validity() const
void setRelease(const std::string &release)
std::shared_ptr< GTEditorData > m_data
void setValidity(cond::Time_t validity)