public class MySqlPaginationPlugin extends PluginAdapter
Plugin.ModelClassTypecontext, properties| 构造器和说明 |
|---|
MySqlPaginationPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addBaseColumns(IntrospectedTable introspectedTable) |
protected void |
addColumn(java.lang.String name,
java.lang.String jdbcType,
java.lang.String javaName,
FullyQualifiedJavaType javaType,
boolean isSequence,
boolean isKey,
IntrospectedTable introspectedTable) |
boolean |
clientDeleteByPrimaryKeyMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the deleteByPrimaryKey method has been
generated in the client interface.
|
boolean |
clientGenerated(Interface interfaze,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the entire client has been generated.
|
java.util.List<GeneratedJavaFile> |
contextGenerateAdditionalJavaFiles(IntrospectedTable introspectedTable)
This method can be used to generate additional Java files needed by your
implementation that might be related to a specific table.
|
java.util.List<GeneratedXmlFile> |
contextGenerateAdditionalXmlFiles(IntrospectedTable introspectedTable)
This method can be used to generate additional XML files needed by your
implementation that might be related to a specific table.
|
protected void |
createCriteriaMethod(java.lang.String fieldName,
java.lang.String propertyName,
FullyQualifiedJavaType type,
InnerClass returnClazz,
InnerClass innerClazz,
TopLevelClass outClazz) |
protected void |
createInnerMethod(JavaVisibility visi,
java.lang.String name,
java.lang.String annotation,
FullyQualifiedJavaType returnType,
java.util.List<Parameter> parms,
java.lang.String body,
InnerClass innerClass,
TopLevelClass outClass) |
protected void |
createMethod(JavaVisibility visi,
java.lang.String name,
java.lang.String annotation,
FullyQualifiedJavaType returnType,
java.util.List<Parameter> parms,
java.lang.String body,
TopLevelClass topLevelClass) |
static void |
main(java.lang.String[] args) |
boolean |
modelBaseRecordClassGenerated(TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called after the base record class is generated by the
JavaModelGenerator.
|
boolean |
modelExampleClassGenerated(TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called after the example class is generated by the
JavaModelGenerator.
|
boolean |
sqlMapCountByExampleElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the countByExample element is generated.
|
boolean |
sqlMapDeleteByPrimaryKeyElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the deleteByPrimaryKey element is generated.
|
boolean |
sqlMapDocumentGenerated(Document document,
IntrospectedTable introspectedTable)
This method is called when the SqlMap document has been generated.
|
boolean |
sqlMapInsertSelectiveElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the insert selective element is generated.
|
boolean |
sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByExample element is generated.
|
boolean |
sqlMapSelectByPrimaryKeyElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByPrimaryKey element is generated.
|
boolean |
sqlMapUpdateByPrimaryKeySelectiveElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeySelective element is
generated.
|
boolean |
sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithoutBLOBs element is
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.
|
clientCountByExampleMethodGenerated, clientCountByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientInsertMethodGenerated, clientInsertMethodGenerated, clientInsertSelectiveMethodGenerated, clientInsertSelectiveMethodGenerated, clientSelectAllMethodGenerated, clientSelectAllMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalXmlFiles, getContext, getProperties, initialized, modelFieldGenerated, modelGetterMethodGenerated, modelPrimaryKeyClassGenerated, modelRecordWithBLOBsClassGenerated, modelSetterMethodGenerated, providerApplyWhereMethodGenerated, providerCountByExampleMethodGenerated, providerDeleteByExampleMethodGenerated, providerGenerated, providerInsertSelectiveMethodGenerated, providerSelectByExampleWithBLOBsMethodGenerated, providerSelectByExampleWithoutBLOBsMethodGenerated, providerUpdateByExampleSelectiveMethodGenerated, providerUpdateByExampleWithBLOBsMethodGenerated, providerUpdateByExampleWithoutBLOBsMethodGenerated, providerUpdateByPrimaryKeySelectiveMethodGenerated, setContext, setProperties, sqlMapBaseColumnListElementGenerated, sqlMapBlobColumnListElementGenerated, sqlMapDeleteByExampleElementGenerated, sqlMapExampleWhereClauseElementGenerated, sqlMapGenerated, sqlMapInsertElementGenerated, sqlMapResultMapWithBLOBsElementGenerated, sqlMapResultMapWithoutBLOBsElementGenerated, sqlMapSelectAllElementGenerated, sqlMapSelectByExampleWithBLOBsElementGenerated, sqlMapUpdateByExampleSelectiveElementGenerated, sqlMapUpdateByExampleWithBLOBsElementGenerated, sqlMapUpdateByExampleWithoutBLOBsElementGenerated, sqlMapUpdateByPrimaryKeyWithBLOBsElementGeneratedpublic boolean modelBaseRecordClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
PluginmodelBaseRecordClassGenerated 在接口中 PluginmodelBaseRecordClassGenerated 在类中 PluginAdaptertopLevelClass - the generated base record classintrospectedTable - The class containing information about the table as
introspected from the databaseprotected void createMethod(JavaVisibility visi, java.lang.String name, java.lang.String annotation, FullyQualifiedJavaType returnType, java.util.List<Parameter> parms, java.lang.String body, TopLevelClass topLevelClass)
protected void createInnerMethod(JavaVisibility visi, java.lang.String name, java.lang.String annotation, FullyQualifiedJavaType returnType, java.util.List<Parameter> parms, java.lang.String body, InnerClass innerClass, TopLevelClass outClass)
protected void createCriteriaMethod(java.lang.String fieldName,
java.lang.String propertyName,
FullyQualifiedJavaType type,
InnerClass returnClazz,
InnerClass innerClazz,
TopLevelClass outClazz)
protected void addBaseColumns(IntrospectedTable introspectedTable)
protected void addColumn(java.lang.String name,
java.lang.String jdbcType,
java.lang.String javaName,
FullyQualifiedJavaType javaType,
boolean isSequence,
boolean isKey,
IntrospectedTable introspectedTable)
public boolean modelExampleClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
PluginmodelExampleClassGenerated 在接口中 PluginmodelExampleClassGenerated 在类中 PluginAdaptertopLevelClass - the generated example classintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable)
PluginsqlMapDocumentGenerated 在接口中 PluginsqlMapDocumentGenerated 在类中 PluginAdapterdocument - 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 databasepublic boolean sqlMapSelectByPrimaryKeyElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapSelectByPrimaryKeyElementGenerated 在接口中 PluginsqlMapSelectByPrimaryKeyElementGenerated 在类中 PluginAdapterelement - the generated <select> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapUpdateByPrimaryKeySelectiveElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapUpdateByPrimaryKeySelectiveElementGenerated 在接口中 PluginsqlMapUpdateByPrimaryKeySelectiveElementGenerated 在类中 PluginAdapterelement - the generated <update> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated 在接口中 PluginsqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated 在类中 PluginAdapterelement - the generated <update> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapDeleteByPrimaryKeyElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapDeleteByPrimaryKeyElementGenerated 在接口中 PluginsqlMapDeleteByPrimaryKeyElementGenerated 在类中 PluginAdapterelement - the generated <delete> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapInsertSelectiveElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapInsertSelectiveElementGenerated 在接口中 PluginsqlMapInsertSelectiveElementGenerated 在类中 PluginAdapterelement - the generated <insert> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean clientDeleteByPrimaryKeyMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
PluginclientDeleteByPrimaryKeyMethodGenerated 在接口中 PluginclientDeleteByPrimaryKeyMethodGenerated 在类中 PluginAdaptermethod - the generated deleteByPrimaryKey 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 databasepublic boolean clientGenerated(Interface interfaze, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
PluginclientGenerated 在接口中 PluginclientGenerated 在类中 PluginAdapterinterfaze - the generated interface if any, may be nulltopLevelClass - the generated implementation class if any, may be nullintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapSelectByExampleWithoutBLOBsElementGenerated 在接口中 PluginsqlMapSelectByExampleWithoutBLOBsElementGenerated 在类中 PluginAdapterelement - the generated <select> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean sqlMapCountByExampleElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
PluginsqlMapCountByExampleElementGenerated 在接口中 PluginsqlMapCountByExampleElementGenerated 在类中 PluginAdapterelement - the generated <select> elementintrospectedTable - The class containing information about the table as
introspected from the databasepublic java.util.List<GeneratedXmlFile> contextGenerateAdditionalXmlFiles(IntrospectedTable introspectedTable)
PlugincontextGenerateAdditionalXmlFiles 在接口中 PlugincontextGenerateAdditionalXmlFiles 在类中 PluginAdapterintrospectedTable - The class containing information about the table as
introspected from the databasepublic java.util.List<GeneratedJavaFile> contextGenerateAdditionalJavaFiles(IntrospectedTable introspectedTable)
PlugincontextGenerateAdditionalJavaFiles 在接口中 PlugincontextGenerateAdditionalJavaFiles 在类中 PluginAdapterintrospectedTable - The class containing information about the table as
introspected from the databasepublic boolean validate(java.util.List<java.lang.String> warnings)
Pluginwarnings - 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 static void main(java.lang.String[] args)
Copyright © 2018. All Rights Reserved.