public class DataResultSetRow extends Object implements DataObject
Constructor and Description |
---|
DataResultSetRow(DataResultSetImpl resultSet,
List<String> values) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,String>> |
entrySet() |
String |
get(Object key) |
boolean |
getBoolean(String name,
boolean defaultValue)
Retrieve the result as a boolean
|
Calendar |
getCalendar(String name)
Retrieve the date.
|
Date |
getDate(String name)
Retrieve the date.
|
int |
getInteger(String name)
Retrieve a value as an integer
|
boolean |
isEmpty() |
Set<String> |
keySet() |
String |
put(String key,
String value) |
void |
putAll(Map<? extends String,? extends String> t) |
String |
remove(Object key) |
void |
setBoolean(String name,
boolean value)
Set a value as a boolean
|
void |
setDate(String name,
Date date)
Set a date value.
|
int |
size() |
Collection<String> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public DataResultSetRow(DataResultSetImpl resultSet, List<String> values)
public boolean getBoolean(String name, boolean defaultValue)
getBoolean
in interface DataObject
name
- the property namedefaultValue
- the default value if not foundpublic void setBoolean(String name, boolean value)
setBoolean
in interface DataObject
name
- the property namevalue
- the property valuepublic void setDate(String name, Date date)
setDate
in interface DataObject
name
- the property namedate
- the date in GMT timepublic Date getDate(String name)
getDate
in interface DataObject
name
- the property namepublic Calendar getCalendar(String name)
DataObject
getCalendar
in interface DataObject
name
- the property namepublic int getInteger(String name)
getInteger
in interface DataObject
name
- the property namepublic int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map<String,String>
key
- key whose presence in this map is to be tested.ClassCastException
- if the key is of an inappropriate type for
this map (optional).NullPointerException
- if the key is null and this map
does not permit null keys (optional).public boolean containsValue(Object value)
containsValue
in interface Map<String,String>
value
- value whose presence in this map is to be tested.ClassCastException
- if the value is of an inappropriate type for
this map (optional).NullPointerException
- if the value is null and this map
does not permit null values (optional).public String get(Object key)
get
in interface Map<String,String>
key
- key whose associated value is to be returned.ClassCastException
- if the key is of an inappropriate type for
this map (optional).NullPointerException
- if the key is null and this map
does not permit null keys (optional).containsKey(Object)
public String put(String key, String value)
put
in interface Map<String,String>
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.UnsupportedOperationException
- if the put operation is
not supported by this map.ClassCastException
- if the class of the specified key or value
prevents it from being stored in this map.IllegalArgumentException
- if some aspect of this key or value
prevents it from being stored in this map.NullPointerException
- if this map does not permit null
keys or values, and the specified key or value is
null.public String remove(Object key)
remove
in interface Map<String,String>
key
- key whose mapping is to be removed from the map.ClassCastException
- if the key is of an inappropriate type for
this map (optional).NullPointerException
- if the key is null and this map
does not permit null keys (optional).UnsupportedOperationException
- if the remove method is
not supported by this map.public void putAll(Map<? extends String,? extends String> t)
putAll
in interface Map<String,String>
t
- Mappings to be stored in this map.UnsupportedOperationException
- if the putAll method is
not supported by this map.ClassCastException
- if the class of a key or value in the
specified map prevents it from being stored in this map.IllegalArgumentException
- some aspect of a key or value in the
specified map prevents it from being stored in this map.NullPointerException
- if the specified map is null, or if
this map does not permit null keys or values, and the
specified map contains null keys or values.public void clear()
clear
in interface Map<String,String>
UnsupportedOperationException
- clear is not supported by this
map.public Collection<String> values()