Interface SqlRow
- All Superinterfaces:
Map<String,Object>, Serializable
Used to return raw SQL query results.
Refer to SqlQuery for examples.
There are convenience methods such as getInteger(), getBigDecimal() etc. The reason for these methods is that the values put into this map often come straight from the JDBC resultSet. Depending on the JDBC driver it may put a different type into a given property. For example an Integer, BigDecimal, Double could all be put into a property depending on the JDBC driver used. These convenience methods automatically convert the value as required returning the type you expect.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the map.booleancontainsKey(Object key) Returns true if the map contains the property.booleancontainsValue(Object value) Returns true if the map contains the value.entrySet()Returns the entrySet of the map.Return a property value by its name.getBigDecimal(String name) Return a property value as a BigDecimal.getBoolean(String name) Return a property as a Boolean.Return the property as a sql date.Return the property value as a Double.Return the property value as a Float.getInteger(String name) Return a property as an Integer.Return a property value as a Long.Return a property as a String.getTimestamp(String name) Return the property as a sql timestamp.getUtilDate(String name) Return the property as a java.util.Date.Return a property as a UUID.booleanisEmpty()Returns true if the map is empty.keys()Return the property names (String).keySet()Returns the key set of the map.Set a value to a property.voidPut all the values from t into this map.Remove a property from the map.Exactly the same as the put method.intsize()Return the size of the map.toString()String description of the underlying map.values()Return the values from this map.Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
keys
-
remove
-
get
-
put
-
set
-
getBoolean
-
getUUID
-
getInteger
-
getBigDecimal
Return a property value as a BigDecimal. -
getLong
-
getDouble
-
getFloat
-
getString
-
getUtilDate
-
getDate
-
getTimestamp
-
toString
-
clear
-
containsKey
Returns true if the map contains the property.- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
Returns true if the map contains the value.- Specified by:
containsValuein interfaceMap<String,Object>
-
entrySet
-
isEmpty
-
keySet
-
putAll
-
size
-
values
-