Search in sources :

Example 6 with CDBFieldDoesNotExistEx

use of alma.cdbErrType.CDBFieldDoesNotExistEx in project ACS by ACS-Community.

the class CharacteristicModelImpl method get_all_characteristics.

/**
	 * @see alma.ACS.CharacteristicModelOperations#get_all_characteristics()
	 */
public PropertySet get_all_characteristics() {
    String[] allSeq;
    try {
        if (prefix == "")
            allSeq = dao.get_string_seq("");
        else
            allSeq = dao.get_string_seq(prefix);
        Property[] p = new Property[allSeq.length];
        for (int i = 0; i < allSeq.length; i++) {
            Any a = get_characteristic_by_name(allSeq[i]);
            p[i] = new Property(allSeq[i], a);
        }
        //dangerous methods!! 
        ORB orb = m_container.getAdvancedContainerServices().getORB();
        POA rootpoa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
        rootpoa.the_POAManager().activate();
        PropertySetImpl psetImpl = new PropertySetImpl(p);
        PropertySetPOATie psetTie = new PropertySetPOATie(psetImpl, rootpoa);
        return psetTie._this(orb);
    } catch (CDBFieldDoesNotExistEx e) {
    } catch (WrongCDBDataTypeEx e) {
    } catch (NoSuchCharacteristic e) {
    } catch (MultipleExceptions e) {
    } catch (InvalidName e) {
    } catch (AdapterInactive e) {
    } catch (NullPointerException e) {
        System.out.println(e);
    }
    throw new NO_IMPLEMENT();
}
Also used : NO_IMPLEMENT(org.omg.CORBA.NO_IMPLEMENT) POA(org.omg.PortableServer.POA) NoSuchCharacteristic(alma.ACS.NoSuchCharacteristic) AdapterInactive(org.omg.PortableServer.POAManagerPackage.AdapterInactive) Any(org.omg.CORBA.Any) PropertySetImpl(alma.ACS.jbaci.PropertySetImpl) PropertySetPOATie(org.omg.CosPropertyService.PropertySetPOATie) InvalidName(org.omg.CORBA.ORBPackage.InvalidName) CDBFieldDoesNotExistEx(alma.cdbErrType.CDBFieldDoesNotExistEx) MultipleExceptions(org.omg.CosPropertyService.MultipleExceptions) Property(org.omg.CosPropertyService.Property) ORB(org.omg.CORBA.ORB) WrongCDBDataTypeEx(alma.cdbErrType.WrongCDBDataTypeEx)

Aggregations

CDBFieldDoesNotExistEx (alma.cdbErrType.CDBFieldDoesNotExistEx)6 WrongCDBDataTypeEx (alma.cdbErrType.WrongCDBDataTypeEx)4 NoSuchCharacteristic (alma.ACS.NoSuchCharacteristic)2 CDBRecordDoesNotExistEx (alma.cdbErrType.CDBRecordDoesNotExistEx)2 DAO (com.cosylab.CDB.DAO)2 Any (org.omg.CORBA.Any)2 POA (org.omg.PortableServer.POA)2 PropertySetImpl (alma.ACS.jbaci.PropertySetImpl)1 BACIPropertyType (alma.TMCDB.baci.BACIPropertyType)1 EmptyStringHandlerBACIPropertyType (alma.TMCDB.baci.EmptyStringHandlerBACIPropertyType)1 ClientLogManager (alma.acs.logging.ClientLogManager)1 BACIProperty (alma.acs.tmcdb.BACIProperty)1 ChannelMapping (alma.acs.tmcdb.ChannelMapping)1 Component (alma.acs.tmcdb.Component)1 ComponentType (alma.acs.tmcdb.ComponentType)1 Computer (alma.acs.tmcdb.Computer)1 Configuration (alma.acs.tmcdb.Configuration)1 Container (alma.acs.tmcdb.Container)1 ContainerStartupOption (alma.acs.tmcdb.ContainerStartupOption)1 DomainsMapping (alma.acs.tmcdb.DomainsMapping)1