class PostgreSQLArrayColumnType {

    public static int getTypeOidByColumnTypeName(final String columnTypeName) throws IllegalArgumentException {
        if (COLUMN_TYPE_NAME_OID_MAP.containsKey(columnTypeName)) {
            return COLUMN_TYPE_NAME_OID_MAP.get(columnTypeName);
        }
        throw new IllegalArgumentException(String.format("Cannot find PostgreSQL type oid for columnTypeName '%s'", columnTypeName));
    }

}