|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.Property
@NotThreadSafe public class Property
Provides access to a persisted property shared over the whole system.
The easiest way to create a property object is by calling
PropertyBag.getProperty
the PropertyBag class
,
the constructor
Method Summary | |
---|---|
void |
clear()
Clears the property. |
java.lang.Object |
getValue()
gets the value of the property. |
void |
setValue(java.lang.Object o)
sets the value of the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void clear()
java.lang.NullPointerException
- if the underlying program has been disposed
A4wapiGenericError
- on a variety of other occasions such as inability to create the
underlying tables etc.public void setValue(java.lang.Object o)
o
- an object defining the value of the property. This must be a
serializable object.
java.io.InvalidClassException
- if the serialised object is too large to store.public java.lang.Object getValue()
A4wapiGenericError
java.lang.RuntimeException
- wrapping either a ClassNotFoundException if the property
includes a class not present here or wrapping a
java.io.IOException if there is an IOException while converting
the property back into an object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |