Public Types | Public Member Functions | Protected Member Functions | List of all members
Atom::Functions::Action Class Reference
Inheritance diagram for Atom::Functions::Action:
Inheritance graph
[legend]
Collaboration diagram for Atom::Functions::Action:
Collaboration graph
[legend]

Public Types

using Ptr = std::shared_ptr< Action >
 

Public Member Functions

 Action (std::string identifier)
 
std::string get_identifier () const
 
std::string get_status () const
 
std::string get_message () const
 
std::string get_custom_error () const
 
bool get_final () const
 
bool get_error () const
 
std::vector< Query::Condition::Ptr > get_conditions ()
 
std::vector< Query::Parameter::Ptr > get_parameters ()
 
Query::Results::Ptr get_results ()
 
JSON::Object::Ptr get_json_result ()
 
std::vector< Ptr > & get_actions ()
 
std::string get_sql_code () const
 
std::string get_final_query () const
 
int get_affected_rows_ () const
 
std::shared_ptr< Data::Session > & get_session ()
 
std::shared_ptr< Data::Statement > & get_query ()
 
void set_identifier (std::string identifier)
 
void set_status (std::string status)
 
void set_message (std::string message)
 
void set_custom_error (std::string custom_error)
 
void set_final (bool final)
 
void set_error (bool error)
 
void set_sql_code (std::string sql_code)
 
void set_final_query (std::string final_query)
 
JSON::Array::Ptr GetParametersArray_ (JSON::Array::Ptr json_array, int counter)
 
Query::Parameter::Ptr GetParameterObject_ (JSON::Array::Ptr parameters_array, int counter)
 
void ReplaceParamater_ (Query::Parameter::Ptr parameter)
 
Query::Parameter::Ptr AddParameter_ (std::string name, Tools::DValue value, bool editable)
 
Query::Parameter::Ptr AddParameter_ (std::string name, Query::Field::Position field_position, std::string related_action, bool editable)
 
Query::Condition::Ptr AddCondition_ (std::string identifier, Query::ConditionType type, Query::Condition::Functor functor)
 
void IdentifyParameters_ (std::shared_ptr< Net::HTMLForm > form)
 
void IdentifyParameters_ (Files::FileManager &files_parameters)
 
void IdentifyParameters_ (JSON::Array::Ptr json_array)
 
void IdentifyParameters_ (URI::QueryParameters &query_parameters)
 
bool ComposeQuery_ ()
 
void ExecuteQuery_ ()
 
void ExecuteAsyncQuery_ ()
 
void MakeResults_ ()
 
JSON::Object::Ptr CreateJSONResult_ ()
 
virtual bool Work_ ()
 
- Public Member Functions inherited from Atom::Tools::ManageJSON
JSON::Array::Ptr get_json_array () const
 
JSON::Object::Ptr get_json_object () const
 
JSON::Array::Ptr & get_json_array ()
 
JSON::Object::Ptr & get_json_object ()
 
void set_json_array (JSON::Array::Ptr json_array)
 
void set_json_object (JSON::Object::Ptr json_object)
 
void Parse_ (std::string &string_to_parse)
 
JSON::Object::Ptr ExtractObject_ (Dynamic::Var &object)
 
JSON::Array::Ptr ExtractArray_ (Dynamic::Var &object)
 

Protected Member Functions

void NotifyError_ (std::string message)