Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.RepositoryException


  @Override
  public boolean next() throws RepositoryException {
    try {
      return resultSet.next();
    } catch (SQLException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here


  @Override
  public String getString(String colName) throws RepositoryException {
    try {
      return resultSet.getString(colName);
    } catch (SQLException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

        resultSet.close();
      } finally {
        statement.close();
      }
    } catch (SQLException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  @Override
  public boolean hasNext() throws RepositoryException {
    try {
      return !(resultSet.isLast() || resultSet.isAfterLast());
    } catch (SQLException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  public ITime getTime(String colName) throws RepositoryException {
    Date val;
    try {
      val = resultSet.getDate(colName);
    } catch (SQLException e) {
      throw new RepositoryException(e);
    }
    return new MockDmTime(val);
  }
View Full Code Here

        QueryResult qr = q.execute();
        MockDmCollection co = new MockDmCollection(qr);
        return co;
      } catch (javax.jcr.RepositoryException e) {
        throw new RepositoryException(e);
      }
    } else if (query.indexOf("return_top 1") != -1) { // WHERE clause test...
      return new MockBooleanCollection(query.indexOf(TRUE_WHERE_CLAUSE) != -1);
    } else if (query.indexOf("dm_group") != -1) {
      // The repeating attribute i_all_user_names is modeled with
View Full Code Here

      Statement stmt = jdbcConnection.createStatement();
      try {
        return new MockJdbcCollection(stmt, stmt.executeQuery(query));
      } catch (SQLException e) {
        stmt.close();
        throw new RepositoryException("Database error", e);
      }
    } catch (SQLException e) {
      throw new RepositoryException("Database error", e);
    }
  }
View Full Code Here

    try {
      dfValue = idfCollection.getValue(attrName);
      if (logger.isLoggable(Level.FINEST))
        logger.finest("getting the value of attribute " + attrName);
    } catch (DfException e) {
      RepositoryException re = new RepositoryException(e);
      throw re;
    }
    return new DmValue(dfValue);
  }
View Full Code Here

    boolean isNext;
    try {
      isNext = idfCollection.next();
    } catch (DfException e) {
      throw new RepositoryException(e);
    }
    if (isNext) {
      numberOfRows++;
      if (logger.isLoggable(Level.FINEST)) {
        logger.finest("Collection positioned on row " + numberOfRows);
View Full Code Here

          separator);
      if (logger.isLoggable(Level.FINEST))
        logger.finest("column values are " + colValues);
      return colValues;
    } catch (DfException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.RepositoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.