Class TableMigrator


  • public class TableMigrator
    extends Object
    Handles the migration of tables.
    Author:
    harald
    • Constructor Detail

      • TableMigrator

        public TableMigrator​(Entity entity,
                             Collection<ForeignKey> foreignKeys,
                             Backend backend,
                             TableMetaData table)
        Creates a table migrator.
        Parameters:
        entity - the model's entity
        foreignKeys - the foreign keys related to given entity
        backend - the backend
        table - the database's table meta data
    • Method Detail

      • getBackend

        public Backend getBackend()
        Gets the backend.
        Returns:
        the backend
      • getEntity

        public Entity getEntity()
        Gets the model's entity.
        Returns:
        the model's entity
      • getTable

        public TableMetaData getTable()
        Gets the database's table meta data.
        Returns:
        the database's table meta data