Examples of populate()


Examples of javax.sql.rowset.CachedRowSet.populate()

        CachedRowSet base = newNoInitialInstance();
        rs = st.executeQuery("select * from USER_INFO");
        rs.next();
        rs.next();
        rs.next();
        base.populate(rs);

        CachedRowSet join = newNoInitialInstance();
        rs = st.executeQuery("select * from USER_INFO");
        rs.next();
        rs.next();
View Full Code Here

Examples of javax.sql.rowset.FilteredRowSet.populate()

    }

    public void testFilter_Update() throws Exception {
        FilteredRowSet filteredRowSet = newFilterRowSet();
        rs = st.executeQuery("SELECT * FROM USER_INFO");
        filteredRowSet.populate(rs);

        Predicate range = new RangeOne();
        filteredRowSet.setFilter(range);

        /*
 
View Full Code Here

Examples of javax.sql.rowset.FilteredRowSet.populate()

    }

    public void testFilter_Delete() throws Exception {
        FilteredRowSet filteredRowSet = newFilterRowSet();
        rs = st.executeQuery("SELECT * FROM USER_INFO");
        filteredRowSet.populate(rs);

        /*
         * Mark the first row as delete.
         */
        assertTrue(filteredRowSet.first());
View Full Code Here

Examples of javax.sql.rowset.FilteredRowSet.populate()

        // the max rows load into memory
        filteredRowSet.setMaxRows(5);
        filteredRowSet.setPageSize(3);

        filteredRowSet.populate(rs, 1);

        OddRowFilter filter = new OddRowFilter();
        filteredRowSet.setFilter(filter);

        if (!"true".equals(System.getProperty("Testing Harmony"))) {
View Full Code Here

Examples of javax.sql.rowset.FilteredRowSet.populate()

        filteredRowSet = newFilterRowSet();
        filteredRowSet.setFilter(filter);
        filteredRowSet.setPageSize(3);

        filteredRowSet.populate(rs, 1);

        if (!"true".equals(System.getProperty("Testing Harmony"))) {
            // RI need nextPage one more time
            assertTrue(filteredRowSet.nextPage());
        }
View Full Code Here

Examples of javax.sql.rowset.WebRowSet.populate()

            if (limit > -1) {
                result.setPageSize(limit);
                result.setMaxRows(limit);
            }

            result.populate(resultSet, start < 0 ? 1 : start + 1);
        }

        return result;
    }
View Full Code Here

Examples of net.infopeers.restrant.commons.populate.Populator.populate()

    TestClass2 test2 = new TestClass2();

    Populator populator = createPopulator();

    populator.populate(test1, test2);

    assertEquals(111, test2.getIntValue());
  }

  public void testPopulateBeanHaveBeanArray() throws Exception {
View Full Code Here

Examples of net.sf.beanlib.provider.BeanPopulator.populate()

  //  Store root pojo on bean stack
  //
    BeanlibThreadLocal.getBeanStack().clear();
    BeanlibThreadLocal.getBeanStack().push(clonePojo);
   
    replicator.populate();
  }
}
View Full Code Here

Examples of oracle.jdbc.rowset.OracleCachedRowSet.populate()

      ResultSet rs = null;
      try {
        if (o instanceof ResultSet) {
          rs = (ResultSet) o;
          OracleCachedRowSet ocrs = new OracleCachedRowSet();
          ocrs.populate(rs);
          return ocrs;
        } else {
          String err = "OracleRefNormaliser cannot work on " + o.getClass();
          throw new UnsupportedOperationException(err);
        }
View Full Code Here

Examples of org.apache.aries.blueprint.container.Parser.populate()

    protected ComponentDefinitionRegistryImpl parse(String name, NamespaceHandlerRegistry.NamespaceHandlerSet handlers) throws Exception {
        ComponentDefinitionRegistryImpl registry = new ComponentDefinitionRegistryImpl();
        Parser parser = new Parser();
        parser.parse(Collections.singletonList(getClass().getResource(name)));
        parser.populate(handlers, registry);
        return registry;
    }

}
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.