|
||||||||||
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.RowBoundsPlugin
public class RowBoundsPlugin
This plugin will add selectByExample methods that include rowBounds parameters to the generated mapper interface. This plugin is only valid for MyBatis3.
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 | |
---|---|
RowBoundsPlugin()
|
Method Summary | |
---|---|
boolean |
clientSelectByExampleWithBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithBLOBs method has been generated in the client interface. |
boolean |
clientSelectByExampleWithoutBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithoutBLOBs method has been generated in the client interface. |
boolean |
sqlMapDocumentGenerated(Document document,
IntrospectedTable introspectedTable)
We'll override this method and add any new elements generated by previous calls |
boolean |
sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithBLOBs element is generated. |
boolean |
sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByExample element is generated. |
boolean |
validate(List<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 RowBoundsPlugin()
Method Detail |
---|
public boolean validate(List<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 clientSelectByExampleWithBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
Plugin
clientSelectByExampleWithBLOBsMethodGenerated
in interface Plugin
clientSelectByExampleWithBLOBsMethodGenerated
in class PluginAdapter
method
- the generated selectByExampleWithBLOBs methodinterfaze
- the partially implemented client interface. You can add
additional imported classes to the interface if
necessary.introspectedTable
- The class containing information about the table as
introspected from the database
public boolean clientSelectByExampleWithoutBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
Plugin
clientSelectByExampleWithoutBLOBsMethodGenerated
in interface Plugin
clientSelectByExampleWithoutBLOBsMethodGenerated
in class PluginAdapter
method
- the generated selectByExampleWithoutBLOBs methodinterfaze
- the partially implemented client interface. You can add
additional imported classes to the interface if
necessary.introspectedTable
- The class containing information about the table as
introspected from the database
public boolean sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
Plugin
sqlMapSelectByExampleWithoutBLOBsElementGenerated
in interface Plugin
sqlMapSelectByExampleWithoutBLOBsElementGenerated
in class PluginAdapter
element
- the generated <select> elementintrospectedTable
- The class containing information about the table as
introspected from the database
public boolean sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
Plugin
sqlMapSelectByExampleWithBLOBsElementGenerated
in interface Plugin
sqlMapSelectByExampleWithBLOBsElementGenerated
in class PluginAdapter
element
- the generated <select> elementintrospectedTable
- The class containing information about the table as
introspected from the database
public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable)
sqlMapDocumentGenerated
in interface Plugin
sqlMapDocumentGenerated
in class PluginAdapter
document
- the generated document (note that this is the MyBatis generator's internal
Document class - not the w3c XML Document class)introspectedTable
- 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 |