BmnRoot
Loading...
Searching...
No Matches
ElogPerson Class Reference

#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
 
 ClassDef (ElogPerson, 1)
 
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
 
 ClassDef (ElogPerson, 1)
 

Static Public Member Functions

static ElogPersonCreatePerson (TString person_name, bool is_active, TString *email)
 add new person to the database
 
static ElogPersonGetPerson (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)
 
static int DeletePersonByName (TString person_name_part)
 
static ElogPersonCreatePerson (TString person_name, bool is_active, TString *email)
 add new person to the database
 
static ElogPersonGetPerson (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)
 
static int DeletePersonByName (TString person_name_part)
 

Detailed Description

ElogPerson.h Class for the table: person_

Definition at line 19 of file ElogPerson.h.

Constructor & Destructor Documentation

◆ ~ElogPerson() [1/2]

ElogPerson::~ElogPerson ( )
virtual

Definition at line 27 of file ElogPerson.cxx.

◆ ~ElogPerson() [2/2]

virtual ElogPerson::~ElogPerson ( )
virtual

Member Function Documentation

◆ CheckPersonExists() [1/2]

int ElogPerson::CheckPersonExists ( TString  person_id)
static

check person exists in the database: 1 - true, 0 - false, <0 - database operation error

Definition at line 159 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CheckPersonExists() [2/2]

static int ElogPerson::CheckPersonExists ( TString  person_id)
static

check person exists in the database: 1 - true, 0 - false, <0 - database operation error

◆ CheckPersonExistsByName() [1/2]

int ElogPerson::CheckPersonExistsByName ( TString  person_name_part)
static

check persons exists in the database by name or its part: >=1 - person count, 0 - false, <0 - database operation error

Definition at line 457 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CheckPersonExistsByName() [2/2]

static int ElogPerson::CheckPersonExistsByName ( TString  person_name_part)
static

check persons exists in the database by name or its part: >=1 - person count, 0 - false, <0 - database operation error

◆ ClassDef() [1/2]

ElogPerson::ClassDef ( ElogPerson  ,
 
)

◆ ClassDef() [2/2]

ElogPerson::ClassDef ( ElogPerson  ,
 
)

◆ CreatePerson() [1/2]

ElogPerson * ElogPerson::CreatePerson ( TString  person_name,
bool  is_active,
TString *  email 
)
static

add new person to the database

Definition at line 36 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ CreatePerson() [2/2]

static ElogPerson * ElogPerson::CreatePerson ( TString  person_name,
bool  is_active,
TString *  email 
)
static

add new person to the database

◆ DeletePerson() [1/2]

int ElogPerson::DeletePerson ( TString  person_id)
static

delete person from the database

Definition at line 199 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeletePerson() [2/2]

static int ElogPerson::DeletePerson ( TString  person_id)
static

delete person from the database

◆ DeletePersonByName() [1/2]

int ElogPerson::DeletePersonByName ( TString  person_name_part)
static

delete persons from the database by name or its part >=1 - affected count, 0 - persons not found, <0 - database operation error

Definition at line 500 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeletePersonByName() [2/2]

static int ElogPerson::DeletePersonByName ( TString  person_name_part)
static

delete persons from the database by name or its part >=1 - affected count, 0 - persons not found, <0 - database operation error

◆ GetEmail() [1/2]

TString * ElogPerson::GetEmail ( )
inline

get email of the current person

Definition at line 63 of file ElogPerson.h.

◆ GetEmail() [2/2]

TString * ElogPerson::GetEmail ( )
inline

get email of the current person

Definition at line 63 of file ElogPerson.h.

◆ GetIsActive() [1/2]

bool ElogPerson::GetIsActive ( )
inline

get is active of the current person

Definition at line 61 of file ElogPerson.h.

◆ GetIsActive() [2/2]

bool ElogPerson::GetIsActive ( )
inline

get is active of the current person

Definition at line 61 of file ElogPerson.h.

◆ GetPerson() [1/2]

ElogPerson * ElogPerson::GetPerson ( TString  person_id)
static

get person from the database

Definition at line 106 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetPerson() [2/2]

static ElogPerson * ElogPerson::GetPerson ( TString  person_id)
static

get person from the database

◆ GetPersonByName() [1/2]

TObjArray * ElogPerson::GetPersonByName ( TString  person_name_part)
static

get persons from the database by name or its part

Definition at line 393 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetPersonByName() [2/2]

static TObjArray * ElogPerson::GetPersonByName ( TString  person_name_part)
static

get persons from the database by name or its part

◆ GetPersonId() [1/2]

TString ElogPerson::GetPersonId ( )
inline

get person id of the current person

Definition at line 57 of file ElogPerson.h.

◆ GetPersonId() [2/2]

TString ElogPerson::GetPersonId ( )
inline

get person id of the current person

Definition at line 57 of file ElogPerson.h.

◆ GetPersonName() [1/2]

TString ElogPerson::GetPersonName ( )
inline

get person name of the current person

Definition at line 59 of file ElogPerson.h.

◆ GetPersonName() [2/2]

TString ElogPerson::GetPersonName ( )
inline

get person name of the current person

Definition at line 59 of file ElogPerson.h.

◆ Print() [1/2]

void ElogPerson::Print ( )

print information about current person

Definition at line 382 of file ElogPerson.cxx.

◆ Print() [2/2]

void ElogPerson::Print ( )

print information about current person

◆ PrintAll() [1/2]

int ElogPerson::PrintAll ( )
static

print all persons

Definition at line 229 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ PrintAll() [2/2]

static int ElogPerson::PrintAll ( )
static

print all persons

◆ SetEmail() [1/2]

int ElogPerson::SetEmail ( TString *  email)

set email of the current person

Definition at line 341 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer().

◆ SetEmail() [2/2]

int ElogPerson::SetEmail ( TString *  email)

set email of the current person

◆ SetIsActive() [1/2]

int ElogPerson::SetIsActive ( bool  is_active)

set is active of the current person

Definition at line 309 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer().

◆ SetIsActive() [2/2]

int ElogPerson::SetIsActive ( bool  is_active)

set is active of the current person

◆ SetPersonName() [1/2]

int ElogPerson::SetPersonName ( TString  person_name)

set person name of the current person

Definition at line 277 of file ElogPerson.cxx.

References ElogConnection::GetSQLServer().

◆ SetPersonName() [2/2]

int ElogPerson::SetPersonName ( TString  person_name)

set person name of the current person


The documentation for this class was generated from the following files: