use of com.robotoworks.mechanoid.db.sqliteModel.AlterTableRenameStatement in project mechanoid by robotoworks.
the class ModelUtil method getHistory.
public static LinkedList<TableDefinition> getHistory(final TableDefinition ref) {
LinkedList<TableDefinition> refs = new LinkedList<TableDefinition>();
TableDefinition current = ref;
while ((current instanceof AlterTableRenameStatement)) {
{
refs.add(current);
TableDefinition _table = ((AlterTableRenameStatement) current).getTable();
current = _table;
}
}
refs.add(current);
return refs;
}
Aggregations