protected DBIdentifier getIndexName(DBIdentifier name, Table table, Column[] cols) { // always use dict for index names because no spec mandates them // based on defaults DBIdentifier sName = name; if (DBIdentifier.isNull(sName)) sName = cols[0].getIdentifier(); if (_removeHungarianNotation) sName = DBIdentifier.removeHungarianNotation(sName); return dict.getValidIndexName(sName, table); }
protected DBIdentifier getIndexName(DBIdentifier name, Table table, Column[] cols) { // always use dict for index names because no spec mandates them // based on defaults DBIdentifier sName = name; if (DBIdentifier.isNull(sName)) sName = cols[0].getIdentifier(); if (_removeHungarianNotation) sName = DBIdentifier.removeHungarianNotation(sName); return dict.getValidIndexName(sName, table); }
protected DBIdentifier getIndexName(DBIdentifier name, Table table, Column[] cols) { // always use dict for index names because no spec mandates them // based on defaults DBIdentifier sName = name; if (DBIdentifier.isNull(sName)) sName = cols[0].getIdentifier(); if (_removeHungarianNotation) sName = DBIdentifier.removeHungarianNotation(sName); return dict.getValidIndexName(sName, table); }
protected DBIdentifier getIndexName(DBIdentifier name, Table table, Column[] cols) { // always use dict for index names because no spec mandates them // based on defaults DBIdentifier sName = name; if (DBIdentifier.isNull(sName)) sName = cols[0].getIdentifier(); if (_removeHungarianNotation) sName = DBIdentifier.removeHungarianNotation(sName); return dict.getValidIndexName(sName, table); }
/** * Correct the given column's name. */ protected void correctName(Table table, Column col) { if (!_defMissing || _removeHungarianNotation) { DBIdentifier name = col.getIdentifier(); if (_removeHungarianNotation) name = DBIdentifier.removeHungarianNotation(name); DBIdentifier correctedName = dict.getValidColumnName(name, table); col.setIdentifier(correctedName); table.addCorrectedColumnName(correctedName, true); } }
/** * Correct the given column's name. */ protected void correctName(Table table, Column col) { if (!_defMissing || _removeHungarianNotation) { DBIdentifier name = col.getIdentifier(); if (_removeHungarianNotation) name = DBIdentifier.removeHungarianNotation(name); DBIdentifier correctedName = dict.getValidColumnName(name, table); col.setIdentifier(correctedName); table.addCorrectedColumnName(correctedName, true); } }
/** * Correct the given column's name. */ protected void correctName(Table table, Column col) { if (!_defMissing || _removeHungarianNotation) { DBIdentifier name = col.getIdentifier(); if (_removeHungarianNotation) name = DBIdentifier.removeHungarianNotation(name); DBIdentifier correctedName = dict.getValidColumnName(name, table); col.setIdentifier(correctedName); table.addCorrectedColumnName(correctedName, true); } }
/** * Correct the given column's name. */ protected void correctName(Table table, Column col) { if (!_defMissing || _removeHungarianNotation) { DBIdentifier name = col.getIdentifier(); if (_removeHungarianNotation) name = DBIdentifier.removeHungarianNotation(name); DBIdentifier correctedName = dict.getValidColumnName(name, table); col.setIdentifier(correctedName); table.addCorrectedColumnName(correctedName, true); } }