Exemple #1
0
        private string GetSelectPath()
        {
            string selectPaths;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                selectPaths = @"./DAOs/PathsFiles/selectQueries_Unix_Paths.json";
            }
            else
            {
                selectPaths = @".\DAOs\PathsFiles\selectQueries_Windows_Paths.json";
            }

            return(selectPaths);
        }
Exemple #2
0
        public string GetFilePath()
        {
            string selectPaths;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                selectPaths = @"./Security/DataManager/EncryptedNames/names";
            }
            else
            {
                selectPaths = @".\Security\DataManager\EncryptedNames\names";
            }

            return(selectPaths);
        }
Exemple #3
0
        private void SetPaths()
        {
            string createTablePaths = string.Empty;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                createTablePaths = @"./DAOs/PathsFiles/insertQueries_Unix_Paths.json";
            }
            else
            {
                createTablePaths = @".\DAOs\PathsFiles\insertQueries_Unix_Paths.json";
            }

            var paths = UtilsStreamReaders.GetInstance().ReadStreamFile(createTablePaths);

            UtilsJSON.GetInstance().DeserializeFromString(out _oPathsArray, paths);
        }
Exemple #4
0
        private void SetProperties()
        {
            _connectionProperties = String.Empty;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                _connectionProperties = @"./DAOs/Connection/connectionProperties.json";
            }
            else
            {
                _connectionProperties = @".\DAOs\Connection\connectionProperties.json";
            }

            var connectionProp = UtilsStreamReaders.GetInstance().ReadStreamFile(_connectionProperties);

            UtilsJSON.GetInstance().DeserializeFromString(out _oProperties, connectionProp);
        }
Exemple #5
0
        private void SetPaths()
        {
            string createTablePaths;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                createTablePaths = @"./DAOs/CreateTableOperations/createTables_Unix_Paths.json";
            }
            else
            {
                createTablePaths = @".\DAOs\CreateTableOperations\createTables_Unix_Paths.json";
            }

            var   paths = UtilsStreamReaders.GetInstance().ReadStreamFile(createTablePaths);
            Paths oPathsArray;

            UtilsJSON.GetInstance().DeserializeFromString(out oPathsArray, paths);
            _oPathsArray = oPathsArray.oPaths;
        }
Exemple #6
0
        private void SetPaths()
        {
            string createTablePaths = string.Empty;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                createTablePaths = @"./Processes/InitialDataInsertion/insertData_Unix_Paths.json";
            }
            else
            {
                createTablePaths = @".\Processes\InitialDataInsertion\insertData_Windows_Paths.json";
            }

            var   paths = UtilsStreamReaders.GetInstance().ReadStreamFile(createTablePaths);
            Paths oPathsArray;

            UtilsJSON.GetInstance().DeserializeFromString(out oPathsArray, paths);
            this._INSERT_DATES_QUERY_PATH             = oPathsArray.oPaths[UtilsConstants.IntConstants.ZERO];
            this._INSERT_GEOZONE_COUNTRIES_QUERY_PATH = oPathsArray.oPaths[UtilsConstants.IntConstants.THREE];
            this._INSERT_GEOZONE_NAME_QUERY_PATH      = oPathsArray.oPaths[UtilsConstants.IntConstants.ONE];
            this._INSERT_GEOZONE_QUERY_PATH           = oPathsArray.oPaths[UtilsConstants.IntConstants.TWO];
        }
Exemple #7
0
        private void SetPaths()
        {
            string createTablePaths = string.Empty;
            string so = UtilsSO.GetInstance().GetSO();

            if (so.Contains("unix"))
            {
                createTablePaths = @"./DAOs/SelectTableOperations/selectTables_Unix_Paths.json";
            }
            else
            {
                createTablePaths = @".\\DAOs\\SelectTableOperations\\selectTables_Windows_Paths.json";
            }

            var   paths = UtilsStreamReaders.GetInstance().ReadStreamFile(createTablePaths);
            Paths oPathsArray;

            UtilsJSON.GetInstance().DeserializeFromString(out oPathsArray, paths);
            this._SELECT_FROM_COUNTRIES_QUERY_PATH     = oPathsArray.oPaths[UtilsConstants.IntConstants.ZERO];
            this._SELECT_FROM_COUNTRIES_ID_QUERY_PATH  = oPathsArray.oPaths[UtilsConstants.IntConstants.ONE];
            this._SELECT_FROM_GEONAMEDTABLE_QUERY_PATH = oPathsArray.oPaths[UtilsConstants.IntConstants.TWO];
            this._SELECT_ID_QUERY_PATH    = oPathsArray.oPaths[UtilsConstants.IntConstants.THREE];
            this._SELECT_DATES_QUERY_PATH = oPathsArray.oPaths[UtilsConstants.IntConstants.FOUR];
        }