@Override
public boolean sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable) {
if (databaseType.contains("oracle")) {
XmlElement oracleHeadIncludeElement = new XmlElement("include");
oracleHeadIncludeElement.addAttribute(new Attribute("refid", "common.Oracle_Pagination_Head"));
// 在第一个地方增加
element.addElement(0, oracleHeadIncludeElement);
XmlElement oracleTailIncludeElement = new XmlElement("include");
oracleTailIncludeElement.addAttribute(new Attribute("refid", "common.Oracle_Pagination_Tail"));
// 在最后增加
element.addElement(element.getElements().size(), oracleTailIncludeElement);
} else if (databaseType.contains("mysql")) {
XmlElement mysqlLimitIncludeElement = new XmlElement("include");
mysqlLimitIncludeElement.addAttribute(new Attribute("refid", "common.Mysql_Pagination_Limit"));
// 在最后增加
element.addElement(element.getElements().size(), mysqlLimitIncludeElement);
}
return true;
}