org.omg.PortableServer

Class LifespanPolicyValue

public class LifespanPolicyValue extends Object implements Serializable, IDLEntity

Specifies the object life span policy. This enumeration can obtain the following values:
Field Summary
static LifespanPolicyValuePERSISTENT
An instance of LifespanPolicyValue, initialized to PERSISTENT.
static LifespanPolicyValueTRANSIENT
An instance of LifespanPolicyValue, initialized to TRANSIENT.
static int_PERSISTENT
The possible value of this enumeration (PERSISTENT).
static int_TRANSIENT
The possible value of this enumeration (TRANSIENT).
Constructor Summary
protected LifespanPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.
Method Summary
static LifespanPolicyValuefrom_int(int code)
Returns the LifespanPolicyValue, matching the given integer constant.
StringtoString()
Returns a short string representation.
intvalue()
Returns the integer code of the policy value.

Field Detail

PERSISTENT

public static final LifespanPolicyValue PERSISTENT
An instance of LifespanPolicyValue, initialized to PERSISTENT.

TRANSIENT

public static final LifespanPolicyValue TRANSIENT
An instance of LifespanPolicyValue, initialized to TRANSIENT.

_PERSISTENT

public static final int _PERSISTENT
The possible value of this enumeration (PERSISTENT).

_TRANSIENT

public static final int _TRANSIENT
The possible value of this enumeration (TRANSIENT).

Constructor Detail

LifespanPolicyValue

protected LifespanPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.

Method Detail

from_int

public static LifespanPolicyValue from_int(int code)
Returns the LifespanPolicyValue, matching the given integer constant.

Parameters: code one of _TRANSIENT, _PERSISTENT.

Returns: one of TRANSIENT, PERSISTENT.

Throws: BAD_PARAM if the parameter is not one of the valid values.

toString

public String toString()
Returns a short string representation.

Returns: the name of the current enumeration value.

value

public int value()
Returns the integer code of the policy value.

Returns: _TRANSIENT or _PERSISTENT.