javax.sql.rowset.FilteredRowSet Java Examples

The following examples show how to use javax.sql.rowset.FilteredRowSet. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JdbcRowSetLiveTest.java    From tutorials with MIT License 6 votes vote down vote up
@Test
public void createFilteredRowSet_filterByRegexExpression_thenCorrect() throws Exception {
    RowSetFactory rsf = RowSetProvider.newFactory();
    FilteredRowSet frs = rsf.createFilteredRowSet();
    frs.setCommand("select * from customers");
    Connection conn = DatabaseConfiguration.geth2Connection();
    frs.execute(conn);
    frs.setFilter(new FilterExample("^[A-C].*"));

    ResultSetMetaData rsmd = frs.getMetaData();
    int columncount = rsmd.getColumnCount();
    while (frs.next()) {
        for (int i = 1; i <= columncount; i++) {
            System.out.println(rsmd.getColumnLabel(i) + " = " + frs.getObject(i) + " ");
        }
    }
}
 
Example #2
Source File: StubRowSetFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #3
Source File: RowSetFactoryImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #4
Source File: RowSetFactoryImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #5
Source File: FilteredRowSetTests.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #6
Source File: StubRowSetFactory.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #7
Source File: RowSetFactoryImpl.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #8
Source File: RowSetFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #9
Source File: RowSetFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #10
Source File: FilteredRowSetTests.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #11
Source File: StubRowSetFactory.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #12
Source File: RowSetFactoryImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #13
Source File: FilteredRowSetTests.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #14
Source File: StubRowSetFactory.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #15
Source File: RowSetFactoryImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #16
Source File: FilteredRowSetTests.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #17
Source File: RowSetFactoryImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #18
Source File: RowSetFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #19
Source File: FilteredRowSetTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #20
Source File: StubRowSetFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #21
Source File: RowSetFactoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #22
Source File: FilteredRowSetTests.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #23
Source File: StubRowSetFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #24
Source File: RowSetFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #25
Source File: FilteredRowSetTests.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #26
Source File: StubRowSetFactory.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #27
Source File: RowSetFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example #28
Source File: FilteredRowSetTests.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #29
Source File: StubRowSetFactory.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #30
Source File: RowSetFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}