use of org.dbflute.logic.jdbc.schemadiff.DfTableDiff in project dbflute-core by dbflute.
the class DfFirstDateAgent method getColumnFirstDateMap.
protected Map<String, Date> getColumnFirstDateMap() {
// case insensitive (not flexible because of historical changes)
if (_columnFirstDateMap != null) {
return _columnFirstDateMap;
}
final Map<String, Date> columnFirstDateMap = StringKeyMap.createAsCaseInsensitiveOrdered();
final List<DfSchemaDiff> schemaDiffList = prepareSchemaDiffList();
for (DfSchemaDiff schemaDiff : schemaDiffList) {
final List<DfTableDiff> tableDiffList = schemaDiff.getChangedTableDiffList();
for (DfTableDiff tableDiff : tableDiffList) {
final String tableName = tableDiff.getTableName();
final List<DfColumnDiff> columnDiffList = tableDiff.getAddedColumnDiffList();
for (DfColumnDiff columnDiff : columnDiffList) {
final String columnName = columnDiff.getColumnName();
final String keyName = generateColumnKey(tableName, columnName);
columnFirstDateMap.put(keyName, schemaDiff.getNativeDiffDate());
}
}
}
_columnFirstDateMap = columnFirstDateMap;
return _columnFirstDateMap;
}
use of org.dbflute.logic.jdbc.schemadiff.DfTableDiff in project dbflute-core by dbflute.
the class DfFirstDateAgent method getTableFirstDateMap.
protected Map<String, Date> getTableFirstDateMap() {
// case insensitive (not flexible because of historical changes)
if (_tableFirstDateMap != null) {
return _tableFirstDateMap;
}
final Map<String, Date> tableFirstDateMap = StringKeyMap.createAsCaseInsensitiveOrdered();
final List<DfSchemaDiff> schemaDiffList = prepareSchemaDiffList();
for (DfSchemaDiff schemaDiff : schemaDiffList) {
List<DfTableDiff> tableDiffList = schemaDiff.getAddedTableDiffList();
for (DfTableDiff tableDiff : tableDiffList) {
final String tableName = tableDiff.getTableName();
tableFirstDateMap.put(tableName, schemaDiff.getNativeDiffDate());
}
}
_tableFirstDateMap = tableFirstDateMap;
return _tableFirstDateMap;
}
Aggregations