Package org.sqlproc.engine.impl
Class SqlUtils
java.lang.Object
org.sqlproc.engine.impl.SqlUtils
SQL Processor utilities.
- Author:
- Vladimir Hudec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
asList
(int[] array) static String
beforeChar
(String s, char c) static Object
convertBigDecimal
(Class<?> attributeType, Object resultValue) static Object
convertBigInteger
(Class<?> attributeType, Object resultValue) static String
static Class<?>[]
getAllAttributeTypes
(Class<?> attributeType, Class<?>[] attributeParameterizedTypes, Class<?> attributeParameterizedType) static Date
getDate
(int year, int month, int day) static Date
getDateTime
(int year, int month, int day, int hour, int minute, int second) static String
static String
static Object[]
getResultValues
(Map<String, Object> resultRow) static Class
<?> getStandardModeResultClass
(String typeName) A temporary gtype to class name conversion.static Time
getTime
(int hour, int minute, int second) static String
handleInsertSql
(Map<String, SqlInputValue> identities, String sql) static boolean
isCollection
(Class<?> clazz) Returns the indicator the investigated class is in fact a container.static boolean
isEmpty
(StringBuilder sb) static boolean
isPrimitiveWrapper
(Class clazz) static void
oppositeFeatures
(String featureName) static Byte[]
toBytes
(byte[] barr) static byte[]
-
Field Details
-
SQL
- See Also:
-
patternInsert
-
-
Constructor Details
-
SqlUtils
public SqlUtils()
-
-
Method Details
-
convertBigDecimal
-
convertBigInteger
-
toBytes
-
toBytes
-
isEmpty
-
beforeChar
-
afterChar
-
getDate
-
getTime
-
getDateTime
-
getIdsKey
-
getIdsKey
-
main
-
handleInsertSql
-
asList
-
firstLowerCase
-
oppositeFeatures
-
isPrimitiveWrapper
-
isCollection
Returns the indicator the investigated class is in fact a container.- Parameters:
clazz
- the investigated class- Returns:
- the indicator the investigated class is in fact a container
-
getAllAttributeTypes
-
getStandardModeResultClass
A temporary gtype to class name conversion.- Parameters:
typeName
- it's a gtype- Returns:
- a related class name
-
getResultValues
-