@Override public void handleNode(XNode nodeToHandler, List<SqlNode> targetContents) { List<SqlNode> contents = parseDynamicTags(nodeToHandler); MixedSqlNode mixedSqlNode = new MixedSqlNode(contents); String prefix = nodeToHandler.getStringAttribute("prefix"); String prefixOverrides = nodeToHandler.getStringAttribute("prefixOverrides"); String suffix = nodeToHandler.getStringAttribute("suffix"); String suffixOverrides = nodeToHandler.getStringAttribute("suffixOverrides"); TrimSqlNode trimSqlNode = new TrimSqlNode( configuration, mixedSqlNode, prefix, prefixOverrides, suffix, suffixOverrides); targetContents.add(trimSqlNode); }
@Override public void handleNode(XNode nodeToHandler, List<SqlNode> targetContents) { List<SqlNode> contents = parseDynamicTags(nodeToHandler); MixedSqlNode mixedSqlNode = new MixedSqlNode(contents); String test = nodeToHandler.getStringAttribute("test"); IfSqlNode ifSqlNode = new IfSqlNode(mixedSqlNode, test); targetContents.add(ifSqlNode); }
@Override public void handleNode(XNode nodeToHandler, List<SqlNode> targetContents) { List<SqlNode> contents = parseDynamicTags(nodeToHandler); MixedSqlNode mixedSqlNode = new MixedSqlNode(contents); String collection = nodeToHandler.getStringAttribute("collection"); String item = nodeToHandler.getStringAttribute("item"); String index = nodeToHandler.getStringAttribute("index"); String open = nodeToHandler.getStringAttribute("open"); String close = nodeToHandler.getStringAttribute("close"); String separator = nodeToHandler.getStringAttribute("separator"); ForEachSqlNode forEachSqlNode = new ForEachSqlNode( configuration, mixedSqlNode, collection, index, item, open, close, separator); targetContents.add(forEachSqlNode); }