Class with methods to manage the application. More...
#include <DSInfo.h>
Public Member Functions | |
| DSInfo () | |
| Class Constructor.  More... | |
| std::map< std::string,  std::string >  | getCapabilities () | 
| Get the Data Source Capabilities.  More... | |
| DataSetStruct | getDataSetInfo (std::string dataSetName) | 
| Get specific Data Set information.  More... | |
| std::vector< std::string * > | getDataSetNameList () | 
| Get all Data Sets names.  More... | |
| std::vector< DataSetStruct > | getDataSetsInfo () | 
| Get all Data Sets informations.  More... | |
| DataSourceHeader | getDataSourceHeader () | 
| Get the Data Source Header.  More... | |
| std::map< std::string,  std::vector< std::string > >  | getDataSourceParameters (std::string dataSourceType) | 
| Get Data Source Types connection parameters.  More... | |
| bool | init (std::string dstype, std::string connstr) | 
| Init the application.  More... | |
Private Member Functions | |
| std::vector< CCInfo > | getCheckConstraintInfo (std::string dataSetName) | 
| Get check constraint information.  More... | |
| std::vector< FKInfo > | getForeignKeyInfo (std::string dataSetName) | 
| Get foreign keys information.  More... | |
| std::vector< IdxInfo > | getIndexesKeyInfo (std::string dataSetName) | 
| Get indexes information.  More... | |
| PKInfo | getPrimaryKeyInfo (std::string dataSetName) | 
| Get primary key information.  More... | |
| std::vector< UKInfo > | getUniqueKeyInfo (std::string dataSetName) | 
| Get unique keys information.  More... | |
Private Attributes | |
| std::string | m_connStr | 
| The Data Source Connection String.  More... | |
| te::da::DataSource * | m_dataSource | 
| The Data Source.  More... | |
| std::string | m_dataSourceType | 
| The Data Source Type.  More... | |
| DSInfo::DSInfo | ( | ) | 
Class Constructor.
Definition at line 4 of file DSInfo.cpp.
References m_connStr, m_dataSource, and m_dataSourceType.
| std::map< std::string, std::string > DSInfo::getCapabilities | ( | ) | 
Get the Data Source Capabilities.
Definition at line 266 of file DSInfo.cpp.
References te::da::DataSource::getCapabilities(), and m_dataSource.
Referenced by PrintManager::printCapabilities().
      
  | 
  private | 
Get check constraint information.
| dataSetName | Data Set Name | 
Definition at line 155 of file DSInfo.cpp.
References CCInfo::expression, te::da::DataSetType::getCheckConstraint(), te::da::CheckConstraint::getExpression(), te::da::Constraint::getName(), te::da::DataSetType::getNumberOfCheckConstraints(), te::da::DataSource::getTransactor(), m_dataSource, and CCInfo::name.
Referenced by getDataSetInfo().
| DataSetStruct DSInfo::getDataSetInfo | ( | std::string | dataSetName | ) | 
Get specific Data Set information.
| dataSetName | Data Set Name | 
Definition at line 183 of file DSInfo.cpp.
References getCheckConstraintInfo(), Utils::getDataSet(), getForeignKeyInfo(), getIndexesKeyInfo(), getPrimaryKeyInfo(), getUniqueKeyInfo(), DataSetStruct::hasPk, m_dataSource, PKInfo::name, DataSetStruct::name, DataSetStruct::pkInfo, DataSetStruct::vecCcInfo, DataSetStruct::vecFkInfo, DataSetStruct::vecIdxInfo, and DataSetStruct::vecUkInfo.
Referenced by getDataSetsInfo(), and PrintManager::printDataSetInfo().
| std::vector< std::string * > DSInfo::getDataSetNameList | ( | ) | 
Get all Data Sets names.
Definition at line 209 of file DSInfo.cpp.
References te::da::DataSource::getTransactor(), and m_dataSource.
Referenced by PrintManager::printCatalog(), and PrintManager::printDataSetNameList().
| std::vector< DataSetStruct > DSInfo::getDataSetsInfo | ( | ) | 
Get all Data Sets informations.
Definition at line 225 of file DSInfo.cpp.
References getDataSetInfo(), te::da::DataSource::getTransactor(), and m_dataSource.
| DataSourceHeader DSInfo::getDataSourceHeader | ( | ) | 
Get the Data Source Header.
Definition at line 252 of file DSInfo.cpp.
References te::da::DataSource::getConnectionInfo(), te::da::DataSource::getType(), m_dataSource, DataSourceHeader::name, and DataSourceHeader::type.
Referenced by PrintManager::printHeader().
| std::map< std::string, std::vector< std::string > > DSInfo::getDataSourceParameters | ( | std::string | dataSourceType | ) | 
Get Data Source Types connection parameters.
| dataSourceType | Data Source Type, if passed by the user | 
Definition at line 278 of file DSInfo.cpp.
References te::common::Convert2UCase(), and Utils::loadModules().
Referenced by PrintManager::printDataSourceParameters().
      
  | 
  private | 
Get foreign keys information.
| dataSetName | Data Set Name | 
Definition at line 70 of file DSInfo.cpp.
References Utils::getFKPropertiesNames(), te::da::DataSetType::getForeignKey(), te::da::Constraint::getName(), te::da::DataSetType::getNumberOfForeignKeys(), te::da::DataSource::getTransactor(), m_dataSource, FKInfo::name, and FKInfo::porperties.
Referenced by getDataSetInfo().
      
  | 
  private | 
Get indexes information.
| dataSetName | Data Set Name | 
Definition at line 126 of file DSInfo.cpp.
References Utils::getIdxPropertiesNames(), Utils::getIdxTypeName(), te::da::DataSetType::getIndex(), te::da::Index::getIndexType(), te::da::Index::getName(), te::da::DataSetType::getNumberOfIndexes(), te::da::DataSource::getTransactor(), m_dataSource, IdxInfo::name, IdxInfo::porperties, and IdxInfo::type.
Referenced by getDataSetInfo().
      
  | 
  private | 
Get primary key information.
| dataSetName | Data Set Name | 
Definition at line 42 of file DSInfo.cpp.
References te::da::Constraint::getName(), Utils::getPKPropertiesNames(), te::da::DataSetType::getPrimaryKey(), te::da::DataSource::getTransactor(), m_dataSource, PKInfo::name, and PKInfo::porperties.
Referenced by getDataSetInfo().
      
  | 
  private | 
Get unique keys information.
| dataSetName | Data Set Name | 
Definition at line 98 of file DSInfo.cpp.
References te::da::Constraint::getName(), te::da::DataSetType::getNumberOfUniqueKeys(), te::da::DataSource::getTransactor(), Utils::getUKPropertiesNames(), te::da::DataSetType::getUniqueKey(), m_dataSource, UKInfo::name, and UKInfo::porperties.
Referenced by getDataSetInfo().
| bool DSInfo::init | ( | std::string | dstype, | 
| std::string | connstr | ||
| ) | 
Init the application.
| dstype | Data Source Type | 
| connstr | Data Source Connection String | 
Definition at line 11 of file DSInfo.cpp.
References te::common::Convert2UCase(), Utils::getDataSource(), Utils::loadModules(), m_connStr, m_dataSource, and m_dataSourceType.
Referenced by PrintManager::init().
      
  | 
  private | 
      
  | 
  private | 
The Data Source.
Definition at line 173 of file DSInfo.h.
Referenced by DSInfo(), getCapabilities(), getCheckConstraintInfo(), getDataSetInfo(), getDataSetNameList(), getDataSetsInfo(), getDataSourceHeader(), getForeignKeyInfo(), getIndexesKeyInfo(), getPrimaryKeyInfo(), getUniqueKeyInfo(), and init().
      
  | 
  private |