|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.database.BaseObject
public class BaseObject
This is the base paper object, which can represents all the fields of a database row - plus anything else that is added. This works together with BaseTable, if an instance representation is required.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.util.HashMap |
fields
|
| Constructor Summary | |
|---|---|
BaseObject()
Construct an empty one. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the current object. |
java.lang.Object |
getValue(java.lang.String fieldName)
Get a field by name. |
java.util.Iterator |
listFields()
Get the list of fields that currently have values. |
void |
setValue(java.lang.String fieldName,
java.lang.Object fieldValue)
Set a field by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected java.util.HashMap fields
| Constructor Detail |
|---|
public BaseObject()
| Method Detail |
|---|
public void clear()
public java.util.Iterator listFields()
public java.lang.Object getValue(java.lang.String fieldName)
fieldName - is the name of the field.
public void setValue(java.lang.String fieldName,
java.lang.Object fieldValue)
fieldName - is the name of the field.fieldValue - is the value, or null if the field should be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||