当前位置: 首页>>代码示例>>Java>>正文


Java NotEqualsTo类代码示例

本文整理汇总了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());
}
 
开发者ID:obidea,项目名称:semantika,代码行数:29,代码来源:SelectStatementHandler.java

示例2: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo expr)
{
	invalid = true;
	super.visit(expr);
}
 
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:7,代码来源:DMLWhereClauseVisitorAdapter.java

示例3: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo expr) {
    visitBinaryExpression(expr);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:ExpressionVisitorAdapter.java

示例4: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo) {
    visitOldOracleJoinBinaryExpression(notEqualsTo, " " + notEqualsTo.getStringExpression() + " ");

}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:6,代码来源:ExpressionDeParser.java

示例5: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo) {
    visitBinaryExpression(notEqualsTo);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:TablesNamesFinder.java

示例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;
}
 
开发者ID:diennea,项目名称:herddb,代码行数:45,代码来源:SQLExpressionCompiler.java

示例7: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo net) {
    acceptBinaryExpression(net);
}
 
开发者ID:diennea,项目名称:herddb,代码行数:5,代码来源:ColumnReferencesDiscovery.java

示例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();
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:6,代码来源:SqlExpressionParser.java

示例9: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
public void visit(NotEqualsTo notEqualsTo) {
	visitBinaryExpression(notEqualsTo);
}
 
开发者ID:UBOdin,项目名称:jsqlparser,代码行数:4,代码来源:TablesNamesFinder.java

示例10: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo arg0) {
	isSimple = false;
}
 
开发者ID:coastland,项目名称:gsp-dba-maven-plugin,代码行数:5,代码来源:ViewAnalyzer.java

示例11: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
public void visit(NotEqualsTo notEqualsTo) {
    visitBinaryExpression(notEqualsTo);
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:TablesNamesFinder.java

示例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$
}
 
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:SelectItemHandler.java

示例13: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo notEqualsTo)
{
   mFilterExpressions.push(visitBinaryExpression(notEqualsTo));
}
 
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:SelectStatementHandler.java

示例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$
}
 
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:JoinConditionHandler.java

示例15: visit

import net.sf.jsqlparser.expression.operators.relational.NotEqualsTo; //导入依赖的package包/类
@Override
public void visit(NotEqualsTo net) {
    visitBinaryExpression(net);
}
 
开发者ID:valdasraps,项目名称:resthub,代码行数:5,代码来源:AbstractAllParser.java


注:本文中的net.sf.jsqlparser.expression.operators.relational.NotEqualsTo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。