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: 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 #3
Source File: StubRowSetFactory.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example #4
Source File: FilteredRowSetTests.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example #5
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();
}
 
Example #6
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 #7
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 #8
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 #9
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 #10
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 #11
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 #12
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 #13
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 #14
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 #15
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 #16
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 #17
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 #18
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 #19
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 #20
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 #21
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 #22
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 #23
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 #24
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 #25
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 #26
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 #27
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 #28
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 #29
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 #30
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();
}