@Override
    public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable) {
    """
	SQL Map Methods 生成
	具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html
	@param document
	@param introspectedTable
	@return
    """
        if (selectOneByExampleEle != null) {
            // hook
            if (PluginTools.getHook(ISelectOneByExamplePluginHook.class).sqlMapSelectOneByExampleWithoutBLOBsElementGenerated(document, selectOneByExampleEle, introspectedTable)) {
                // 添加到根节点
                FormatTools.addElementWithBestPosition(document.getRootElement(), selectOneByExampleEle);
                logger.debug("itfsw(查询单条数据插件):" + introspectedTable.getMyBatis3XmlMapperFileName() + "增加selectOneByExample方法。");
            }
        }

        if (selectOneByExampleWithBLOBsEle != null) {
            // hook
            if (PluginTools.getHook(ISelectOneByExamplePluginHook.class).sqlMapSelectOneByExampleWithBLOBsElementGenerated(document, selectOneByExampleWithBLOBsEle, introspectedTable)) {
                // 添加到根节点
                FormatTools.addElementWithBestPosition(document.getRootElement(), selectOneByExampleWithBLOBsEle);
                logger.debug("itfsw(查询单条数据插件):" + introspectedTable.getMyBatis3XmlMapperFileName() + "增加selectOneByExampleWithBLOBs方法。");
            }
        }

        return true;
    }
@Override
    public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable) {
        if (selectOneByExampleEle != null) {
            // hook
            if (PluginTools.getHook(ISelectOneByExamplePluginHook.class).sqlMapSelectOneByExampleWithoutBLOBsElementGenerated(document, selectOneByExampleEle, introspectedTable)) {
                // 添加到根节点
                FormatTools.addElementWithBestPosition(document.getRootElement(), selectOneByExampleEle);
                logger.debug("itfsw(查询单条数据插件):" + introspectedTable.getMyBatis3XmlMapperFileName() + "增加selectOneByExample方法。");
            }
        }

        if (selectOneByExampleWithBLOBsEle != null) {
            // hook
            if (PluginTools.getHook(ISelectOneByExamplePluginHook.class).sqlMapSelectOneByExampleWithBLOBsElementGenerated(document, selectOneByExampleWithBLOBsEle, introspectedTable)) {
                // 添加到根节点
                FormatTools.addElementWithBestPosition(document.getRootElement(), selectOneByExampleWithBLOBsEle);
                logger.debug("itfsw(查询单条数据插件):" + introspectedTable.getMyBatis3XmlMapperFileName() + "增加selectOneByExampleWithBLOBs方法。");
            }
        }

        return true;
    }
@ Override public boolean sqlMapDocumentGenerated ( Document document , IntrospectedTable introspectedTable ) { if ( selectOneByExampleEle != null ) { // hook if ( PluginTools . getHook ( ISelectOneByExamplePluginHook . class ) . sqlMapSelectOneByExampleWithoutBLOBsElementGenerated ( document , selectOneByExampleEle , introspectedTable ) ) { // 添加到根节点 FormatTools . addElementWithBestPosition ( document . getRootElement ( ) , selectOneByExampleEle ) ; logger . debug ( "itfsw(查询单条数据插件):" + introspectedT b e.getMyBatis3XmlM a pperFileName() + "增加selectOn e B E ample方法。"); } } if ( selectOneByExampleWithBLOBsEle != null ) { // hook if ( PluginTools . getHook ( ISelectOneByExamplePluginHook . class ) . sqlMapSelectOneByExampleWithBLOBsElementGenerated ( document , selectOneByExampleWithBLOBsEle , introspectedTable ) ) { // 添加到根节点 FormatTools . addElementWithBestPosition ( document . getRootElement ( ) , selectOneByExampleWithBLOBsEle ) ; logger . debug ( "itfsw(查询单条数据插件):" + introspectedT b e.getMyBatis3XmlM a pperFileName() + "增加selectOn e B E ampleWithBLOBs方法。"); } } return true ; }
SQL Map Methods 生成
具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html
@param document
@param introspectedTable
@return
SQL Map Methods 生成 具体执行顺序 http : // www . mybatis . org / generator / reference / pluggingIn . html