MonitoredEntities
Class EntityImpl
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--MonitoredEntities.EntityPOA
|
+--MonitoredEntities.EntityImpl
- All Implemented Interfaces:
- MonitoredEntities.EntityOperations, org.omg.CORBA.portable.InvokeHandler
- public class EntityImpl
- extends MonitoredEntities.EntityPOA
Implements the MonitoredEntities/Entity interface.
Constructor Summary |
EntityImpl(java.lang.String meid,
org.omg.CORBA.ORB orb,
Persistence pobj)
Loads the state of the entity this object is incarnating
from persistent storage.
|
Method Summary |
java.lang.String[] |
attributes()
Returns the list of attributes of this entity. |
java.lang.String |
description()
Returns the description of this entity. |
java.lang.String |
meid()
Returns the identification of this entity. |
MonitoredEntities.EntityType |
metype()
Returns the identification of the entity type of this entity. |
int |
num_attributes()
Returns the number of attributes this entity contains. |
Methods inherited from class MonitoredEntities.EntityPOA |
_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 |
EntityImpl
public EntityImpl(java.lang.String meid,
org.omg.CORBA.ORB orb,
Persistence pobj)
- Loads the state of the entity this object is incarnating
from persistent storage.
Receives an reference to the
Persistence
object and calls
the method ELoadState
that returns the state of the entity
this object is incarnating (identified by meid
).
The state of the entity is returned in an vector
that must have its elements casted to the specific type of each class variable.
- Parameters:
meid
- identification of the entity the object is incarnatingorb
- reference to the orbpobj
- reference to the Persistence object
meid
public java.lang.String meid()
- Returns the identification of this entity.
- Overrides:
meid
in class MonitoredEntities.EntityPOA
- Returns:
- the identification of this entity
metype
public MonitoredEntities.EntityType metype()
- Returns the identification of the entity type of this entity.
- Overrides:
metype
in class MonitoredEntities.EntityPOA
- Returns:
- the identification of the entity type of this entity
description
public java.lang.String description()
- Returns the description of this entity.
- Overrides:
description
in class MonitoredEntities.EntityPOA
- Returns:
- the description of this entity
attributes
public java.lang.String[] attributes()
- Returns the list of attributes of this entity.
- Overrides:
attributes
in class MonitoredEntities.EntityPOA
- Returns:
- the list of attributes of this entity
num_attributes
public int num_attributes()
- Returns the number of attributes this entity contains.
- Overrides:
num_attributes
in class MonitoredEntities.EntityPOA
- Returns:
- the number of attributes this entity contais