|
||||||||||
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.CachePlugin
public class CachePlugin
This plugin adds a cache element to generated sqlMaps. This plugin is for MyBatis3 targeted runtimes only. The plugin accepts the following properties (all are optional): cache_eviction cache_flushInterval cache_size cache_readOnly cache_type All properties correspond to properties of the MyBatis cache element and are passed "as is" to the corresponding properties of the generated cache element. All properties can be specified at the table level, or on the plugin element. The property on the table element will override any property on the plugin element.
Nested Class Summary | |
---|---|
static class |
CachePlugin.CacheProperty
|
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 | |
---|---|
CachePlugin()
|
Method Summary | |
---|---|
boolean |
sqlMapDocumentGenerated(Document document,
IntrospectedTable introspectedTable)
This method is called when the SqlMap document has been generated. |
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 CachePlugin()
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 sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable)
Plugin
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 |