org.openorb.trader.repository
Class Repository

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--org.omg.CosTradingRepos.ServiceTypeRepositoryPOA
              |
              +--org.openorb.trader.repository.Repository
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, ServiceTypeRepositoryOperations

public class Repository
extends ServiceTypeRepositoryPOA

This class provides the ServiceType repository implementation.

Author:
Jerome Daniel

Constructor Summary
Repository(org.omg.CORBA.Repository ir, java.lang.String connector_prefix, org.omg.CORBA.ORB orb)
           
 
Method Summary
 IncarnationNumber add_type(java.lang.String name, java.lang.String if_name, PropStruct[] props, java.lang.String[] super_types)
          Adds a service type description
 TypeStruct describe_type(java.lang.String name)
          Describes a service type
 TypeStruct fully_describe_type(java.lang.String name)
          Fully describes a service type ( includes inherited properties and all inheritances - direct and indirect - )
 IncarnationNumber incarnation()
          Return the incarnation number
 java.lang.String[] list_types(SpecifiedServiceTypes which_types)
          Lists all available types
 void mask_type(java.lang.String name)
          This operation masks a type
 void remove_type(java.lang.String name)
          Removes a service type description
 void unmask_type(java.lang.String name)
          This operation unmarsk a type
 
Methods inherited from class org.omg.CosTradingRepos.ServiceTypeRepositoryPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository(org.omg.CORBA.Repository ir,
                  java.lang.String connector_prefix,
                  org.omg.CORBA.ORB orb)
Method Detail

incarnation

public IncarnationNumber incarnation()
Return the incarnation number
Following copied from interface: org.omg.CosTradingRepos.ServiceTypeRepositoryOperations
Returns:
the attribute value

add_type

public IncarnationNumber add_type(java.lang.String name,
                                  java.lang.String if_name,
                                  PropStruct[] props,
                                  java.lang.String[] super_types)
                           throws IllegalServiceType,
                                  ServiceTypeExists,
                                  InterfaceTypeMismatch,
                                  IllegalPropertyName,
                                  DuplicatePropertyName,
                                  ValueTypeRedefinition,
                                  UnknownServiceType,
                                  DuplicateServiceTypeName
Adds a service type description

remove_type

public void remove_type(java.lang.String name)
                 throws IllegalServiceType,
                        UnknownServiceType,
                        HasSubTypes
Removes a service type description

list_types

public java.lang.String[] list_types(SpecifiedServiceTypes which_types)
Lists all available types

describe_type

public TypeStruct describe_type(java.lang.String name)
                         throws IllegalServiceType,
                                UnknownServiceType
Describes a service type

fully_describe_type

public TypeStruct fully_describe_type(java.lang.String name)
                               throws IllegalServiceType,
                                      UnknownServiceType
Fully describes a service type ( includes inherited properties and all inheritances - direct and indirect - )

mask_type

public void mask_type(java.lang.String name)
               throws IllegalServiceType,
                      UnknownServiceType,
                      AlreadyMasked
This operation masks a type

unmask_type

public void unmask_type(java.lang.String name)
                 throws IllegalServiceType,
                        UnknownServiceType,
                        NotMasked
This operation unmarsk a type