|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
ElogPerson.h Class for the table: person_. More...
#include <ElogPerson.h>
Public Member Functions | |
| virtual | ~ElogPerson () |
| TString | GetPersonId () |
| get person id of the current person | |
| TString | GetPersonName () |
| get person name of the current person | |
| bool | GetIsActive () |
| get is active of the current person | |
| TString * | GetEmail () |
| get email of the current person | |
| int | SetPersonName (TString person_name) |
| set person name of the current person | |
| int | SetIsActive (bool is_active) |
| set is active of the current person | |
| int | SetEmail (TString *email) |
| set email of the current person | |
| void | Print () |
| print information about current person | |
| virtual | ~ElogPerson () |
| TString | GetPersonId () |
| get person id of the current person | |
| TString | GetPersonName () |
| get person name of the current person | |
| bool | GetIsActive () |
| get is active of the current person | |
| TString * | GetEmail () |
| get email of the current person | |
| int | SetPersonName (TString person_name) |
| set person name of the current person | |
| int | SetIsActive (bool is_active) |
| set is active of the current person | |
| int | SetEmail (TString *email) |
| set email of the current person | |
| void | Print () |
| print information about current person | |
Static Public Member Functions | |
| static ElogPerson * | CreatePerson (TString person_name, bool is_active, TString *email) |
| add new person to the database | |
| static ElogPerson * | GetPerson (TString person_id) |
| get person from the database | |
| static int | CheckPersonExists (TString person_id) |
| check person exists in the database: 1 - true, 0 - false, <0 - database operation error | |
| static int | DeletePerson (TString person_id) |
| delete person from the database | |
| static int | PrintAll () |
| print all persons | |
| static TObjArray * | GetPersonByName (TString person_name_part) |
| get persons from the database by name or its part | |
| static int | CheckPersonExistsByName (TString person_name_part) |
| check persons exists in the database by name or its part: >=1 - person count, 0 - false, <0 - database operation error | |
| static int | DeletePersonByName (TString person_name_part) |
| delete persons from the database by name or its part >=1 - affected count, 0 - persons not found, <0 - database operation error | |
| static ElogPerson * | CreatePerson (TString person_name, bool is_active, TString *email) |
| add new person to the database | |
| static ElogPerson * | GetPerson (TString person_id) |
| get person from the database | |
| static int | CheckPersonExists (TString person_id) |
| check person exists in the database: 1 - true, 0 - false, <0 - database operation error | |
| static int | DeletePerson (TString person_id) |
| delete person from the database | |
| static int | PrintAll () |
| print all persons | |
| static TObjArray * | GetPersonByName (TString person_name_part) |
| get persons from the database by name or its part | |
| static int | CheckPersonExistsByName (TString person_name_part) |
| check persons exists in the database by name or its part: >=1 - person count, 0 - false, <0 - database operation error | |
| static int | DeletePersonByName (TString person_name_part) |
| delete persons from the database by name or its part >=1 - affected count, 0 - persons not found, <0 - database operation error | |
Private Member Functions | |
| ElogPerson (ElogConnection *db_connect, TString person_id, TString person_name, bool is_active, TString *email) | |
| ElogPerson (ElogConnection *db_connect, TString person_id, TString person_name, bool is_active, TString *email) | |
Private Attributes | |
| ElogConnection * | connectionDB |
| connection to the database | |
| TString | str_person_id |
| person id | |
| TString | str_person_name |
| person name | |
| bool | b_is_active |
| is active | |
| TString * | str_email |
| email | |
Definition at line 18 of file ElogPerson.h.
|
private |
Definition at line 16 of file ElogPerson.cxx.
References b_is_active, connectionDB, str_email, str_person_id, and str_person_name.
Referenced by CreatePerson(), DeletePersonByName(), GetPerson(), and GetPersonByName().
|
virtual |
Definition at line 31 of file ElogPerson.cxx.
References connectionDB, and str_email.
|
private |
|
virtual |
|
static |
Definition at line 163 of file ElogPerson.cxx.
References TString::Data(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 459 of file ElogPerson.cxx.
References TString::Data(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 40 of file ElogPerson.cxx.
References ElogPerson(), TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 203 of file ElogPerson.cxx.
References TString::Format(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().
|
static |
|
static |
Definition at line 502 of file ElogPerson.cxx.
References TString::Format(), TSQLStatement::GetNumAffectedRows(), ElogConnection::GetSQLServer(), TSQLStatement::NextIteration(), ElogConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().
|
static |
|
inline |
Definition at line 62 of file ElogPerson.h.
References str_email.
|
inline |
Definition at line 62 of file ElogPerson.h.
References str_email.
|
inline |
Definition at line 60 of file ElogPerson.h.
References b_is_active.
|
inline |
Definition at line 60 of file ElogPerson.h.
References b_is_active.
|
static |
Definition at line 110 of file ElogPerson.cxx.
References ElogPerson(), TString::Data(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
Definition at line 397 of file ElogPerson.cxx.
References ElogPerson(), TObjArray::Add(), TString::Data(), TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TCollection::SetOwner(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
inline |
Definition at line 56 of file ElogPerson.h.
References str_person_id.
|
inline |
Definition at line 56 of file ElogPerson.h.
References str_person_id.
|
inline |
Definition at line 58 of file ElogPerson.h.
References str_person_name.
|
inline |
Definition at line 58 of file ElogPerson.h.
References str_person_name.
| void ElogPerson::Print | ( | ) |
Definition at line 386 of file ElogPerson.cxx.
References b_is_active, str_email, str_person_id, and str_person_name.
| void ElogPerson::Print | ( | ) |
|
static |
Definition at line 233 of file ElogPerson.cxx.
References TString::Format(), TSQLStatement::GetInt(), ElogConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), ElogConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
| int ElogPerson::SetEmail | ( | TString * | ) |
Definition at line 345 of file ElogPerson.cxx.
References connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), str_email, and str_person_id.
| int ElogPerson::SetEmail | ( | TString * | ) |
| int ElogPerson::SetIsActive | ( | bool | is_active | ) |
Definition at line 313 of file ElogPerson.cxx.
References b_is_active, connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_person_id.
| int ElogPerson::SetIsActive | ( | bool | is_active | ) |
| int ElogPerson::SetPersonName | ( | TString | person_name | ) |
Definition at line 281 of file ElogPerson.cxx.
References connectionDB, TString::Format(), TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetString(), TSQLServer::Statement(), str_person_id, and str_person_name.
| int ElogPerson::SetPersonName | ( | TString | person_name | ) |
|
private |
Definition at line 30 of file ElogPerson.h.
Referenced by ElogPerson(), GetIsActive(), Print(), and SetIsActive().
|
private |
Definition at line 23 of file ElogPerson.h.
Referenced by ElogPerson(), ~ElogPerson(), SetEmail(), SetIsActive(), and SetPersonName().
|
private |
Definition at line 32 of file ElogPerson.h.
Referenced by ElogPerson(), ~ElogPerson(), GetEmail(), Print(), and SetEmail().
|
private |
Definition at line 26 of file ElogPerson.h.
Referenced by ElogPerson(), GetPersonId(), Print(), SetEmail(), SetIsActive(), and SetPersonName().
|
private |
Definition at line 28 of file ElogPerson.h.
Referenced by ElogPerson(), GetPersonName(), Print(), and SetPersonName().