Skip to content
Snippets Groups Projects
Commit ea682d6a authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

remove deprecated util

parent 32a19451
No related branches found
No related tags found
No related merge requests found
......@@ -406,48 +406,3 @@ NumberSequencingUtils.getMaxUniqueNumber = function(pColumn, pTable, pCondition)
var maxNum = db.cell("select max(" + pColumn + ") from " + pTable + condition);
return maxNum == "" ? "0" : maxNum;
}
/**
* Class containing miscellaneous utiltiy function extending JDito
* @class
* @deprecated
* @todo: remove
*/
function JDitoUtils()
{
/**
* Returns a list of aliasNames with a given type
* ignores errors when an alias is not confgiured (empty)
*
* @param {project.DATASOURCE_} pAliasType opt the type of the aliases to load
*
* @return {String[]} Array of aliasNames
*/
this.getAliasListByType = function(pAliasType)
{
pAliasType = pAliasType || project.DATASOURCE_DB;
var allDbAliases = project.getDataModels(project.DATAMODEL_KIND_ALIAS);
var dbAliases = [];
for (var i = 0, j = allDbAliases.length; i < j; i++)
{
var aliasName = allDbAliases[i][0];
var alias = null;
try
{
alias = project.getAliasModel(aliasName);
}
catch(ex)
{
logging.log(translate.withArguments("Der Alias \"%0\" konnte nicht geladen werden. Eventuell wurde er nicht konfiguriert", [aliasName]));
logging.log(ex);
}
if (alias != null && alias[project.ALIAS_DATASOURCETYPE] == pAliasType)
dbAliases.push(aliasName);
}
return dbAliases;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment