JIDE 3.5.15

com.jidesoft.database
Class DefaultRecord

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  HashMap<String,Object> values
           
 
Fields inherited from interface com.jidesoft.database.Record
EMPTY
 
Constructor Summary
DefaultRecord()
           
DefaultRecord(DefaultRecord record)
           
DefaultRecord(Map map)
           
 
Method Summary
 void clear()
           
 boolean contains(String field)
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 Date getDate(String field)
           
 double getDouble(String field)
           
 int getInt(String field)
           
 int getSize()
           
 String getString(String field)
           
 Object getValue(String field)
           
 HashMap<String,Object> getValues()
           
 int hashCode()
           
 boolean isEmpty()
           
 boolean isEmpty(String field)
          Devuelve si existe el valor en el hash independientemente de si es nulo o no.
 boolean isNull(String field)
           
 Set<String> keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map data)
           
 void putAll(Map data, boolean overwrite)
           
 Object remove(Object key)
           
 Object remove(String field)
           
 void setValue(String field, Object value)
           
 int size()
           
 String toString()
           
 String toString(String separador)
           
 String toString(String separador, boolean showInstance)
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

values

protected final HashMap<String,Object> values
Constructor Detail

DefaultRecord

public DefaultRecord()

DefaultRecord

public DefaultRecord(DefaultRecord record)

DefaultRecord

public DefaultRecord(Map map)
Method Detail

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>

JIDE 3.5.15