public class CustomSQLUtil
extends Object
com.liferay.portal.dao.orm.custom.sql.CustomSQLUtil
Modifier and Type | Method and Description |
---|---|
static String |
appendCriteria(String sql,
String criteria) |
static String |
get(String id) |
static String |
get(String id,
com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) |
static String |
get(String id,
com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition,
String tableName) |
static boolean |
isVendorDB2() |
static boolean |
isVendorHSQL() |
static boolean |
isVendorInformix() |
static boolean |
isVendorMySQL() |
static boolean |
isVendorOracle() |
static boolean |
isVendorSybase() |
static String[] |
keywords(String keywords) |
static String[] |
keywords(String[] keywordsArray) |
static String[] |
keywords(String[] keywordsArray,
boolean lowerCase) |
static String[] |
keywords(String keywords,
boolean lowerCase) |
static String[] |
keywords(String keywords,
boolean lowerCase,
com.liferay.portal.kernel.dao.orm.WildcardMode wildcardMode) |
static String[] |
keywords(String keywords,
com.liferay.portal.kernel.dao.orm.WildcardMode wildcardMode) |
static void |
reloadCustomSQL() |
static String |
removeGroupBy(String sql) |
static String |
removeOrderBy(String sql) |
static String |
replaceAndOperator(String sql,
boolean andOperator) |
static String |
replaceGroupBy(String sql,
String groupBy) |
static String |
replaceIsNull(String sql) |
static String |
replaceKeywords(String sql,
String field,
boolean last,
int[] values) |
static String |
replaceKeywords(String sql,
String field,
boolean last,
long[] values) |
static String |
replaceKeywords(String sql,
String field,
String operator,
boolean last,
String[] values) |
static String |
replaceOrderBy(String sql,
com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) |
public static String appendCriteria(String sql, String criteria)
public static String get(String id)
public static String get(String id, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
public static String get(String id, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition, String tableName)
public static boolean isVendorDB2()
public static boolean isVendorHSQL()
public static boolean isVendorInformix()
public static boolean isVendorMySQL()
public static boolean isVendorOracle()
public static boolean isVendorSybase()
public static String[] keywords(String keywords)
public static String[] keywords(String keywords, boolean lowerCase)
public static String[] keywords(String keywords, boolean lowerCase, com.liferay.portal.kernel.dao.orm.WildcardMode wildcardMode)
public static String[] keywords(String keywords, com.liferay.portal.kernel.dao.orm.WildcardMode wildcardMode)
public static String[] keywords(String[] keywordsArray)
public static String[] keywords(String[] keywordsArray, boolean lowerCase)
public static void reloadCustomSQL() throws SQLException
SQLException
public static String removeGroupBy(String sql)
public static String removeOrderBy(String sql)
public static String replaceAndOperator(String sql, boolean andOperator)
public static String replaceGroupBy(String sql, String groupBy)
public static String replaceIsNull(String sql)
public static String replaceKeywords(String sql, String field, boolean last, int[] values)
public static String replaceKeywords(String sql, String field, boolean last, long[] values)
public static String replaceKeywords(String sql, String field, String operator, boolean last, String[] values)
public static String replaceOrderBy(String sql, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)