Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES
Hook: Make Object Persistent
Requirement
An object that is not " known " to the Shop and not reachable by it through references must be made persistent.
The Objects " known " to the Shop are:
The global
UserManager
.
The global
password garbler
.
Method of Adaptation
Add Feature
Level of Support
Parameter Pattern
HotSpot
Persistance
Participants
shopInstance
, key , object
Changes
select (
key
,
object
) from (
String
,
Object
).
object
is the object to be made persistent.
key
must be unique for each persitent object.
call
shopInstance.setObjectPersistent
with parameters
key
,
object
.
Comments
You can access the persistent object through calls to
sale.Shop.getPersistentObject
passing the key you specified when defining the persistent object.
sale.Shop.setObjectTransient
makes an object transient again.
Objects that are either " known " to the Shop or that are reachable by reference from the Shop or from an object " known " to the Shop are persistent by default. These objects cannot be made transient.
Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES