Auto generate CRUD packages for tables

Hi there
Is there any tool which can auto generate select/insert/update/delete packaged procedures in PL/SQL? I know that JPublisher can then create Java wrapper classes based on these packages, but it seems that the first step wouln't be that hard to implement. In fact, maybe I'll od it myself if nobody did it so far...

Hi SQL nevigator has this fecility. you can get the crud matrix using following menu option.
EDIT -> Insert ->Crud MAtrix
Regards

Similar Messages

  • Using oracle db sequence for auto generating of PKs for CMP entity beans

    Hi,
    I have read quite a number of threads about (auto) generation of keys for primary keys for the CMP entity beans.
    My requirement is I am migrating an application deployed on Weblogic to oc4j. The application is using cmp entity beans with auto key generation using a sequence in the Oracle db. This is specified in weblogic-cmp-rdbms-jar.xml file like below:
    <automatic-key-generation>
    <generator-type>Oracle</generator-type>
    <generator-name>REPUSER.DEPT_REPORT_SEQ</generator-name>
    <key-cache-size>1</key-cache-size>
    </automatic-key-generation>
    In the ejb-jar.xml, it is specified as:
    <prim-key-class>java.lang.Integer</prim-key-class>
    <primkey-field>id</primkey-field>
    Now, I need to migrate this to oc4j. Can somebody suggest me options and clarify my questions kindly?
    1) I have read articles that say that in the ejb-jar.xml, we need to specify <prim-key-class>java.lang.Object</prim-key-class> and this will create a column called 'autoid' in the respective entity table in the Oracle db.
    - How can I use this to assign the value to my primary field, say, id?
    2) Now, with the latest oc4j, can I use Oracle database sequence as the key generator for the values of the PKs just by specifying in the xml descriptor ejb-jar.xml?
    2.a) If yes, is there any article that explains with the code?
    2.b) If no, what are the alternatives I have?
    I have read many discussions that say that we can create a stateless session bean that can lookup the database sequence using simple JDBC call to return the nextval of the sequence. The SSB should be called in the ejbCreate() of the entity bean.
    My related question is, what is recommended for oc4j? What are limitations of the various options for the latest oc4j available?
    How should I go about deploying this kind of ejbs in oc4j?
    Any help and pointers are welcome. Please help.
    Thanks a lot.
    Vadi

    Hello ,
    Instead of exposing a get/set method for each arribute of your bean (corresponding to database table) expose only one object.
    For example
    public class CustomerBean implements javax.ejb.EntityBean{
    private CustomerVO objCustomer;
    private String customerName;
    private String customerMail;
    private String customerType;
    public CustomerVO getCustomer(){
    return this.objCustomer;
    public void setCustomer(CustomerVO objCustomer){
    this.objCustomer = objCustomer;
    public void ejbStore(){
    customerName = objCustomer.getName();
    customerMail = objCustomer.getMail();
    customerType = objCustomer.getType();
    HTH
    VJ

  • Generated RoboHelp Packager for Adobe Air Errors

    Generated RH 8 to AIR 2 help yesterday and it is working. Now I want to package the AIR file
    for deployment using the RoboHelp Packager for Adobe AIR utility. My Finish Dialog box displays" The Adobe AIR package was not generated".
    The 1st grouping of errors are: Error(DirAssist&GreenPub_Icon.Bmp): The file names should not contain '&'.
    I had taken the '&' out of the .bmp name before generating the file.
    2nd grouping of errors are: Warning (Acct_Password_Auth.bmp): Adobe AIR 1.0 cannot render BMP image format in HTML. Hence it is converted to png.
    This is fine.
    3rd grouping of errors are: Warning (Back_Office_Management\Billing\About_BIlling_Processes.htm): Adobe AIR 1.0 does not support DHTML Effects and Triggers in HTML.
    This one worries me. I have DHTML effects all over the help file.
    Michelle

    Quite. RH8 creates the AIR file for you. The packager was for RH7.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to retrieve an auto generated id in a table, urgent, please have a look

    say I insert an empty row in a table, say I have 3 columns which are ID, name, address.
    ID is an auto incremental column, so if I insert an row with no name and no address the system still will generate an unique ID for me, so I can't use method like select ID where name = xxx and address = xxx tp get the ID. I wonder what is the best way to retrieve that ID that system just generated ?
    I hope I make this question clear...
    thanks

    check if the method getGeneratedKeys for java.sql.statement is supported by your database driver.
    If not you might be able to run another sql specific to your DB to get the generated keys
    Hope this helps

  • How to change the auto generated thumbnail images for a clip?

    When iMovie created all the thumbnails for my clips it got most of them right, but on some of them it has choosen a frame that doens't really represent that clip.
    Is there any way to change the poster frame for each clip?

    Hi,
         Afte uploaded record it create internal number (Personal ID), and it get stored in table MESSTAB. And that internal number is stored in field MESSTAB-MSGV1. Use this MESSTAB-MSGV1 field for the further use.
    Hope, it will help you.
    Thanks & Regads,
    Poonam.

  • Generating mixed case for table and column names

    I trying to get table definition from Oracle 9i database into my toplink workbench
    (version 9.0.3), the column names and table names are capitilized by
    default, how do I change this to be mixed case? Thanks

    I'm not sure why you want them changed. The Oracle database by default is case insensitive, which in essence means it converts everything to upper case when a case is not specified (which can be done by wrapping it in quotes). Unfortunately, Java strings are case sensitive. This means that if you try searching resultsets for "TableName" when the database driver is returning "TABLENAME", you will run into problems. It is probably better to have your project match your database as closely as possible to avoid any issues later on.
    That said, I don't know of a way to automatically have the workbench use mixed case names - it uses the strings as they are returned from the database. I believe you will need to manually change the table names if you want them to be different than what you have imported.
    Best Regards,
    Chris

  • Generate app package for third party

    Hi,
    I am developing a Windows Phone Store app for my customers.
    I can't use the Visual Studio wizard because I don't know the credentials of their account
    How can I create the app package to let them to upload it into their dashboard store.
    Thanks so much.

    http://blogs.msdn.com/b/thunbrynt/archive/2014/04/25/windows-phone-8-1-for-developers-app-packaging-with-appx.aspx
    Bret Bentzinger (MSFT) @awehellyeah

  • Translate field name using auto-generated xlf resource for a view

    Hi,
       as i already know a resource file (xlf), is automatically generated for each view, message pool, etc. But textAccessor seems to work only for messages in the message pool. What if i want to translate the name of a field in a view? Do i have to repeat it's name and translation in the message pool in order to show the field's name correctly translated?
        The problem arose when i was trying to display an error message bound to an input field trying to append the field's name in the current language.
    Greetings
    Nicolás

    Hi Nicolas,
    For your WD views you are getting separate XLF files wich contains localizable text. So, if you have view with name ViewCV you will get ViewCV.wdview.xlf. Copy it with name ViewCV.wdview_de.xlf (german example), open in NWDS and change all UI text elements.
    Best regards, Maksim Rashchynski.

  • Is Auto-refresh feature available for tables in web dyn pro???

    Hello Experts,
    I have a requirement as explained below..
    There is a table which has few rows, which are populated on launch of a particular screen..now table needs to be refreshed without reloading of page or press of a button (i.e without any user action)..
    is there any fearure in Web dyn pro which facilitates this requirement???
    Thanks in advance..
    thanks & Regards,
    Hampanna Kamatar

    Hi Hampanna,
    I guess you can use the TimerTrigger. This will be useful in your case.
    The TimedTrigger UI element is used to execute a controller action periodically with a defined delay.
    TimedTrigger is currently invisible (like InvisibleElement), thus it ignores both its tooltip and its visibility. Nevertheless it occupies a cell in certain layouts like MatrixLayout. To use a timed trigger, you have to assign an action to the onAction event and set the delay property to the desired delay in seconds.
    There are several ways to turn off a timed trigger. The most convenient way is to disable the assigned action (like you would do with a button). Other possibilities are setting the delay to 0 or disabling the timed trigger like any other UI element.
    Caution: Triggering the action rudely interrupts user interactions!
    So what you can do is asign a action and write the code to reload teh data in that action. Set the delay you require in seconds. In case later you want to switch of the timer you can easily do that.
    Check these API:
    http://help.sap.com/javadocs/nwce/current/wdr/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDTimedTrigger.html
    I hope this will solve your issue.
    Thanks and Regards,
    Pravesh

  • Anyone know of a tool for auto generate EJB from DB

    Does anyone know of a tool that connects to a DB and auto generates EJBs from the table schema, either CMP or BMP. Perhaps allowing you some control over choosing the table, pk, etc.
    THANKS

    Visual Age for Java (IBM)
    Websphere Studio Application Developer (IBM)
    I think JBuilder has this option now. Is JBuilder still free?

  • How to create or generate sample / test data (mass data for tables) ?

    Hello,
    I'm playing around a little with some SQL-functions, but actually I have only a small number of rows in my sample table and I would like to have "big, filled tables". :-)
    Is there an easy way to generate mass data for tables, e.g. for testing the performance of SQL-statements when a table is full of data.
    For example:
    How can I generate lets say 50.000 or 100.000 rows into a table with two columns? Is there a ready-to-use command to generate this mass of data?
    How do you create random data for testing?
    Thanks a lot in advance for your help!
    Best regards
    FireFighter

    First, thanks for the quick and great answer! It looks exactly what I'm looking for. How could I forget to look at Tom's site for such a script. ;-)
    But.....
    ...unfortunately, it doesn't seem to work. :-( And since I'm not so experienced in PL/SQL until now (looking forward to a course end of year...) I don't know what the error is. Is it not meant to use within 10g ??
    So, here is what i do:
    1. Log in to SQL*plus and generate the procedure with "@gen_data.sql"
    2. Then I try to execute the procedure by using "exec gen_data('mytesttable',500);"
    Then I get the following error output:
    SQL*plus> exec gen_data( 'mytable', 50 );
    BEGIN gen_data( 'mytable', 50 ); END;
    ERROR at line 1:
    ORA-00936: missing expression
    ORA-06512: at "SYS.GEN_DATA", line 34
    ORA-06512: at line 1
    And here is the code that I have used:
    01 create or replace procedure gen_data( p_tname in varchar2, p_records in number )
    02 authid current_user
    03 as
    04 l_insert long;
    05 l_rows number default 0;
    06 begin
    07
    08 dbms_application_info.set_client_info( 'gen_data ' || p_tname );
    09 l_insert := 'insert /*+ append */ into ' || p_tname ||
    10 ' select ';
    11
    12 for x in ( select data_type, data_length,
    13 nvl(rpad( '9',data_precision,'9')/power(10,data_scale),9999999999) maxval
    14 from user_tab_columns
    15 where table_name = upper(p_tname)
    16 order by column_id )
    17 loop
    18 if ( x.data_type in ('NUMBER', 'FLOAT' ))
    19 then
    20 l_insert := l_insert || 'dbms_random.value(1,' || x.maxval || '),';
    21 elsif ( x.data_type = 'DATE' )
    22 then
    23 l_insert := l_insert ||
    24 'sysdate+dbms_random.value+dbms_random.value(1,1000),';
    25 else
    26 l_insert := l_insert || 'dbms_random.string(''A'',' ||
    27 x.data_length || '),';
    28 end if;
    29 end loop;
    30 l_insert := rtrim(l_insert,',') ||
    31 ' from all_objects where rownum <= :n';
    32
    33 loop
    34 execute immediate l_insert using p_records - l_rows;
    35 l_rows := l_rows + sql%rowcount;
    36 commit;
    37 dbms_application_info.set_module
    38 ( l_rows || ' rows of ' || p_records, '' );
    39 exit when ( l_rows >= p_records );
    40 end loop;
    41 end;
    42 /
    Does anybody know what my error i have in here?
    Thanks again for you help in advance!
    Rgds
    FF
    Message was edited by:
    FireFighter

  • Auto number generation in custom table

    Hi,
    Is it possible to auto generate number in custom table. My requirement is to generate the number once anyone makes entry in the table. I guess there is a way to put code in tables but I have no clue how that can be acheived. If anyone has such kind of experince please share with me.
    Regards
    Ria

    Hi Ria Sen,
    Please follow the steps as below,
    1. Use Select single Max Query to select the latest maximum number
    2. Check <variable> is initial or not.
    3.if variable is initial assign the number which will start from your number range.
    4.else increment the variable values by 1 and update the new range values.
    Ex: Select Single Max ( Field for Number) from <table>
               into <variable>.
    if <variable> is initial .
    <variable> = 'Starting number from your range'.
    else.
    <variable> = <variable> + 1.
    Please let me know if you have any issues.
    Regards,
    Gurunath Kumar D

  • Problems generating installation packages with Adobe Creative Cloud Packager

    Since friday, I have problems with generating installation Packages for our worldwide disribution.
    The download of allways different parts is canceled, so the creation of the hole package is canceled too

    Hi KwKn,
    Does it work on the machine on which you are creating the package?
    Do you have any security software running on the machine?
    Also I would request you to go through the below link.
    Creative Cloud Help | Packager
    Regards,
    Anand

  • Yaourt: Problems installing generated AUR packages [SOLVED]

    Hello.
    I'm using Archlinux and the system works flawessly. Sadly, there's a problem when trying to install AUR packages.
    The following happens installing any AUR package I tried lately.
    ==>  Continue installing wicked-git? [Y/n]
    ==>  [v]iew package contents [c]heck package with namcap
    ==>   ----------------------------------------------
    ==>y
    loading package data...
    error: './wicked-git-20090112-1-i686.pkg.tar.gz': cannot open package file
    ==> WARNING: Your package is saved in /tmp/yaourt-tmp-timofonic/wicked-git-20090112-1-i686.pkg.tar.gz
    cp: cannot stat `./wicked-git-20090112-1-i686.pkg.tar.gz': No such file or directory
    ==> WARNING: Unable to copy wicked-git-1-i686.pkg.tar.gz to /tmp/yaourt-tmp-timofonic/ directory
    Any idea about how to fix it? I tried using both an user with sudo and root, same problem.
    Regards.
    Last edited by timofonic (2009-07-14 19:52:53)

    lilsirecho wrote:
    Perhaps the method to use is given by the man pacman files.
    pacman -U (.pkg.tar.gz package ID found in the directory generating the package)
    For example:  ...pacman -U /var/local/kernel26-2.6.30-5-x86-64.pkg.tar.gz......since the pkg generated is in that directory for this theoretical case.
    Any locally generated package is loaded with ...pacman -U....
    What do you mean? The package doesn't exist, I double checked it.
    Maybe I need to check where yaourt writes it. Any suggestion about what util to use for that?
    EDIT: I used "lsof" command and found the file is there, but yaourt can't locate it and deletes the directory after
    $ ls /tmp/yaourt-tmp-root/aur-wicked-git/wicked-git/w*
    /tmp/yaourt-tmp-root/aur-wicked-git/wicked-git/wicked-git-20090708-1-i686.pkg.tar.gz
    /tmp/yaourt-tmp-root/aur-wicked-git/wicked-git/wicked-git-20090709-1-i686.pkg.tar.gz
    Please, could anyone help me to solve this problem?
    Last edited by timofonic (2009-07-09 22:08:47)

  • Generate "Drop-Statements" for DB-Objects

    Hi,
    is it possible to generate drop statements for the different DB-Objects?
    Most of the time when I generate DDL - Statements for Tables and Sequences I need a drop statement for this object to recreate.
    And is it possible to supress the schema-name?
    CREATE TABLE "SCHEMA"."TABLE"
    Regards, Juergen
    Message was edited by:
    Juergen.Schuster
    Message was edited by:
    Juergen.Schuster

    I apologize. I had interpreted the first posting in the thread differently than you. I had read "Most of the time when I generate DDL - Statements for Tables and Sequences I need a drop statement for this object to recreate" to mean that when the user generates the DDL for a table or sequence include a DROP statement prior to the CREATE statement. If these were automatically generated and the user accidentally ran the script, they may lose data in the table or the value of the sequence. That is why I was suggesting that the DROP statement generation be configurable when DDL for a table is generated.
    My mistake,
    Mike

Maybe you are looking for

  • Client Eventing Problem with URL Iview

    Hi, I am new to EP and have a basic client eventing question. We are trying to integrate a URL Iview from a partner product with a standard Iview downloaded from Iviewstudio. This standard Iview is capable of handling client events from other Iviews

  • Problem: Canon Pixma MG 3550 and OS X Yosemite

    Hi I have recently updated to Yosemite 10.10 and I can't reinstall my Canon Pixma MG 3550 Printer. I have tried downloading all software from the Canon website, but my Macbook can never find the printer when trying to install it. I printed the printe

  • Trojan Virus from Song Lyrics?

    So I went to look up song lyrics and an ad popped up.  I clicked the "X" in the corner and suddenly it opened up a new tab with a Safari window telling me that my "PC" had caught a trojan virus that could access my log-in information (I'm using a Mac

  • E17 - problem compiling [SOLVED]

    HI, I'm using the easy_17.sh script to compile e17 on a fresh install of Arch.  For almost every program I getthe following; EASY_E17 CMD: ./autogen.sh --prefix=/opt/e17  Running aclocal... Running autoheader... Running libtoolize... Running automake

  • Ims 5.2 patch2 local delivery problem when internet link is down

    Hello, I have a ims 5.2 p2 server configured for direct LDAP and Symantec gateway 3.0.0. I don't know why my server is unable to deliver local emails to exiting LDAP users when my internet connection is down. I have as bellow two channels tcp_scan fo