Prior to this commit, the JDBC KeyHolder API only supported keys of type Number. However, a generated key can be a UUID or something else, and developers shouldn't have to go manually through complex collections to access it. This commit adds a new getKeyAs(Class<T> keyType) method to the KeyHolder API that allows the user to specify the key type. Closes gh-24655