PSS 1.0 NO IDEA Avatar
  1. OMG Issue

PSS — Some others ways to get an abstract storage type reference

  • Key: PSS-23
  • Legacy Issue Number: 3978
  • Status: closed  
  • Source: Anonymous
  • Summary:

    At this time, the PSDL mapping does not provide a way to create an object
    and to directly get its reference. It means that if you want to have an
    abstract storage type reference, you only have to solution :

    • to use the _create operation from the storage home ( not very flexible )
    • to find an storage type thanks to a find_ref_by_xxx from the abstract
      storage home

    I think that the "factory" mapping should be changed :

    Currently : ( PSS spec, p 56 )

    factory create( accno );

    // it's like
    // Account create( in string accno )

    After changes :

    factory create( accno );
    <pre>
    // it's like
    // Account create( in string accno );
    // ref<Account> create_ref( in string accno );
    </pre>
    Moreover, the catalog currently provides : StorageObject find_by_pid( byte
    [] pid );

    It should be very useful to provide another method : StorageObjectRef
    find_ref_by_pid( byte [] pid );

  • Reported: PSS 1.0b1 — Mon, 23 Oct 2000 04:00 GMT
  • Disposition: Resolved — PSS 1.0
  • Disposition Summary:

    accepted

  • Updated: Fri, 6 Mar 2015 20:58 GMT