The /cim/framework/persistence/Lookup object provides a simple implementation of a persistent lookup table of values. It uses the class atg.cim.persistence.Lookup. Only Strings can be persisted.

The following example persists a key-value pair:

mLookup = SessionContext.getLookupPersistence()
mLookup.put("mykey", "value1");

Then this snippet retrieves the value:

mLookup = SessionContext.getLookupPersistence()
mLookup.get("mykey");

This removes the key-value pair:

mLookup = SessionContext.getLookupPersistence()
mLookup.remove("mykey");

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices