Generating Vector of objects using OTT

Iam using OTT to generate C++ classes for the following database types:
CREATE OR REPLACE TYPE CONNLESS_TYPE AS OBJECT
COLUMN1 NUMBER,
COLUMN2 NUMBER,
COLUMN3 DATE
CREATE OR REPLACE TYPE CONNLESS_TYPE_ARR AS VARRAY (59) OF CONNLESS_TYPE;
CREATE OR REPLACE TYPE FINAL_TYPE AS OBJECT
V_CONNLESS CONNLESS_TYPE_ARR
For 'FINAL_TYPE' OTT generates appropriate classes and mapping classes correctly. In the class definition for 'FINAL_TYPE', it makes the member attribute 'V_CONNLESS' as VECTOR <CONNLESS_TYPE *>.
Is it possible to make OTT generate the code such that the member attribute becomes VECTOR<CONNLESS_TYPE> ?

For 'FINAL_TYPE' OTT generates appropriate classes and
mapping classes correctly. In the class definition for
'FINAL_TYPE', it makes the member attribute 'V_CONNLESS' as
VECTOR <CONNLESS_TYPE *>OTT will not generate it this way.
The application has to create objects of type CONNLESS_TYPE * and
populate final_type.
Rgds.
Amogh
Message was edited by:
Amogh
aramappa

Similar Messages

  • Sorting a vector of objects using attribute of object class as comparator

    i would like to sort a vector of objects using an attribute of object class as comparator. let me explain, i'm not sure to be clear.
    class MyObject{
    String name;
    int value1;
    int value2;
    int value3;
    i've got a Vector made of MyObject objects, and i would sort it, for instance, into ascending numerical order of the value1 attribute. Could someone help me please?
    KINSKI.

    Vector does not implement a sorted collection, so you can't use a Comparator. Why don't you use a TreeSet? Then you couldclass MyObject
      String name;
      int value1;
      int value2;
      int value3;
      // Override equals() in this class to match what our comparator does
      boolean equals (Object cand)
        // Verify comparability; this will also allow subclasses.
        if (cand !instanceof MyObject)
          throw new ClassCastException();
        return value1 = cand.value1;
      // Provide the comparator for this class. Make it static; instance not required
      static Comparator getComparator ()
        // Return this class's comparator
        return new MyClassComparator();
      // Define a comparator for this class
      private static class MyClassComparator implements Comparator
        compare (Object cand1, Object cand2)
          // Verify comparability; this will also allow subclasses.
          if ((cand1 !instanceof MyObject) || (cand2 !instanceof MyObject))
            throw new ClassCastException();
          // Compare. Less-than return -1
          if ((MyObject) cand1.value1 < (MyObject) cand2.value1))
            return -1;
          // Greater-than return 1
          else if ((MyObject) cand1.value1 > (MyObject) cand2.value1))
            return 1;
          // Equal-to return 0.
          else
            return 0;
    }then just pass MyObject.getComparator() (you don't need to create an instance) when you create the TreeSet.

  • Can't warp pasted AI vector Smart Object using Free Transform in PS CS6

    Hi
    I pasted a vector object into PS CS6 (13.0.1 x32) today directly from Illustrator CS6 (16.0.1 x32), and selected "Paste as Smart Object" (Windows XP Pro SP3).
    I then tried to warp the pasted object using the Free Transform tool by dragging one of the corner handles with CTRL held down (Windows).
    This usually warps\distorts the object, but instead, this launched a skew operation.
    If I paste as Shape Layer or as Pixels then apply Free Transform, <Ctrl + corner handle drag> performs a warp\distort operation.
    Also, if I rasterise the pasted AI object, and then convert to a Smart Object I can warp\distort.
    Is it not possible to paste an Illustrator vector in as a Smart Object, and then warp\distort it directly using this technique?
    Thanks for your help.
    Richard

    Your right in that on a pasted vector smart one can't warp, distort or perform perspective transforms.
    One workaround would be to right click on the vector smart object layer in the layers panel and
    choose convert to smart object.
    It depends on what your object is, but you'd probably get better quality from a pasted shape or path, but then you won't be able to open the object
    back in illustrator from photoshop.

  • Memory leaks in C++(OCCI ) for OTT generated C++ mapping objects with Oracl

    Our application is in C++ which interfaces with Oracle 10g database using OCCI. The mapping objects are created using OTT. The type of these mappisng objects in PersistentObject. Our development machine(Solaris 8) and database machine are different. So we have installed the "instantclient-basiclite-solaris6432-10.2.0.3-20070101.zip" to use OTT and OCCI on development machine. We are running purify in our application, Purify is reporting memory leaks on these OTT generated POObjects (type used is transient Objects), despite the fact that we are deleting these objects appropriately. .

    Since OTT generated code uses the STL data structures vector list etc.
    STL are not standard across platforms and hence you can ignore these warnings.

  • Create another object using the same container generated by a split...

    Hi SapGears!
    I'm facing a problem about creating an object using a splited container.
    I split the container A in containers A1 and A2 and create alv in A1 and html in A1.
    After that, i need to create a toolbar buttons using the class cl_gui_toolbar in A2 without need to recreate all again.
    I Try to call method free( ) and recreate the object, but the container A2 appears in blank.
    any help will be very nice!!!

    I would try different solution. Split A2 into two new rows B1 and B2. In B1 set your toolbar, in B2 your alv. By default set B1 cell hidden
    "suppress splitter bar
    CALL METHOD gr_splitter_cont->set_row_sash
        EXPORTING
          id    = 1
          type  = gr_splitter_cont->type_movable
          value = gr_splitter_cont->false.
    "show only alv in entire cell
      CALL METHOD gr_splitter_cont->set_row_height( id = 1 height = 1000 ).
    Now when you request for toolbar display only that cell
        CALL METHOD gr_splitter_cont->set_row_height( id = 1 height = 0 ).
    A kind of workaround but you will avoid much troubles.
    Regards
    Marcin

  • Is it possible to export Vector Smart Objects as vector SVG files from Photoshop CC 2014?

    I have Vector Smart Objects copied from Illustrator and pasted into Photoshop. I would like to export them as vector SVG files (using Generator or Extract Assets). I can add the .svg extension to the layer and actually export an SVG just fine. The problem is any SVG I have exported have all been raster images. It defeats the purpose of having that as an option as far as I'm concerned.
    I remember watching and listening to keynotes and other speakers at Adobe MAX 2014 who said it was so powerful and amazing to create SVG files from Photoshop. If we're still exporting raster SVG files from Photoshop...that's not very impressive or exciting--especially since this era of modern web development benefits greatly from using vector SVG files.
    I understand that Shape Layers can be exported as vector SVG files but that seems very limiting. I also realize that users can create some impressive vectors in Photoshop, but that is not optimal. Illustrator is a better tool for creating vectors and I normally use Photoshop and Illustrator side-by-side. I know that vector SVG files can be exported from Illustrator but that isn't as user friendly and convenient as utilizing Photoshop > Generator > Reflow.
    My idea was to create my assets in Illustrator, paste them into Photoshop as Vector Smart Objects, set up my layout, and then use the Generator/Reflow method or Extract Assets to get a new web design started.
    Maybe I misunderstood what the speakers at Adobe MAX had said. Perhaps it's just user error and I'm just missing something simple (it happens).
    Photoshop CC 2014 notes the following under Help > System Info:
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Any help or suggestions would be greatly appreciated! Thank you in advance for your time.

    Not quite the same, but have a look at the new Libraries feature that came with 2014.2.2  I just tried it, and dragging a vector object into a library I created in Photoshop, was there in Illustrator.  This happens without having to close and reopen Illustrator.  Just use the drop down at the top of the Libraries panel (in Illustrator) to find your custom, or job specific library.

  • Copying AICC vector smart objects to PSCC

    We just upgraded from CS6 to CC (yes I know we're a little behind the times). Our workflow relies on copy a lot of graphics from Illustrator into Photoshop as Vector Smart Objects. In CS when I copied an object to the clipboard and went to PS to open a new doc, it defaulted to RGB at 72dpi. If I changed it to 300dpi, clicked OK, closed the file and hit Cmd-N again, I would get a 300dpi document at the same dimensions as the object I copied from AI.
    This is not the case in CC. Hitting Cmd-N over and over just keeps generating a 72dpi RGB file.
    Sean

    I don't know - but what you describe is the clipboard overriding the last used settings in the new document dialog. So there is something on the clipboard that says it is 72 dpi.  Possibly Illustrator is placing a raster version of the artwork on the clipboard?

  • Can Designer generate ADF Entity Objects, View Objects and Apps Module ?

    Hi all,
    On what way can Designer integrate with JDeveloper (+ ADF) ?
    Can Designer generate ADF Entity Objects, View Objects and Apps Module ?
    Thank you for your help,
    xtanto

    Designer itself has no direct integration with JDeveloper. However, there are three options. First of all, you can get a JDeveloper extension (download this separately) that lets you create a Connection to a Designer repository. From that Connection you can find modules that you defined in Designer and generate Entity and View objects for the tables and columns that you used in those modules, and an Application Module. It does not create JSPs or other user interface objects.
    Another option is to buy JHeadstart from Oracle. This contains a set of code generators and ADF extensions that include an ability to get information from a Designer repository. JHeadstart works fine for non-Designer users too, but was built by the same people who wrote Designer Headstart - they know the repository API intimately.
    The third option is to download Oracle Designer Extension Builder (ODEB) which was just recently made available. This is a product of a collaboration between Designer users from the Oracle Development Tools Users Group (ODTUG) and Oracle to extend the capabilities of Designer with user written tools and utilities. You could use ODEB to write your own generators for ADF Business Components. Or you could wait and see if someone else in the user community does this. I hope that you or whoever does such a generator will be willing to share it with us all.

  • Error while generating the Business Object in Mobile Sales

    Hi,
    I made changes to the Business Object BOCAPGEN.
    Now I am trying to generate the business object but it is giving out the error saying
    Error intializing RT Generator !.RT Generator Failed for ".Error arsrep.dat is in use so Generation cannot be done
    I am not a MSA Developer and have no clue regarding MAS(Mobile Application Studio)
    So any one can please give me a clue regarding the issue
    I have solved it by closng all other application other than client console
    Thanks Guys
    Message was edited by: zack taylor

    Hi !
    1 year later, I am facing the same problem.
    I want to build MSA 4.0 SP8, everything runs fines until the end of the generation of the Tiles, the next step fails :
    Error intializing RT Generator !.RT Generator Failed for ".Error arsrep.dat is in use so Generation cannot be done
    Then around 10 thousands of error messages of that kind follow in the output window ; howeverin the end it says "Generation End" without telling whether it was successful or not (the first time the output window was too small, I thought all was OK )
    Anyways, the Mobile Sales icon appeared on the desktop and when I try to launch it I get the error "Starting MobileSalesfailed".
    During another attempt, I check with "Unlocker" the 2 arsrep.dat files I found under the BOL directory, it reported that none was used and locked at that moment.
    Also I killed the vbagen.exe process before starting the build, but it was automatically launched after. (first build was launched after a reboot, the 2nd after the 1st failed + vbagen.exe process killed)
    Does anyone have any clue ?
    Another question is : what are the rights required ? I am a local administrator but I do not have full admin rights (the only thing I saw at the moment is I cannot access to Add/Delete Programs in the Control Panel)
    Thanks & Regards,
    François
    -edit-
    thanks to the one who moved it to the right forum
    Message was edited by:
            Francois Feugier

  • How to copy objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution?

    I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
    Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
    Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
    Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
    Thanks!

    ghotiz wrote:
    copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
    Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog.

  • Problem with a Vector of objects.

    I have a vectore that contains GItems, it needs to be traversed everytime paintComponent() is called.
    GItem stores the start point, end point and drawing mode (line, rect, circle, etc).
    These GItems are added to the Vector on MouseReleased using items.addElement(new GItem(sPoint, ePoint, mode))
    However, when they are called by paintComponent, they all have the same value as the last line drawn ????
    Heres my paintComponent, maybe you could spot my bug?
    public void paintComponent(Graphics g)  {
         GItem gi;
         Point p1, p2;
         super.paintComponent(g);
         for (int i=0;i<items.size();i++)  {  //items is my Vector
         gi = (GItem)items.elementAt(i);
         p1 = gi.start;
         p2 = g1.end;
         g.drawLine(p1.x, p1.y, p2.x, p2.y)
         g.drawline(sPoint.x, sPoint.y, ePoint.x, ePoint.y);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thats a good point //excuse the pun
    i'll try setting the mode values to see if new GItems are being created,
    if they are, then the point values must all be referencing the same object
    in which case ePoint.clone() should solve the problem
    Thanks

  • PS opens vector smart object all pixilated

    I have this problem when using graphics from Illustrator as vector smart objects in Photoshop. I have followed tones of heated discussions on this but I haven't got any further. So here is what I do following the steps on the PS help: I copy graphics in AI and paste them in PS as smart object. A layer will be added that even has the name vector smart object but the graphic itself is all pixilated. Now the size of my PS-file is 150X150 Pixels with a resolution of 300. I need this size because I want to implement the file into my website and the layout requires this size for all my graphics. I would say it doesn't matter much what size the file is anyway since according to the PS help whatever vector smart object I place in Photoshop it won't change image quality when transformed. Therefor I'd say that not even the small file should be a problem here. But obviously there is something not working... because even when, to compare, I paste the graphic as pixel it shows the same result. Strange enough that I have used this vector smart objects before and it worked just fine... So I tried to paste the graphic in different ways, saving it as pdf in AI and then placing it in PS, insert it directly as smart object, making sure the file handling and clipboard references are adjusted, and finally after no success trashing the preferences in both applications. Still not closer to a satisfying result. I attach the graphics (first the AI graphic, then the vector smart object from PS) to show the difference and maybe there is someone out there that can tell what I am doing wrong. By the way I just converted the files to jpegs to post them here so the sizes might not match on the screen...

    One other thing to check...
    Are you viewing the display at 100%?
    Photoshop's OpenGL-based image resizing algorithms are smoother and fuzzier than they used to be (or than they are with OpenGL disabled).  What I'm getting at is that you may be perceiving fuzziness in the display that's not really there in the image.
    How does the fuzziness look if you zoom in a lot?
    -Noel

  • Keynote 6.0 vector smart object conversion to Photoshop CS6

    Hi,
    I upgraded to OS 10.9 and Keynote 6.0. In the previous version of Keynote, I was able to easily paste Keynote content (words, shapes, charts) into Photoshop CS6 & Illustrator CS6 as vector objects, of which the elements could be independently manipulated by releasing the clipping mask.
    However, with Keynote 6.0, it appears the content mentioned above pastes into CS6 software as .tiff files with no option to convert to a vector smart object?  Is there a way to force a vector object placement or does this new Keynote version no allow (and if so why eliminate such a convenient function as vector smart objects)?
    Thanks for the help...

    Hello  thanks for your answers,
    i posted this when i was upset because it was a very frustrating situation. I create Vector art in Illustrator and most of the times i just copy and paste them into Photoshop. I dont use Illustrator Cs6 because some Issues with the color Picker and because i Use Scriptographer alot. So i use Photoshop CS6 and Illustrator CS 5.
    Somehow recently i noticed this strange behaviour. When i close Illustrator completely and doubleclick the Layer in Photoshop it works fine.

  • Name TCURC is not in the namespace for generated BI meta objects

    Hi,
    When I try to load data into infocube, I get a short dump during the DTP load with the below message
    UNCAUGHT_EXCEPTION
    Exception: CX_RSR_X_MESSAGE
    Upon analysing the dump analysis I found the below system fields
    SY-MSGTY E
    SY-MSGID R7
    SY-MSGNO 019
    SY-MSGV1 TCURC
    which gives the message text "Name TCURC is not in the namespace for generated BI meta objects"
    If I remove the mapping with Amount KF in the TRFN and load data it works fine without error but on mapping the KF with currency unit I get this error.It is something related to Currency but I'm unable to figure out the problem.
    Any suggestions on what could be the problem?
    Thanks.

    Is this the real error?
    Please, can you check the currency conversion with the function module CONVERT_TO_LOCAL_CURRENCY?
    Have you customize the currency-tables? Use the functions RSA1 -> source system -> context menu -> global settings + exchange rate
    Sven

  • Flv player is opening vector smart objects instead of illustrator.

    How do I re-associate vector smart objects in Photoshop to open in Illustrator as they did before the update?

    Editing smart objectrs uses the system wide associations, not the ones from Bridge, so you need to adjust that for the *.ai file type.
    Mylenium

Maybe you are looking for