webRs.setSyncProvider(currentValue);
}
}
private void readMetadata() throws SQLException {
RowSetMetaData md = (RowSetMetaData) webRs.getMetaData();
if (md == null) {
md = new RowSetMetaDataImpl();
webRs.setMetaData(md);
}
if (currentTagName.equals("column-count")) { //$NON-NLS-1$
columnCount = parseInt(currentValue);
md.setColumnCount(columnCount);
} else if (currentTagName.equals("column-index")) { //$NON-NLS-1$
colIndex = parseInt(currentValue);
} else if (currentTagName.equals("auto-increment")) { //$NON-NLS-1$
md.setAutoIncrement(colIndex, parseBoolean(currentValue));
} else if (currentTagName.equals("case-sensitive")) { //$NON-NLS-1$
md.setCaseSensitive(colIndex, parseBoolean(currentValue));
} else if (currentTagName.equals("currency")) { //$NON-NLS-1$
md.setCurrency(colIndex, parseBoolean(currentValue));
} else if (currentTagName.equals("nullable")) { //$NON-NLS-1$
md.setNullable(colIndex, parseInt(currentValue));
} else if (currentTagName.equals("signed")) { //$NON-NLS-1$
md.setSigned(colIndex, parseBoolean(currentValue));
} else if (currentTagName.equals("searchable")) { //$NON-NLS-1$
md.setSearchable(colIndex, parseBoolean(currentValue));
} else if (currentTagName.equals("column-display-size")) { //$NON-NLS-1$
md.setColumnDisplaySize(colIndex, parseInt(currentValue));
} else if (currentTagName.equals("column-label")) { //$NON-NLS-1$
md.setColumnLabel(colIndex, currentValue);
} else if (currentTagName.equals("column-name")) { //$NON-NLS-1$
md.setColumnName(colIndex, currentValue);
} else if (currentTagName.equals("schema-name")) { //$NON-NLS-1$
md.setSchemaName(colIndex, currentValue);
} else if (currentTagName.equals("column-precision")) { //$NON-NLS-1$
md.setPrecision(colIndex, parseInt(currentValue));
} else if (currentTagName.equals("column-scale")) { //$NON-NLS-1$
md.setScale(colIndex, parseInt(currentValue));
} else if (currentTagName.equals("table-name")) { //$NON-NLS-1$
md.setTableName(colIndex, currentValue);
} else if (currentTagName.equals("catalog-name")) { //$NON-NLS-1$
md.setCatalogName(colIndex, currentValue);
} else if (currentTagName.equals("column-type")) { //$NON-NLS-1$
md.setColumnType(colIndex, parseInt(currentValue));
} else if (currentTagName.equals("column-type-name")) { //$NON-NLS-1$
md.setColumnTypeName(colIndex, currentValue);
}
}