Exemplo n.º 1
0
 public static UtilsSO GetInstance()
 {
     if (_instance is null)
     {
         _instance = new UtilsSO();
     }
     return(_instance);
 }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
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;
        }
Exemplo n.º 7
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];
        }
Exemplo n.º 8
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];
        }