public static UtilsSO GetInstance() { if (_instance is null) { _instance = new UtilsSO(); } return(_instance); }
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); }
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); }
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); }
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); }
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; }
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]; }
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]; }