/** * Renders SQL statement(s) to drop the function which corresponds to the * specified field, if applicable, or <code>null</code> otherwise. * * @param nameConverters * @param table The table containing the field for which a function * may need to be rendered. * @param field The field for which the function should be rendered, * if any. * @return A database-specific DDL statement to drop a function for * the field in question, or <code>null</code>. */ protected SQLAction _renderDropFunctionForField(NameConverters nameConverters, DDLTable table, DDLField field) { final String functionName = _getFunctionNameForField(nameConverters.getTriggerNameConverter(), table, field); if (functionName != null) { return SQLAction.of("DROP FUNCTION " + processID(functionName)); } return null; }
/** * Renders SQL statement(s) to drop the function which corresponds to the * specified field, if applicable, or <code>null</code> otherwise. * * @param nameConverters * @param table The table containing the field for which a function * may need to be rendered. * @param field The field for which the function should be rendered, * if any. * @return A database-specific DDL statement to drop a function for * the field in question, or <code>null</code>. */ protected SQLAction _renderDropFunctionForField(NameConverters nameConverters, DDLTable table, DDLField field) { final String functionName = _getFunctionNameForField(nameConverters.getTriggerNameConverter(), table, field); if (functionName != null) { return SQLAction.of("DROP FUNCTION " + processID(functionName)); } return null; }