本文整理汇总了Java中net.sf.jsqlparser.expression.operators.relational.NotEqualsTo类的典型用法代码示例。如果您正苦于以下问题:Java NotEqualsTo类的具体用法?Java NotEqualsTo怎么用?Java NotEqualsTo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NotEqualsTo类属于net.sf.jsqlparser.expression.operators.relational包,在下文中一共展示了NotEqualsTo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitBinaryExpression
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
protected ISqlExpression visitBinaryExpression(BinaryExpression binaryExpression)
{
binaryExpression.getLeftExpression().accept(this);
ISqlExpression leftParameter = getExpression();
binaryExpression.getRightExpression().accept(this);
ISqlExpression rightParameter = getExpression();
if (binaryExpression instanceof EqualsTo) {
return sSqlFactory.createEqualsToExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof NotEqualsTo) {
return sSqlFactory.createNotEqualsToExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof GreaterThan) {
return sSqlFactory.createGreaterThanExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof GreaterThanEquals) {
return sSqlFactory.createGreaterThanEqualsExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof MinorThan) {
return sSqlFactory.createLessThanExpression(leftParameter, rightParameter);
}
else if (binaryExpression instanceof MinorThanEquals) {
return sSqlFactory.createLessThanEqualsExpression(leftParameter, rightParameter);
}
throw new UnsupportedSqlExpressionException(binaryExpression.toString());
}
示例2: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo expr)
{
invalid = true;
super.visit(expr);
}
示例3: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo expr) {
visitBinaryExpression(expr);
}
示例4: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo) {
visitOldOracleJoinBinaryExpression(notEqualsTo, " " + notEqualsTo.getStringExpression() + " ");
}
示例5: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo) {
visitBinaryExpression(notEqualsTo);
}
示例6: compileSpecialBinaryExpression
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
private static CompiledSQLExpression compileSpecialBinaryExpression(String validatedTableAlias, Expression exp) {
BinaryExpression be = (BinaryExpression) exp;
// MOST frequent expressions "TABLE.COLUMNNAME OPERATOR ?", we can hardcode the access to the column and to the JDBC parameter
if (be.getLeftExpression() instanceof net.sf.jsqlparser.schema.Column) {
net.sf.jsqlparser.schema.Column c = (net.sf.jsqlparser.schema.Column) be.getLeftExpression();
if (validatedTableAlias != null) {
if (c.getTable() != null && c.getTable().getName() != null
&& !c.getTable().getName().equals(validatedTableAlias)) {
return null;
}
}
String columnName = c.getColumnName();
switch (columnName) {
case BuiltinFunctions.BOOLEAN_TRUE:
return null;
case BuiltinFunctions.BOOLEAN_FALSE:
return null;
default:
// OK !
break;
}
if (be.getRightExpression() instanceof JdbcParameter) {
JdbcParameter jdbcParam = (JdbcParameter) be.getRightExpression();
int jdbcIndex = jdbcParam.getIndex() - 1;
if (be instanceof EqualsTo) {
return new ColumnEqualsJdbcParameter(be.isNot(), columnName, jdbcIndex);
} else if (be instanceof NotEqualsTo) {
return new ColumnNotEqualsJdbcParameter(be.isNot(), columnName, jdbcIndex);
} else if (be instanceof GreaterThanEquals) {
return new ColumnGreaterThanEqualsJdbcParameter(be.isNot(), columnName, jdbcIndex);
} else if (be instanceof GreaterThan) {
return new ColumnGreaterThanJdbcParameter(be.isNot(), columnName, jdbcIndex);
} else if (be instanceof MinorThan) {
return new ColumnMinorThanJdbcParameter(be.isNot(), columnName, jdbcIndex);
} else if (be instanceof MinorThanEquals) {
return new ColumnMinorThanEqualsJdbcParameter(be.isNot(), columnName, jdbcIndex);
}
} // TODO handle "TABLE.COLUMNNAME OPERATOR CONSTANT"
}
return null;
}
示例7: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo net) {
acceptBinaryExpression(net);
}
示例8: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo arg0) {
log.debug("sql expression = " + arg0.toString());
value = arg0.getStringExpression();
}
示例9: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
public void visit(NotEqualsTo notEqualsTo) {
visitBinaryExpression(notEqualsTo);
}
示例10: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo arg0) {
isSimple = false;
}
示例11: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
public void visit(NotEqualsTo notEqualsTo) {
visitBinaryExpression(notEqualsTo);
}
示例12: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo)
{
throw new UnsupportedSqlExpressionException("NOT EQUALS"); //$NON-NLS-1$
}
示例13: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo)
{
mFilterExpressions.push(visitBinaryExpression(notEqualsTo));
}
示例14: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo)
{
throw new IllegalOperationException("Illegal SQL ON expression: " + notEqualsTo); //$NON-NLS-1$
}
示例15: visit
import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo net) {
visitBinaryExpression(net);
}