|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.PortableServer.Servant | +--MonitoredEntities.EntityRepositoryPOA | +--MonitoredEntities.EntityRepositoryImpl
Implements the MonitoredEntities.EntityRepository interface.
Constructor Summary | |
EntityRepositoryImpl(org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA et_poa,
org.omg.PortableServer.POA e_poa,
org.omg.PortableServer.POA p_poa,
Persistence pobj,
EntityTypeLocatorImpl et_locator,
EntityLocatorImpl e_locator,
ParameterLocatorImpl p_locator)
Receive references to orb, poa and Persistence objects. |
Method Summary | |
MonitoredEntities.Entity |
add_me(java.lang.String meid,
MonitoredEntities.EntityType metype,
java.lang.String description,
java.lang.String[] attributes)
Creates a entity object. |
MonitoredEntities.EntityType |
add_metype(java.lang.String metid,
java.lang.String description)
Creates a entity type object. |
MonitoredEntities.Parameter |
add_parameter(java.lang.String pid,
java.lang.String description,
MonitoredEntities.EntityType metype,
MonitoredEntities.range[] ranges)
Creates a parameter object. |
void |
erase_me(java.lang.String meid)
Destroy an entity object by removing it from persistent storage. |
void |
erase_metype(java.lang.String metid)
Destroy an entity type object by removing it from persistent storage. |
void |
erase_parameter(java.lang.String pid)
Destroy an parameter object by removing it from persistent storage. |
MonitoredEntities.Entity |
get_me_ref(java.lang.String meid)
Returns the ior reference for the entity identified by meid . |
MonitoredEntities.EntityType |
get_metype_ref(java.lang.String metid)
Returns the ior reference for the entity type identified by metid . |
MonitoredEntities.Parameter |
get_parameter_ref(java.lang.String pid)
Returns the ior reference for the parameter identified by pid . |
Methods inherited from class MonitoredEntities.EntityRepositoryPOA |
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EntityRepositoryImpl(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA et_poa, org.omg.PortableServer.POA e_poa, org.omg.PortableServer.POA p_poa, Persistence pobj, EntityTypeLocatorImpl et_locator, EntityLocatorImpl e_locator, ParameterLocatorImpl p_locator)
Persistence
objects.orb
- reference to orbthe_poa
- refence to poaPobj
- reference to Persistence objectet_locator
- reference to entity type locatore_locator
- reference to entity locatorp_locator
- reference to parameter locatorMethod Detail |
public MonitoredEntities.EntityType add_metype(java.lang.String metid, java.lang.String description) throws MonitoredEntities.EntityTypeAlreadyExist
add_metype
in class MonitoredEntities.EntityRepositoryPOA
metid
- the identification of the object being createddescription
- its descriptionpublic MonitoredEntities.Entity add_me(java.lang.String meid, MonitoredEntities.EntityType metype, java.lang.String description, java.lang.String[] attributes) throws MonitoredEntities.EntityAlreadyExist
add_me
in class MonitoredEntities.EntityRepositoryPOA
meid
- the identification of the object being createdmetype
- a reference for the entity type of the entity to be createddescription
- its descriptionattributes
- its list of attributespublic MonitoredEntities.Parameter add_parameter(java.lang.String pid, java.lang.String description, MonitoredEntities.EntityType metype, MonitoredEntities.range[] ranges) throws MonitoredEntities.ParameterAlreadyExist
add_parameter
in class MonitoredEntities.EntityRepositoryPOA
pid
- the identification of the object being createddescription
- its descriptionmetype
- a reference to the entity type the parameter is related torange
- its list of rangespublic MonitoredEntities.EntityType get_metype_ref(java.lang.String metid) throws MonitoredEntities.NoSuchEntityType
metid
.get_metype_ref
in class MonitoredEntities.EntityRepositoryPOA
metid
- the identification of the entity typepublic MonitoredEntities.Entity get_me_ref(java.lang.String meid) throws MonitoredEntities.NoSuchEntity
meid
.get_me_ref
in class MonitoredEntities.EntityRepositoryPOA
meid
- the identification of the entitypublic MonitoredEntities.Parameter get_parameter_ref(java.lang.String pid) throws MonitoredEntities.NoSuchParameter
pid
.get_parameter_ref
in class MonitoredEntities.EntityRepositoryPOA
pid
- the identification of the parameterpublic void erase_metype(java.lang.String metid) throws MonitoredEntities.NoSuchEntityType, MonitoredEntities.RIViolate
erase_metype
in class MonitoredEntities.EntityRepositoryPOA
metid
- the identification of the entity type to be destroyedpublic void erase_me(java.lang.String meid) throws MonitoredEntities.NoSuchEntity
erase_me
in class MonitoredEntities.EntityRepositoryPOA
meid
- the identification of the entity to be destroyedpublic void erase_parameter(java.lang.String pid) throws MonitoredEntities.NoSuchParameter
erase_parameter
in class MonitoredEntities.EntityRepositoryPOA
pid
- the identification of the parameter to be destroyed
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |