public class

CaseInsensitiveLikePlugin

extends PluginAdapter
java.lang.Object
   ↳ org.mybatis.generator.api.PluginAdapter
     ↳ org.mybatis.generator.plugins.CaseInsensitiveLikePlugin

Class Overview

This plugin demonstrates adding methods to the example class to enable case-insensitive LIKE searches. It shows hows to construct new methods and add them to an existing class. This plugin only adds methods for String fields mapped to a JDBC character type (CHAR, VARCHAR, etc.)

Summary

[Expand]
Inherited Fields
From class org.mybatis.generator.api.PluginAdapter
Public Constructors
CaseInsensitiveLikePlugin()
Public Methods
boolean modelExampleClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
This method is called after the example class is generated by the JavaModelGenerator.
boolean validate(List<String> warnings)
[Expand]
Inherited Methods
From class org.mybatis.generator.api.PluginAdapter
From class java.lang.Object
From interface org.mybatis.generator.api.Plugin

Public Constructors

public CaseInsensitiveLikePlugin ()

Public Methods

public boolean modelExampleClassGenerated (TopLevelClass topLevelClass, IntrospectedTable introspectedTable)

This method is called after the example class is generated by the JavaModelGenerator. This method will only be called if the table rules call for generation of an example class.

This method is only guaranteed to be called by the default Java model generators. Other user supplied generators may, or may not, call this method.

Parameters
topLevelClass the generated example class
introspectedTable The class containing information about the table as introspected from the database
Returns
  • true if the class should be generated, false if the generated class should be ignored. In the case of multiple plugins, the first plugin returning false will disable the calling of further plugins.

public boolean validate (List<String> warnings)