configuration.getDmlQueries().add(dmlQuery);
}
private static void handleUpsert(ConfigurationDBAdapter configuration, Node parentNode)
{
DOMElementIterator eventTypeNodeIterator = new DOMElementIterator(parentNode.getChildNodes());
UpsertQuery upsertQuery = new UpsertQuery();
String connection = getRequiredAttribute(parentNode, "connection");
String stream = getRequiredAttribute(parentNode, "stream");
String name = getOptionalAttribute(parentNode, "name");
String executorName = getOptionalAttribute(parentNode, "executor-name");
String retry = getOptionalAttribute(parentNode, "retry");
String retryInterval = getOptionalAttribute(parentNode, "retry-interval-sec");
String tableName = getRequiredAttribute(parentNode, "table-name");
List<Column> keys = new ArrayList<Column>();
List<Column> values = new ArrayList<Column>();
List<BindingParameter> bindings = new ArrayList<BindingParameter>();
while (eventTypeNodeIterator.hasNext())
{
Element subElement = eventTypeNodeIterator.next();
if (subElement.getNodeName().equals("keys"))
{
handleColumns(keys, subElement);
}