public interface ProfileLocalObject
ProfileLocalObject
interface must be extended by all Profile Local
Interfaces used by SLEE components to interact with profiles.Modifier and Type | Method and Description |
---|---|
String |
getProfileName()
Get the name of the profile referenced by this
ProfileLocalObject . |
ProfileTable |
getProfileTable()
Get an object that implements the Profile Table Interface of the profile table in
which the profile that this
ProfileLocalObject references exists. |
String |
getProfileTableName()
Get the name of the profile table in which the profile referenced by this
ProfileLocalObject exists. |
boolean |
isIdentical(ProfileLocalObject obj)
Compare this
ProfileLocalObject for identity equality with another. |
void |
remove()
Remove the profile referenced by this
ProfileLocalObject . |
boolean isIdentical(ProfileLocalObject obj) throws SLEEException
ProfileLocalObject
for identity equality with another.
This method is a non-transactional method.
obj
- the object to compare this with.true
if obj
is a reference to a profile with the
same identity (profile table name and profile name) as the profile referenced
by this ProfileLocalObject
object, false
otherwise.SLEEException
- if the equality test could not be completed due to a
system-level failure.String getProfileTableName() throws SLEEException
ProfileLocalObject
exists.
This method is a non-transactional method.
SLEEException
- if the profile table name could not be obtained due to a
system-level failure.String getProfileName() throws SLEEException
ProfileLocalObject
.
This method is a non-transactional method.
null
if the Profile object is associated
with the profile table's default profile.SLEEException
- if the profile name could not be obtained due to a
system-level failure.ProfileTable getProfileTable() throws SLEEException
ProfileLocalObject
references exists. If
the profile specification of the profile table has defined a Profile Table Interface
that extends ProfileTable
then the object returned from this method may be
safely typecast to the subinterface declared in the Profile Specification.
This method is a non-transactional method.
SLEEException
- if the Profile Table Interface object could not be obtained
due to a system-level failure.void remove() throws TransactionRequiredLocalException, TransactionRolledbackLocalException, SLEEException
ProfileLocalObject
.
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 profile referenced by this
ProfileLocalObject
didn't exist;
ReadOnlyProfileException
, if the profile table's profile specification
has enforced a read-only SLEE component view of profiles; or
Profile.profileRemove()
method
SLEEException
- if the SBB entity could not be removed due to a system-level
failure.