for is a loop to iterate tables, views, procedures, vtables, columns etc. You can generate your code for each entity in the database by using this loop.
Assume that we use a database with tables: TableA, TableB, TableC, …, TableZ. We can generate all table names with the following piece of code:
Assume that we use a database with views : ViewA, ViewB, ViewC, …, ViewZ. By using the following piece of code, we can generate classes for every view: