Java 类javax.sql.rowset.Joinable 实例源码

项目:jdk8u-jdk    文件:StubJoinRowSetImpl.java   
@Override
public void addRowSet(Joinable rowset) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:openjdk-jdk10    文件:StubJoinRowSetImpl.java   
@Override
public void addRowSet(Joinable rowset) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:openjdk9    文件:StubJoinRowSetImpl.java   
@Override
public void addRowSet(Joinable rowset) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:jdk8u_jdk    文件:StubJoinRowSetImpl.java   
@Override
public void addRowSet(Joinable rowset) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:lookaside_java-1.8.0-openjdk    文件:StubJoinRowSetImpl.java   
@Override
public void addRowSet(Joinable rowset) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:cn1    文件:JoinRowSetImpl.java   
public void addRowSet(Joinable rowset) throws SQLException {
    if (rowset == null || !(rowset instanceof RowSet)) {
        // rowset.33=Not a rowset
        throw new SQLException(Messages.getString("rowset.33")); //$NON-NLS-1$
    }

    RowSet currentRs = (RowSet) rowset;
    if (currentRs.getMetaData() == null) {
        // rowset.32=The given rowset is empty
        throw new SQLException(Messages.getString("rowset.32")); //$NON-NLS-1$
    }

    int matchCol = -1;
    try {
        if (rowset.getMatchColumnIndexes() != null
                && rowset.getMatchColumnIndexes().length > 0) {
            matchCol = rowset.getMatchColumnIndexes()[0];
            if (matchCol <= 0
                    || matchCol > currentRs.getMetaData().getColumnCount()) {
                matchCol = -2;
            }
        }
    } catch (SQLException e) {
        try {
            if (rowset.getMatchColumnNames() != null
                    && rowset.getMatchColumnNames().length > 0) {
                try {
                    matchCol = currentRs.findColumn(rowset
                            .getMatchColumnNames()[0]);
                } catch (SQLException e1) {
                    matchCol = -3;
                }
            }
        } catch (SQLException e2) {
            // ignore
        }
    } finally {
        if (matchCol == -1) {
            // rowset.34=Not set a match column
            throw new SQLException(Messages.getString("rowset.34")); //$NON-NLS-1$
        } else if (matchCol == -2) {
            // rowset.35=Not a valid match olumn index
            throw new SQLException(Messages.getString("rowset.35")); //$NON-NLS-1$
        } else if (matchCol == -3) {
            // rowset.1=Not a valid column name
            throw new SQLException(Messages.getString("rowset.1")); //$NON-NLS-1$
        }
    }
    addRowSet(currentRs, matchCol);
}
项目:freeVM    文件:JoinRowSetImpl.java   
public void addRowSet(Joinable rowset) throws SQLException {
    if (rowset == null || !(rowset instanceof RowSet)) {
        // rowset.33=Not a rowset
        throw new SQLException(Messages.getString("rowset.33")); //$NON-NLS-1$
    }

    RowSet currentRs = (RowSet) rowset;
    if (currentRs.getMetaData() == null) {
        // rowset.32=The given rowset is empty
        throw new SQLException(Messages.getString("rowset.32")); //$NON-NLS-1$
    }

    int matchCol = -1;
    try {
        if (rowset.getMatchColumnIndexes() != null
                && rowset.getMatchColumnIndexes().length > 0) {
            matchCol = rowset.getMatchColumnIndexes()[0];
            if (matchCol <= 0
                    || matchCol > currentRs.getMetaData().getColumnCount()) {
                matchCol = -2;
            }
        }
    } catch (SQLException e) {
        try {
            if (rowset.getMatchColumnNames() != null
                    && rowset.getMatchColumnNames().length > 0) {
                try {
                    matchCol = currentRs.findColumn(rowset
                            .getMatchColumnNames()[0]);
                } catch (SQLException e1) {
                    matchCol = -3;
                }
            }
        } catch (SQLException e2) {
            // ignore
        }
    } finally {
        if (matchCol == -1) {
            // rowset.34=Not set a match column
            throw new SQLException(Messages.getString("rowset.34")); //$NON-NLS-1$
        } else if (matchCol == -2) {
            // rowset.35=Not a valid match olumn index
            throw new SQLException(Messages.getString("rowset.35")); //$NON-NLS-1$
        } else if (matchCol == -3) {
            // rowset.1=Not a valid column name
            throw new SQLException(Messages.getString("rowset.1")); //$NON-NLS-1$
        }
    }
    addRowSet(currentRs, matchCol);
}