Exemple #1
0
  /**
   * @param e condition
   * @param index Index object
   * @param isJoin whether a join or not
   */
  void addIndexCondition(Expression e, Index index, boolean isJoin) {

    rangeIndex = index;
    isJoinIndex = isJoin;

    switch (e.getType()) {
      case OpTypes.NOT:
        indexCondition = e;
        break;

      case OpTypes.IS_NULL:
        indexEndCondition = e;
        break;

      case OpTypes.EQUAL:
        indexCondition = e;
        indexEndCondition = indexCondition;
        break;

      case OpTypes.GREATER:
      case OpTypes.GREATER_EQUAL:
        indexCondition = e;
        break;

      case OpTypes.SMALLER:
      case OpTypes.SMALLER_EQUAL:
        indexEndCondition = e;
        break;

      default:
        Error.runtimeError(ErrorCode.U_S0500, "Expression");
    }
  }
  @Override
  public ResultMetaData getResultMetaData() {

    switch (type) {
      case StatementTypes.SELECT_CURSOR:
        return queryExpression.getMetaData();

      case StatementTypes.SELECT_SINGLE:
        return queryExpression.getMetaData();

      default:
        throw Error.runtimeError(ErrorCode.U_S0500, "CompiledStatement.getResultMetaData()");
    }
  }
Exemple #3
0
 public void setWriteable(boolean value) {
   throw Error.runtimeError(ErrorCode.U_S0500, "");
 }