com.ashridgetech.prevdb.client
Interface Persistent

All Known Implementing Classes:
AbstractPersistentObject

public interface Persistent

The interface which PrevDb persistent objects must implement.

Version:
1.0
Author:
paulb

Method Summary
 Object getField(PersistentField field)
          Get the value of a single field.
 FieldMap getFields()
          Get a map of all the persistent fields in this object.
 PersistentManager getManager()
          Get the PersistentManager that manages this object.
 Object getOid()
          Get the oid of this object.
 void setField(PersistentField field, Object value)
          Set the value of a single field.
 void setFields(FieldMap fields)
          Set some or all of the fields in this object.
 

Method Detail

getManager

public PersistentManager getManager()
Get the PersistentManager that manages this object.

Returns:
the manager

getOid

public Object getOid()
Get the oid of this object. This is the unique identifier for objects of this object's class.

Returns:
the oid

getFields

public FieldMap getFields()
Get a map of all the persistent fields in this object.

Returns:
the field map

setFields

public void setFields(FieldMap fields)
Set some or all of the fields in this object.

Parameters:
fields - the fields to set

getField

public Object getField(PersistentField field)
Get the value of a single field.

Parameters:
field - the PersistentFieldwhose value is required
Returns:
the field value

setField

public void setField(PersistentField field,
                     Object value)
Set the value of a single field.

Parameters:
field - the PersistentFieldwhose value is to be set
value - the field value


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.