|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mybatis.generator.api.PluginAdapter
org.mybatis.generator.plugins.CaseInsensitiveLikePlugin
public class CaseInsensitiveLikePlugin
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.)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.mybatis.generator.api.Plugin |
---|
Plugin.ModelClassType |
Field Summary |
---|
Fields inherited from class org.mybatis.generator.api.PluginAdapter |
---|
context, properties |
Constructor Summary | |
---|---|
CaseInsensitiveLikePlugin()
|
Method Summary | |
---|---|
boolean |
modelExampleClassGenerated(TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called after the example class is generated by the JavaModelGenerator. |
boolean |
validate(java.util.List<java.lang.String> warnings)
This method is called after all the setXXX methods are called, but before any other method is called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CaseInsensitiveLikePlugin()
Method Detail |
---|
public boolean validate(java.util.List<java.lang.String> warnings)
Plugin
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.
public boolean modelExampleClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
Plugin
modelExampleClassGenerated
in interface Plugin
modelExampleClassGenerated
in class PluginAdapter
topLevelClass
- the generated example classintrospectedTable
- The class containing information about the table as
introspected from the database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |