Package org.eclnt.ccee.db.util
Class QueryUtils
java.lang.Object
org.eclnt.ccee.db.util.QueryUtils
- All Implemented Interfaces:
ICCEEConstants
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.eclnt.ccee.ICCEEConstants
AND, ASC, AVG, BETWEEN, BRC, BRO, COUNT, DEFAULT_CONTEXT, DESC, FUNCTIONRESULT, GREATER, GREATEREQUAL, IN, IS, ISNOT, LIKE, LL_DBG, LL_ERR, LL_INF, LL_WAR, LOWER, LOWEREQUAL, MAX, MIN, NULL, OR, ORDERBY, QPFUNCTION_LOWER, QPFUNCTION_UPPER, SUM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
static String
static Class
parseExecQuerySQLColumnsIntoAliasAndSqlName
(String execQuerySQLColumns) static Object[]
transferQueryStringIntoQueryObjects
(String structureName, String[] query, QueryUtils.IValueClassProvider valueClassProvider) static Object[]
transferQueryStringIntoQueryObjects
(String structureName, String query, QueryUtils.IValueClassProvider valueClassProvider) static Object[]
transferSortStringIntoQueryObjects
(String orderBy) static Object[]
transferSortStringIntoQueryObjects
(String[] orderBy)
-
Constructor Details
-
QueryUtils
public QueryUtils()
-
-
Method Details
-
checkIfObjectIsQueryLogic
-
checkIfObjectIsOrderByInstrcution
-
checkIfObjectIsSQLComparator
-
transferSortStringIntoQueryObjects
-
transferSortStringIntoQueryObjects
-
transferQueryStringIntoQueryObjects
public static Object[] transferQueryStringIntoQueryObjects(String structureName, String[] query, QueryUtils.IValueClassProvider valueClassProvider) -
findPropertyClassFromQueryValueString
-
cutClassCastInfoFromValueString
-
transferQueryStringIntoQueryObjects
public static Object[] transferQueryStringIntoQueryObjects(String structureName, String query, QueryUtils.IValueClassProvider valueClassProvider) -
parseExecQuerySQLColumnsIntoAliasAndSqlName
public static Map<String,String> parseExecQuerySQLColumnsIntoAliasAndSqlName(String execQuerySQLColumns) - Parameters:
execQuerySQLColumns
- Example: "cceejob.id as jobid,cceejob.name as jobname"- Returns:
- Example: map with jobid -> cceejob.id and jobname -> cceejob.name; so the key of the map is the alias, the value is the full SQL name
-