throws DataSetException
{
logger.debug("hasIdentityColumn(metaData={}, connection={}) - start", metaData, connection);
DatabaseConfig config = connection.getConfig();
IColumnFilter identityFilter = (IColumnFilter)config.getProperty(
PROPERTY_IDENTITY_COLUMN_FILTER);
if (identityFilter == null)
{
identityFilter = DEFAULT_IDENTITY_FILTER;
}
// Verify if there is at least one identity column
Column[] columns = metaData.getColumns();
for (int i = 0; i < columns.length; i++)
{
if (identityFilter.accept(metaData.getTableName(), columns[i]))
{
return true;
}
}