All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DSInfo Class Reference

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< DataSetStructgetDataSetsInfo ()
 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< CCInfogetCheckConstraintInfo (std::string dataSetName)
 Get check constraint information. More...
 
std::vector< FKInfogetForeignKeyInfo (std::string dataSetName)
 Get foreign keys information. More...
 
std::vector< IdxInfogetIndexesKeyInfo (std::string dataSetName)
 Get indexes information. More...
 
PKInfo getPrimaryKeyInfo (std::string dataSetName)
 Get primary key information. More...
 
std::vector< UKInfogetUniqueKeyInfo (std::string dataSetName)
 Get unique keys information. More...
 

Private Attributes

std::string m_connStr
 The Data Source Connection String. More...
 
te::da::DataSourcem_dataSource
 The Data Source. More...
 
std::string m_dataSourceType
 The Data Source Type. More...
 

Detailed Description

Class with methods to manage the application.

Definition at line 58 of file DSInfo.h.

Constructor & Destructor Documentation

DSInfo::DSInfo ( )

Class Constructor.

Definition at line 4 of file DSInfo.cpp.

References m_connStr, m_dataSource, and m_dataSourceType.

Member Function Documentation

std::map< std::string, std::string > DSInfo::getCapabilities ( )

Get the Data Source Capabilities.

Returns
String/String Map with the Data Source Capabilities

Definition at line 266 of file DSInfo.cpp.

References te::da::DataSource::getCapabilities(), and m_dataSource.

Referenced by PrintManager::printCapabilities().

std::vector< CCInfo > DSInfo::getCheckConstraintInfo ( std::string  dataSetName)
private
std::vector< std::string * > DSInfo::getDataSetNameList ( )

Get all Data Sets names.

Returns
String vector with the 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.

Returns
DataSetStruct Vector

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.

Returns
Data Source Header struct

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.

Parameters
dataSourceTypeData Source Type, if passed by the user
Returns
String/String Vector Map with the Data Source Types connection parameters

Definition at line 278 of file DSInfo.cpp.

References te::common::Convert2UCase(), and Utils::loadModules().

Referenced by PrintManager::printDataSourceParameters().

std::vector< FKInfo > DSInfo::getForeignKeyInfo ( std::string  dataSetName)
private
std::vector< IdxInfo > DSInfo::getIndexesKeyInfo ( std::string  dataSetName)
private
PKInfo DSInfo::getPrimaryKeyInfo ( std::string  dataSetName)
private

Get primary key information.

Parameters
dataSetNameData Set Name
Returns
PKInfo struct

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().

std::vector< UKInfo > DSInfo::getUniqueKeyInfo ( std::string  dataSetName)
private
bool DSInfo::init ( std::string  dstype,
std::string  connstr 
)

Init the application.

Parameters
dstypeData Source Type
connstrData Source Connection String
Returns
True if successfully

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().

Member Data Documentation

std::string DSInfo::m_connStr
private

The Data Source Connection String.

Definition at line 172 of file DSInfo.h.

Referenced by DSInfo(), and init().

std::string DSInfo::m_dataSourceType
private

The Data Source Type.

Definition at line 171 of file DSInfo.h.

Referenced by DSInfo(), and init().


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