wt.lifecycle
Class LifeCycleServerHelper
java.lang.Object
wt.lifecycle.LifeCycleServerHelper
- All Implemented Interfaces:
- Externalizable, Serializable
public class LifeCycleServerHelper
- extends Object
- implements Externalizable
Provides server side access to the methods of the LifeCycleServiceSvr
interface.
Supported API: true
Extendable: false
- See Also:
- Serialized Form
|
Method Summary |
static wt.lifecycle.LifeCycleManaged |
setState(wt.lifecycle.LifeCycleManaged object,
State state)
Set the State of the LifeCycleManaged object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setState
public static wt.lifecycle.LifeCycleManaged setState(wt.lifecycle.LifeCycleManaged object,
State state)
throws wt.lifecycle.LifeCycleException,
WTPropertyVetoException
- Set the State of the LifeCycleManaged object. If the state isn't
valid in the current LifeCycle, an exception will be thrown when the
object is persisted If the object is already persisted, this method
will throw an exception.
If used in conjuction with the LifeCycleHelper.setLifeCycle method,
the LifeCycleHelper.setLifeCycle method must be executed first. If
the LifeCycleHelper.setLifeCycle method is executed after this method,
the setting of the state will be wiped out.
Supported API: true
- Parameters:
object - the LifeCycleManaged object whose state will be setstate - the state to be set on the LifeCycleManaged object.
- Returns:
- LifeCycleManaged
- Throws:
wt.lifecycle.LifeCycleException
WTPropertyVetoException