Class IgnoreViewsPlugin

java.lang.Object
org.mybatis.generator.api.PluginAdapter
org.mybatis.generator.plugins.IgnoreViewsPlugin
All Implemented Interfaces:
Plugin

public class IgnoreViewsPlugin extends PluginAdapter
This plugin will cause any table of type "VIEW" in a context to be ignored.
  • Constructor Details

    • IgnoreViewsPlugin

      public IgnoreViewsPlugin()
  • Method Details

    • validate

      public boolean validate(List<String> warnings)
      Description copied from interface: Plugin
      This method is called after all the setXXX methods are called, but before any other method is called. This allows the plugin to determine whether it can run or not. For example, if the plugin requires certain properties to be set, and the properties are not set, then the plugin is invalid and will not run.
      Parameters:
      warnings - add strings to this list to specify warnings. For example, if the plugin is invalid, you should specify why. Warnings are reported to users after the completion of the run.
      Returns:
      true if the plugin is in a valid state. Invalid plugins will not be called
    • shouldGenerate

      public boolean shouldGenerate(IntrospectedTable introspectedTable)
      Description copied from interface: Plugin
      If false, the table will be skipped in code generation.
      Parameters:
      introspectedTable - the current table
      Returns:
      true if code should be generated for this table, else false