Examples of RSIterator


Examples of com.hp.hpl.jena.rdf.model.RSIterator

    {
      holder.getBaseItem().removeAllReifications(s);
    }
    else
    {
      final RSIterator iter = holder.getBaseItem().listReifiedStatements(
          s);
      try
      {
        while (iter.hasNext())
        {
          final ReifiedStatement rs = iter.next();
          checkDelete(new Triple(rs.asNode(), RDF.subject.asNode(),
              wildCardNode(s.getSubject())));
          checkDelete(new Triple(rs.asNode(), RDF.predicate.asNode(),
              wildCardNode(s.getPredicate())));
          checkDelete(new Triple(rs.asNode(), RDF.object.asNode(),
              wildCardNode(s.getObject())));
        }
        holder.getBaseItem().removeAllReifications(s);
      }
      finally
      {
        iter.close();
      }

    }
  }
View Full Code Here

Examples of com.winvector.db.DBIterable.RSIterator

public class DBDump {
 
  public static long runQuery(final String query, final PrintStream p, final DBHandle handle) throws SQLException {
    final Statement stmt = handle.createReadStatement();
    final RSIterator source = new RSIterator(stmt.executeQuery(query));
    final String sep = "\t";
    boolean first = true;
    long rowNum = 0;
    while(source.hasNext()) {
      final BurstMap row = source.next();
      if(first) {
        boolean firstCol = true;
        for(final String ki: row.keySet()) {
          if(firstCol) {
            firstCol = false;
View Full Code Here

Examples of com.winvector.db.DBIterable.RSIterator

public class DBDump {
 
  public static long runQuery(final String query, final PrintStream p, final DBHandle handle) throws SQLException {
    final Statement stmt = handle.createReadStatement();
    final RSIterator source = new RSIterator(stmt.executeQuery(query));
    final String sep = "\t";
    boolean first = true;
    long rowNum = 0;
    while(source.hasNext()) {
      final BurstMap row = source.next();
      if(first) {
        boolean firstCol = true;
        for(final String ki: row.keySet()) {
          if(firstCol) {
            firstCol = false;
          } else {
            p.print(sep);
          }
          final TypeInfo columnInfo = source.getJavaClassName(ki);
          p.print(TrivialReader.safeStr(ki) + ":" + columnInfo.sqlColumnType);
        }
        p.println();
        first = false;
      }
View Full Code Here

Examples of org.apache.ojb.broker.accesslayer.RsIterator

  /**
   * @see org.apache.ojb.broker.core.RsIteratorFactory#createRsIterator(Query, ClassDescriptor, PersistenceBrokerImpl)
   */
  public RsIterator createRsIterator(Query query, ClassDescriptor cld, PersistenceBrokerImpl broker)
  {
    return new RsIterator(RsQueryObject.get(cld, query), broker);
  }
View Full Code Here

Examples of org.apache.ojb.broker.accesslayer.RsIterator

  /**
   * @see org.apache.ojb.broker.core.RsIteratorFactory#createRsIterator(Query, ClassDescriptor, PersistenceBrokerImpl)
   */
  public RsIterator createRsIterator(Query query, ClassDescriptor cld, PersistenceBrokerImpl broker)
  {
    return new RsIterator(RsQueryObject.get(cld, query), broker);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.