|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ManagedEntityKey
is a unique identifier for a
ManagedEntityValue
.
The Type, ApplicationDN and ApplicationContext
are included in ManagedEntityKey
, because
a primaryKey
is only unique within an
application instance as given by the ApplicationDN running
in a given naming system as given by the ApplicationContext URL.
Method Summary | |
java.lang.Object |
clone()
Deep copy this key. |
ApplicationContext |
getApplicationContext()
Get the ApplicationContext which can be used to locate the Application Components in charge of the managed entity referenced by this key. |
java.lang.String |
getApplicationDN()
The DN of the Application JNDI Naming Context. |
java.lang.Object |
getPrimaryKey()
Get the primary key. |
java.lang.String |
getType()
Get the type of the ManagedEntityValue referenced by
the ManagedEntityKey .
|
ApplicationContext |
makeApplicationContext()
Factory method for ApplicationContext |
java.lang.Object |
makePrimaryKey()
Manufacture a PrimaryKey. |
void |
setApplicationContext(ApplicationContext ctx)
Set the ApplicationContext. |
void |
setApplicationDN(java.lang.String applicationDN)
Set the ApplicationDN. |
void |
setPrimaryKey(java.lang.Object key)
Sets a new value for the primary key. |
void |
setType(java.lang.String type)
Set a new value for type. |
Methods inherited from interface com.sun.management.oss.SerializerFactory |
getSupportedSerializerTypes, makeSerializer |
Method Detail |
public java.lang.Object clone()
public ApplicationContext makeApplicationContext()
public ApplicationContext getApplicationContext()
public void setApplicationContext(ApplicationContext ctx) throws java.lang.IllegalArgumentException
Because a key is only unique within a given naming system (as given by the JNDI provider URL) and for a given Application instance ( as given by the ApplicationDN ) the ApplicationContext must be set to uniquely identify a key.
ctx
- the ApplicationContext
java.lang.IllegalArgumentException
- if ApplicationContext
argument is not valid in some way.public void setApplicationDN(java.lang.String applicationDN) throws java.lang.IllegalArgumentException
Because a key is only unique within a given naming system (as given by the JNDI provider URL) and for a given Application instance ( as given by the ApplicationDN ) the ApplicationDN must be set to uniquely identify a key.
applicationDN
- the application DN
java.lang.IllegalArgumentException
- if applicationDN
argument is malformed.public java.lang.String getApplicationDN()
< Optional Deployment dependent Top Context >/ System/ < System Name >/ ApplicatonType/ < Application Type Name >/ Application/ < API Version Number >;< Product Release Number >;< Product Name >
where the format of the API Version Number and the Product Release Number is:
< MajorVersionNumber-MinorVersionNumber >
public java.lang.String getType()
ManagedEntityValue
referenced by
the ManagedEntityKey
.
The type is part of ManagedEntityKey
,
because primaryKey
s can be
duplicate between ManagedEntityValue
, implemented by the same
class, but from different type (not java type).
public void setType(java.lang.String type) throws java.lang.IllegalArgumentException
type
- the new value for type
java.lang.IllegalArgumentException
- if type is not valid.public java.lang.Object getPrimaryKey()
This is a unique identifier for a Managed Entity within the scope of application context, application DN, and type.
In case the implementation uses Entity Beans, an implementation may map the primary key to the EJB primary key.
public void setPrimaryKey(java.lang.Object key) throws java.lang.IllegalArgumentException
key
- the new value for the primary key.
java.lang.IllegalArgumentException
- if key is bad in some way.public java.lang.Object makePrimaryKey()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |