com.github.bingoohuang.sqltrigger.VariantVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql-trigger Show documentation
Show all versions of sql-trigger Show documentation
delay queue based on redis
The newest version!
package com.github.bingoohuang.sqltrigger;
import com.alibaba.druid.sql.ast.expr.SQLVariantRefExpr;
import com.alibaba.druid.sql.visitor.SQLASTVisitorAdapter;
import lombok.Getter;
import java.util.concurrent.atomic.AtomicInteger;
public class VariantVisitor extends SQLASTVisitorAdapter {
@Getter private AtomicInteger variantIndex = new AtomicInteger();
@Override
public boolean visit(SQLVariantRefExpr x) {
variantIndex.incrementAndGet();
return true;
}
public int getVarIndex() {
return variantIndex.get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy