load(props);
}
public Object getValueAt(int row, int col)
{
final SQLDriverProperty sdp = _props.getDriverProperty(row);
switch (col)
{
case IColumnIndexes.IDX_NAME:
return sdp.getName();
case IColumnIndexes.IDX_SPECIFY:
return Boolean.valueOf(sdp.isSpecified());
case IColumnIndexes.IDX_VALUE:
return sdp.getValue();
case IColumnIndexes.IDX_REQUIRED:
{
// Use valueof when min supported JDK is 1.4
//return Boolean.valueOf(_props[row].required);
DriverPropertyInfo dpi = sdp.getDriverPropertyInfo();
if (dpi != null)
{
return Boolean.valueOf(dpi.required);
}
return Boolean.FALSE;
}
case IColumnIndexes.IDX_DESCRIPTION:
{
DriverPropertyInfo dpi = sdp.getDriverPropertyInfo();
if (dpi != null)
{
return dpi.description;
}
return s_stringMgr.getString("DriverPropertiesTableModel.unknown");