public interface SbbLocalObject
SbbLocalObject
interface must be extended by all SBB local interfaces
used for synchronous SBB invocations.Modifier and Type | Method and Description |
---|---|
byte |
getSbbPriority()
Get the invocation priority for the SBB entity referenced by this
SbbLocalObject . |
boolean |
isIdentical(SbbLocalObject obj)
Compare this
SbbLocalObject for identity equality with another. |
void |
remove()
Remove the SBB entity referenced by this
SbbLocalObject . |
void |
setSbbPriority(byte priority)
Set the invocation priority for the SBB entity referenced by this
SbbLocalObject . |
boolean isIdentical(SbbLocalObject obj) throws TransactionRequiredLocalException, SLEEException
SbbLocalObject
for identity equality with another.
This method is a mandatory transactional method.
obj
- the object to compare this with.true
if obj
is a reference to an SBB entity
with the same identity as the SBB entity referenced by this SbbLocalObject
object, false
otherwise.TransactionRequiredLocalException
- if this method is invoked without a valid transaction
context.SLEEException
- if the equality test could not be completed due to a
system-level failure.void setSbbPriority(byte priority) throws TransactionRequiredLocalException, NoSuchObjectLocalException, SLEEException
SbbLocalObject
.
This method is a mandatory transactional method.
priority
- the new priority. The valid range for priorities is -128 to 127.TransactionRequiredLocalException
- if this method is invoked without a valid transaction
context.NoSuchObjectLocalException
- if the SBB entity referenced by this SbbLocalObject
is no longer valid.SLEEException
- if the priority could not be set due to a system-level
failure.byte getSbbPriority() throws TransactionRequiredLocalException, NoSuchObjectLocalException, SLEEException
SbbLocalObject
.
This method is a mandatory transactional method.
TransactionRequiredLocalException
- if this method is invoked without a valid transaction
context.NoSuchObjectLocalException
- if the SBB entity referenced by this SbbLocalObject
is no longer valid.SLEEException
- if the SBB's priority could not be obtained due to a
system-level failure.void remove() throws TransactionRequiredLocalException, TransactionRolledbackLocalException, SLEEException
SbbLocalObject
. Any children
of the removed SBB entity also also removed. If the removed SBB entity is not a root SBB
entity of a Service, then the SBB entity is also removed from the relevant child relation
of its parent SBB entity.
An SBB entity that is removed, either directly or indirectly (via a cascade removal), is automatically detached from any Activity Contexts it is attached to.
This method is a mandatory transactional method.
TransactionRequiredLocalException
- if this method is invoked without a valid transaction
context.TransactionRolledbackLocalException
- if the SLEE catches a runtime exception during
the remove that causes the transaction to be marked for rollback. The
TransactionRolledbackLocalException
's getCause()
method returns the exception that caused the transaction to be marked for rollback.
This could be, for example:
NoSuchObjectLocalException
, if the SBB entity referenced by this
SbbLocalObject
didn't exist; or
Sbb.sbbRemove()
method
SLEEException
- if the SBB entity could not be removed due to a system-level
failure.