All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.diff.handler.parse.sqlparse.select.ArexOrderByVisitorAdapter Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
package com.arextest.diff.handler.parse.sqlparse.select;

import com.arextest.diff.handler.parse.sqlparse.constants.DbParseConstants;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.sf.jsqlparser.statement.select.OrderByElement;
import net.sf.jsqlparser.statement.select.OrderByVisitor;

/**
 * Created by rchen9 on 2023/1/11.
 */
public class ArexOrderByVisitorAdapter implements OrderByVisitor {

  private ObjectNode sqlObject;

  public ArexOrderByVisitorAdapter(ObjectNode object) {
    sqlObject = object;
  }

  @Override
  public void visit(OrderByElement orderBy) {
    sqlObject.put(orderBy.toString(), DbParseConstants.EMPTY);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy