Context object that a component can use to interact with its container.
Get an object reference for this component instance. No error checking is done
Object getObject
(
);
Get all of the current component's deployment properties.
CtsComponents::Properties getProperties
(
);
Get the value of a deployment property for the current component.
CtsComponents::PropertyValue getProperty
(
in string name
);
Determine if the current transaction is marked for rollback only.
boolean getRollbackOnly
(
);
Determine RunAsIdentity.
CtsComponents::BinarySeq getRunAsIdentity
(
);
Obtain information pertaining to the client's session.
CtsSecurity::SessionInfo getSessionInfo
(
);
Return the storage object for this component, or a nil object reference if this component has no storage object.
CtsComponents::Storage getStorage
(
);
Return the storage key for this component instance. Every component instance has a storage key. For entity components, it is a binary form of the primary key. For non-entity components, it is a unique system-generated key.
CtsComponents::StorageKey getStorageKey
(
);
Get a transaction object that this component instance can use for explicit transaction demarcation or to enquire about status of the current transaction.
CosTransactions::Current getUserTransaction
(
);
Determine if the caller is a member of the specified role.
boolean isCallerInRole
(
in string role
);
Lookup the factory or home interface for a component.
Object lookup
(
in string component
);
lookup the properties table associated with the context specified by name, under user-defined properties
CtsComponents::Properties lookupNameContext
(
in string name
);
lookup the value of a user defined property for the component.
CtsComponents::PropertyValue lookupNameProperty
(
in string name
);
Mark the current transaction as complete, or for non-transactional components request that this instance be deactivated. This call has no effect for components using the EJB component model, or if non-voting transaction demarcation is being used, or if this instance is not the "root" instance for the transaction.
void setComplete
(
);
Mark the current transaction for rollback only.
void setRollbackOnly
(
);