final Class<?> paramsClass = (Class<?>) p.getActualTypeArguments()[0];
innerTypeName = PgTypeHelper.getSQLNameForClass(paramsClass);
if (innerTypeName == null) {
final DatabaseType dbType = paramsClass.getAnnotation(DatabaseType.class);
if (dbType != null) {
innerTypeName = dbType.name();
}
if (innerTypeName == null || innerTypeName.isEmpty()) {
innerTypeName = NameUtils.camelCaseToUnderscore(paramsClass.getSimpleName());
}