final XColumnsSupplier columnsSup = (XColumnsSupplier) UnoRuntime.queryInterface(XColumnsSupplier.class, rowSet);
final XNameAccess columns = columnsSup.getColumns();
final String[] columnNamesList = columns.getElementNames();
final XResultSetMetaDataSupplier sup = (XResultSetMetaDataSupplier) UnoRuntime.queryInterface(XResultSetMetaDataSupplier.class, rowSet);
final XResultSetMetaData resultSetMetaData = sup.getMetaData();
columnCount = resultSetMetaData.getColumnCount();
firstParameterIndex = columnCount + 1;
if (parameters != null)
{
columnCount += parameters.getCount();
}
columnTypes = new int[columnCount];
columnNames = new String[columnCount];
for (int i = 1; i <= columnCount; ++i)
{
if (i < firstParameterIndex)
{
columnNames[i - 1] = columnNamesList[i - 1];// resultSetMetaData.getColumnName(i);
columnTypes[i - 1] = resultSetMetaData.getColumnType(i);
}
else
{
try
{