Package org.fastnate.generator.context
Interface ContextModelListener
- All Known Implementing Classes:
DefaultContextModelListener
public interface ContextModelListener
Implementations of this class are interested in the discovery of new
entity classes or
generators.- Author:
- Tobias Liefke
-
Method Summary
Modifier and TypeMethodDescriptionvoidfoundColumn(GeneratorColumn column) Called when a new table column was discovered.voidfoundEntityClass(EntityClass<?> entityClass) Called when a new entity class was discovered.voidfoundGenerator(IdGenerator generator) Called when a new generator was discovered.voidfoundTable(GeneratorTable table) Called when a new table was discovered.
-
Method Details
-
foundColumn
Called when a new table column was discovered.- Parameters:
column- the new column
-
foundEntityClass
Called when a new entity class was discovered.- Parameters:
entityClass- the found class
-
foundGenerator
Called when a new generator was discovered.- Parameters:
generator- the new generator
-
foundTable
Called when a new table was discovered. Attention: The columns are not discovered at this point.- Parameters:
table- the new table
-