Java Code Examples for javax.sql.rowset.FilteredRowSet

The following examples show how to use javax.sql.rowset.FilteredRowSet. These examples are extracted from open source projects. 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 Project: tutorials   Source File: JdbcRowSetLiveTest.java    License: 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
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example 3
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 4
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 5
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example 6
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 7
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 8
Source Project: jdk8u60   Source File: RowSetFactoryImpl.java    License: 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 Project: jdk8u60   Source File: StubRowSetFactory.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 10
Source Project: jdk8u60   Source File: FilteredRowSetTests.java    License: GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 11
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example 12
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 13
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 14
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example 15
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 16
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 17
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example 18
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 19
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 20
Source Project: jdk8u-jdk   Source File: RowSetFactoryImpl.java    License: 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 Project: jdk8u-jdk   Source File: StubRowSetFactory.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 22
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 23
Source Project: hottub   Source File: RowSetFactoryImpl.java    License: 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 Project: hottub   Source File: StubRowSetFactory.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 25
Source Project: hottub   Source File: FilteredRowSetTests.java    License: GNU General Public License v2.0 4 votes vote down vote up
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}
 
Example 26
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new com.sun.rowset.FilteredRowSetImpl();
}
 
Example 27
Source Project: openjdk-8   Source File: RowSetFactoryImpl.java    License: 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 Project: jdk8u_jdk   Source File: RowSetFactoryImpl.java    License: 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 Project: jdk8u_jdk   Source File: StubRowSetFactory.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public FilteredRowSet createFilteredRowSet() throws SQLException {
    return new StubFilteredRowSetImpl();
}
 
Example 30
protected FilteredRowSet newInstance() throws SQLException {
    return rsf.createFilteredRowSet();
}