|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.PropertyBag
@ThreadSafe public class PropertyBag
Provides access to a persisted property bag shared over the whole system.
A property bag is a collection of named properties of the given program and
all similar programs. Changes are observed between all such programs and are
persisted even when there are no such programs.
Two programs are similar if they have the same
Program
's getPropertyBag
methods. Alternatively you can create a new PropertyBag by specifying the
Program to one of the constructors
.
PropertyBag(Program)
,
PropertyBag(Program,String)
,
the program class
,
the property class
Constructor Summary | |
---|---|
PropertyBag(Program program)
Construct a PropertyBag for the default menuid of the given program. |
|
PropertyBag(Program program,
java.lang.String menuID)
Construct a PropertyBag for the given menuid of the given program. |
Method Summary | |
---|---|
void |
clear()
Clears out the whole bag. |
Property |
getProperty(java.lang.String name)
Gets a new Property object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyBag(Program program)
program
- see the more extensive constructor
.the more extensive constructor.
public PropertyBag(Program program, java.lang.String menuID)
program
- the Program object through which the properties are accessed.
The properties are shared amongst all Programs in the system
using the same user id, company id, application id, application
version and application object id.menuID
- the menu ID of the particular property bag requested. If this is
a null reference or a string of length zero then the inherited
property bag will be selected.Method Detail |
---|
public void clear()
clear
in interface IPropertyBag
public Property getProperty(java.lang.String name)
getProperty
in interface IPropertyBag
name
- the name of the property
Property
with the given name in this bag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |