Package com.majorana.maj_orm.Utils
Class SQLHelper
java.lang.Object
com.majorana.maj_orm.Utils.SQLHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDelimitedCodesSafeString
(Set<String> codes) static <T> String
getTokensForCollection
(Collection<T> items) Returns a CSV string of parameter tokens for each value in itemsstatic String
-
Field Details
-
BLANK_TIMESTAMP
-
-
Constructor Details
-
SQLHelper
public SQLHelper()
-
-
Method Details
-
safeSQL
-
getDelimitedCodesSafeString
-
getTokensForCollection
Returns a CSV string of parameter tokens for each value in items- Type Parameters:
T
- - type of the collection- Parameters:
items
- - the items to generate tokens for- Returns:
- - string of ? tokens separated by commas. If items is null, a blank string is returned e.g. list [1,2,3] will return the string "?,?,?"
-