@Test public void testIsUserDefined() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isUserDefined()) { cats.add(c); } } check(cats, USER_DEFINED_FUNCTION, USER_DEFINED_PROCEDURE, USER_DEFINED_CONSTRUCTOR, USER_DEFINED_SPECIFIC_FUNCTION, USER_DEFINED_TABLE_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION); }
SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION, SqlSyntax.FUNCTION, operatorList); checkFunctionType(2, funcName, operatorList); SqlFunctionCategory.USER_DEFINED_FUNCTION, SqlSyntax.FUNCTION, operatorList); checkFunctionType(0, null, operatorList); SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION, SqlSyntax.FUNCTION, operatorList); checkFunctionType(1, anotherName, operatorList);
SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION, SqlSyntax.FUNCTION, operatorList); checkFunctionType(2, funcName, operatorList); SqlFunctionCategory.USER_DEFINED_FUNCTION, SqlSyntax.FUNCTION, operatorList); checkFunctionType(0, null, operatorList); SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION, SqlSyntax.FUNCTION, operatorList); checkFunctionType(1, anotherName, operatorList);
@Test public void testIsTableFunction() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isTableFunction()) { cats.add(c); } } check(cats, USER_DEFINED_TABLE_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION, MATCH_RECOGNIZE); }
@Test public void testIsTableFunction() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isTableFunction()) { cats.add(c); } } check(cats, USER_DEFINED_TABLE_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION, MATCH_RECOGNIZE); }
@Test public void testIsUserDefined() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isUserDefined()) { cats.add(c); } } check(cats, USER_DEFINED_FUNCTION, USER_DEFINED_PROCEDURE, USER_DEFINED_CONSTRUCTOR, USER_DEFINED_SPECIFIC_FUNCTION, USER_DEFINED_TABLE_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION); }
@Test public void testIsSpecific() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isSpecific()) { cats.add(c); } } check(cats, USER_DEFINED_SPECIFIC_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION); }
@Test public void testIsUserDefinedNotSpecificFunction() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory sqlFunctionCategory : SqlFunctionCategory.values()) { if (sqlFunctionCategory.isUserDefinedNotSpecificFunction()) { cats.add(sqlFunctionCategory); } } check(cats, USER_DEFINED_FUNCTION, USER_DEFINED_TABLE_FUNCTION); }
@Test public void testIsSpecific() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isSpecific()) { cats.add(c); } } check(cats, USER_DEFINED_SPECIFIC_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION); }
@Test public void testIsUserDefinedNotSpecificFunction() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory sqlFunctionCategory : SqlFunctionCategory.values()) { if (sqlFunctionCategory.isUserDefinedNotSpecificFunction()) { cats.add(sqlFunctionCategory); } } check(cats, USER_DEFINED_FUNCTION, USER_DEFINED_TABLE_FUNCTION); }