|
Objectivity for Java Reference | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the behavior shared by all persistent objects.
The Persistent interface provides implicit persistence behavior. Its methods give access to an object's persistor; Objectivity for Java uses the persistor to perform persistent operations on the object.
To define a persistence-capable class with the minimal public API, you define a class that implements the Persistent interface. Your class must provide a mechanism for getting and setting an object's persistor.
If you desire, you can also implement public or private methods to perform persistence operations explicitly; see Providing Explicit Persistence Behavior.
Alternative ways to define a persistence-capable class are:
For additional information, see Defining Persistence-Capable Classes.
Method Summary | |
PooObj |
getPersistor()
Gets the object providing persistence behavior for this object. |
void |
setPersistor(PooObj persistor)
Sets the object providing persistence behavior for this object. |
Method Detail |
public PooObj getPersistor()
public void setPersistor(PooObj persistor)
persistor
- The object providing persistence behavior for this object.
You should not call this method directly.
|
Objectivity for Java Reference | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000 Objectivity, Inc. All rights reserved.