|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bsf.listOfValues.lovValue.DefaultLovValue
A default implementation of the LovValue interface. It represents a row of a list of values.
LovValue
,
Serialized FormField Summary | |
protected java.util.HashMap |
_fields
|
protected java.lang.Object |
_pk
|
static java.lang.String |
FIELD_SEPARATOR
|
Constructor Summary | |
DefaultLovValue(java.lang.Object p_pk)
|
Method Summary | |
void |
addField(java.lang.String p_fieldName,
java.lang.Object p_fieldValue)
It will replace any previous value with the same field name. |
boolean |
equals(java.lang.Object p_lovValue)
|
java.lang.Object |
getFieldValue(java.lang.String p_fieldName)
This method enable the access to the values stored in this LovValue for the given field name. |
java.lang.Long |
getOid()
Deprecated. should use getPK() |
java.lang.Object |
getPK()
This method should be use instead of the old getOid() method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String FIELD_SEPARATOR
protected java.lang.Object _pk
protected java.util.HashMap _fields
Constructor Detail |
public DefaultLovValue(java.lang.Object p_pk)
Method Detail |
public java.lang.Long getOid()
getOid
in interface LovValue
LovValue
,
getPK()
public java.lang.Object getPK()
getPK
in interface LovValue
LovValue
,
LovBean
public java.lang.Object getFieldValue(java.lang.String p_fieldName)
LovValue
getFieldValue
in interface LovValue
p_fieldName
- The name of the field for which the value is desired.
public void addField(java.lang.String p_fieldName, java.lang.Object p_fieldValue)
p_fieldName
- The field name identifying the given value.p_fieldValue
- The value to be stored for the given field name.public boolean equals(java.lang.Object p_lovValue)
p_lovValue
- The other LovValue to test against. The check is done
on the Class of the other LovValue (needs to be a DefaultLovValue to be
considered equal), the pk and on the fields (map comparison).
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |