com.jidesoft.database
Class DefaultRecord
java.lang.Object
com.jidesoft.database.DefaultRecord
- All Implemented Interfaces:
- Record, Serializable, Map<String,Object>
public class DefaultRecord
- extends Object
- implements Serializable, Map<String,Object>, Record
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface com.jidesoft.database.Record |
EMPTY |
values
protected final HashMap<String,Object> values
DefaultRecord
public DefaultRecord()
DefaultRecord
public DefaultRecord(DefaultRecord record)
DefaultRecord
public DefaultRecord(Map map)
getSize
public int getSize()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map<String,Object>
contains
public boolean contains(String field)
remove
public Object remove(String field)
getValues
public HashMap<String,Object> getValues()
putAll
public void putAll(Map data)
- Specified by:
putAll
in interface Map<String,Object>
putAll
public void putAll(Map data,
boolean overwrite)
getValue
public Object getValue(String field)
- Specified by:
getValue
in interface Record
getString
public String getString(String field)
getInt
public int getInt(String field)
getDouble
public double getDouble(String field)
getDate
public Date getDate(String field)
setValue
public void setValue(String field,
Object value)
- Specified by:
setValue
in interface Record
isNull
public boolean isNull(String field)
- Specified by:
isNull
in interface Record
isEmpty
public boolean isEmpty(String field)
- Devuelve si existe el valor en el hash independientemente
de si es nulo o no.
- Specified by:
isEmpty
in interface Record
- Parameters:
field
- Nombre del campo
- Returns:
- si existe la clave en el map.
toString
public String toString(String separador)
toString
public String toString(String separador,
boolean showInstance)
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Map<String,Object>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map<String,Object>
- Overrides:
hashCode
in class Object
clear
public void clear()
- Specified by:
clear
in interface Map<String,Object>
size
public int size()
- Specified by:
size
in interface Map<String,Object>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map<String,Object>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map<String,Object>
get
public Object get(Object key)
- Specified by:
get
in interface Map<String,Object>
put
public Object put(String key,
Object value)
- Specified by:
put
in interface Map<String,Object>
remove
public Object remove(Object key)
- Specified by:
remove
in interface Map<String,Object>
keySet
public Set<String> keySet()
- Specified by:
keySet
in interface Map<String,Object>
values
public Collection<Object> values()
- Specified by:
values
in interface Map<String,Object>
entrySet
public Set<Map.Entry<String,Object>> entrySet()
- Specified by:
entrySet
in interface Map<String,Object>