Cmp 2.0 how to purge all data

Hi,
if we want to purge/delete data, based on like date, ID, and there are like 100 tables, how can I implement this?
I mean I'll have to call 100 ejbs and 100 times find and remove?
any idea will be appreciated.
Thanks
John
Toronto

You can use the bulk update feature of the Java Persistence Query Language.
For example
DELETE FROM Customer c WHERE c.status = �inactive�
Please see section 4.11 of the spec for more details

Similar Messages

  • How to get all data from nokia to i5s

    how to get all data from nokia E71 to i5s???

    if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.

  • Me and my partner are currently using the same apple id and have no space left on our devices. We are currently waiting on the iphone 6 plus to arrive and don't know how to transfer all data to the new phones.

    Me and my partner are currently using the same apple id and have no space left on our devices. We are currently waiting on the iphone 6 plus to arrive and don't know how to transfer all data to the new phones.?

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • How to erase all data on macbook pro and reinstall operating system

    how to erase all data on macbook pro and reinstall operating system

    OS X Snow Leopard
    https://support.apple.com/en-us/HT3910
    http://www.thesafemac.com/how-to-reinstall-mac-os-x-from-scratch/
    OS X Yosemite
    https://support.apple.com/kb/PH18869?locale=en_US&viewlocale=en_US
    Best.

  • How to retrieve all datas that lost when i update my iphone4 to that 6.10 ios. i tried to look at may i tunes in my computer but it seems that i forgot to perform back ups since i purchased this phone 2yirs ago.. pls send me an advice..thank u.

    how to retrieve all datas that lost when i update my iphone4 to that 6.10 ios. i tried to look at may i tunes in my computer but it seems that i forgot to perform back ups since i purchased this phone 2yirs ago.. pls send me an advice..thank u.

    All of the data should be on your computer, simply sync it back.
    If the update was done via iTunes on the computer, the first step in the process is a backup of the device.

  • How to erase all datas and reset default

    How to erase all datas and factory reset in iMac

    Boot into the Recovery HD (restart holding down Command+r). Launch Disk Utility and erase the drive (all data will be gone forever so make sure you have a reliable copy of any valuable data). Quit out of Disk Utility when formatting is complete and select re-install OS X (you'll need an Internet connection).
    Fuller details here: http://support.apple.com/kb/ph11273

  • How to download all data (music.contacts,apps) from iPhone to a new PC ?

    How to download all data (music.contacts,apps) from iPhone to a new PC ?
    I mean to say that I downloaded mp3 songs from websites (not from iTunes) which I synced in my iPhone 4 using ''Manaually Manage Music''.
    Now I am in my homecountry for vacations and don't have the laptop in which my iTune library is synced and I need to add more songs to my iPhone but when I put more songs to my iPhone it tells me that all current data from iPhone will be deleted.
    Please help!

    The iphone is not a backup device.  The music sync is one way - computer to iphone.  The only exception is itunes purchases.  Without syncing:  File>Transfer Purchases.
    " I need to add more songs to my iPhone but when I put more songs to my iPhone it tells me that all current data from iPhone will be deleted."
    That is correct.

  • Performance Manager - How to purge ALL metrics?

    Is there a way that I can purge all the metrics within Performance Manager without having to go and select one metric item at a time and purging it?

    Hi Gavin,
    Via DM, selecting individual metrics and purging them is the only way, and as per desribed in the post above.
    However, though not recommended at all, and should be done with extreme caution... You can truncate the CI_PROBE_VALUES table in the repository, but you will also need to update the CI_PROBE table by setting the refresh dates again. This process also entails stoping the AAxxx servers and restarting them after you truncated and updated the tables. Again CAUTION, but it can be done.
    Then, there is the other way using the PMDT tool. Again you need to understand how and what it is capable of. You will export all the assets to the XML files. Remove the universe(s) in the setup tab and add it again. Then import the XML files with the assets again into the repository. Remember, removing the universe(s) is as good as reseting the repository...
    Also, depending to what extent you are using EPM, choose these methods carefully. Else start clicking away and purging them individually...
    Regards
    Jacques

  • How to get all data from time maschine to windows pc?

    pls can somebody helps me, i lost my macbook and all data have on time maschine.................... need to get them out on windows pc, and second problem, downloaded itunes to windows but how i can get pictures and music from my ipod and iphone to itunes, thx for every help

    if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.

  • How to delete all data in all tables in one time ?!

    1 CREATE OR REPLACE PROCEDURE delete_all_data
    2 IS
    3 v_statement VARCHAR2 (200);
    4 BEGIN
    5 FOR i IN (SELECT *
    6 FROM user_tables)
    7 LOOP
    8 v_statement :=
    9 'delete table ' || i.table_name ;
    10 EXECUTE IMMEDIATE v_statement;
    11 END LOOP;
    12 commit;
    13* END;
    SQL> /
    Procedure created.
    SQL> exec delete_all_data
    BEGIN delete_all_data; END;
    ERROR at line 1:
    ORA-00903: invalid table name
    ORA-06512: at "DE2.DELETE_ALL_DATA", line 10
    ORA-06512: at line 1
    I made the previous code , but it's didn't work with me .... any help for this problem please ?!
    I'm just reminder ..... all what I need ,that delete all data in all tables in one time only .
    I'm waiting for the answer ..... and thanks in advance

    create or replace
    FUNCTION TRUNC_SCHEMA RETURN NUMBER AS
    CURSOR select_table IS SELECT TABLE_NAME AS TNAME FROM USER_TABLES ORDER BY 1;
    sTableName Varchar2(128);
    sUser Varchar2(128);
    sConstraintName Varchar2(128);
    plsql_block Varchar2(512);
    BEGIN
    SELECT USER INTO sUser FROM DUAL;
    IF ((sUser='SYSTEM') OR (sUser='SYS')) THEN
    RETURN 1;
    END IF;
    EXECUTE IMMEDIATE 'PURGE RECYCLEBIN';
    -- DISABLE table's constraints
    FOR C1 IN (select CONSTRAINT_NAME, TABLE_NAME from user_constraints where STATUS = 'ENABLED' AND CONSTRAINT_TYPE in ('P','R') ORDER BY R_CONSTRAINT_NAME) LOOP
    sConstraintName := C1.CONSTRAINT_NAME;
    sTableName := C1.TABLE_NAME;
    plsql_block := 'ALTER TABLE ' || sTableName || ' DISABLE CONSTRAINT ' || sConstraintName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    FOR D IN select_table LOOP
    --get table name
    sTableName := D.TNAME;
    -- clear table
    plsql_block := 'TRUNCATE TABLE ' || sTableName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    -- ENABLE table's constraints
    FOR C2 IN (select CONSTRAINT_NAME, TABLE_NAME from user_constraints where STATUS = 'DISABLED' AND CONSTRAINT_TYPE in ('P','R') ORDER BY R_CONSTRAINT_NAME desc) LOOP
    sConstraintName := C2.CONSTRAINT_NAME;
    sTableName := C2.TABLE_NAME;
    plsql_block := 'ALTER TABLE ' || sTableName || ' ENABLE CONSTRAINT ' || sConstraintName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    RETURN 0;
    EXCEPTION WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR: ' || SQLERRM);
    RETURN 1;
    END TRUNC_SCHEMA;
    /

  • How to print all data in a table?

    Hello!
      I am doing report with VC. Now I want to print data ,The system action "print" can not print all data,only a page in the table  can be printed. Are there any ways to finishe the print function,Can you help me?
    Thank you very much!

    See this how to guide I put together:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • How to get all data in a section from profile file?

    Suppose I have profile ini have a section like:
    [Mysection]
    k1 =v1
    k2=v2
    the key-value pair could be dynamically in this section. then I want to get all data in Mysection.  How can I get it in a loop for all in powerscript?

    This is what you need:
    integer     li_fhandle, li_rcode = 1, li_sfound = 0, li_idx = 0, li_eqpos, i
    string ls_filename = 'C:\app.ini'
    string ls_line, as_key[], as_val[]
    string ls_section = '[General]'
    // OPEN INI FILE
    li_fhandle = FileOpen(ls_filename, LineMode!)
    IF IsNull(li_fhandle) OR li_fhandle < 1 THEN
      // DO NOTHING
    ELSE
      DO WHILE li_rcode > 0
      li_rcode = FileRead(li_fhandle, ls_line)
      IF li_rcode > 0 THEN
      IF POS(ls_section, ls_line) > 0 THEN
      li_sfound = 1
      CONTINUE
      END IF
      IF li_sfound = 0 THEN CONTINUE
      IF POS(ls_line, '[') > 0 AND POS(ls_line, ']') > 0 THEN EXIT
      li_eqpos = POS(ls_line, '=')
      li_idx++
      as_key[li_idx] = MID(ls_line, 1, li_eqpos - 1)
      as_val[li_idx] = MID(ls_line, li_eqpos + 1)
      END IF
      LOOP
    END IF
    FOR i = 1 TO li_idx
      messagebox('Key - Value',as_key[i] + ' = ' + as_val[i])
    NEXT
    // CLOSE INI FILE
    IF li_fhandle > 0 THEN
       FileClose(li_fhandle)
    END IF
    Adapt it to your needs... you probably should make it a function.

  • How to Drop all data in a database?

    Hi There,
    I'm use to dropping all the objects in a database, however, how do I drop ONLY the DATA in the database? Is all data in the database stored in tables? Do I have to TRUNCATE all the tables in the database only? Thanks in advanced.
    J

    You can try to:
    1. disable foreign key constraints instead of dropping them.
    2. truncate all tables in any order
    3. enable foreign key constraints.
    Short example:
    SQL> truncate table parent;
    truncate table parent
    ERROR at line 1:
    ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    SQL> select constraint_name, table_name from user_constraints where r_constraint_name is not null;
    CONSTRAINT_NAME                TABLE_NAME
    SYS_C0011060                   CHILD
    JHIST_JOB_FK                   JOB_HISTORY
    JHIST_EMP_FK                   JOB_HISTORY
    JHIST_DEPT_FK                  JOB_HISTORY
    EMP_DEPT_FK                    EMPLOYEES
    EMP_JOB_FK                     EMPLOYEES
    EMP_MANAGER_FK                 EMPLOYEES
    DEPT_LOC_FK                    DEPARTMENTS
    DEPT_MGR_FK                    DEPARTMENTS
    LOC_C_ID_FK                    LOCATIONS
    COUNTR_REG_FK                  COUNTRIES
    11 rows selected.
    SQL> alter table child disable constraint sys_c0011060;
    Table altered.
    SQL> truncate table parent;
    Table truncated.
    SQL> truncate table child;
    Table truncated.
    SQL> alter table child enable constraint sys_c0011060;
    Table altered.
    SQL>

  • How to show all data when using more than one parameter?

    Hi All,
    I used a query like this to show the data in a report:
    select col1, col2 // col1 and col2 are columns of tabale tab1
    from tab1
    where
    tab1.col1 =
    (case when :P_COL1 IS NOT NULL then // :P_COL1 IS A USER PARAMETER TO EQUAL COL1
    :P_COL1 ELSE tab1.col1
    end)
    AND TAB1.COL3 =
    (case when :P_COL3 IS NOT NULL then // :P_COL3 IS A USER PARAMETER TO EQUAL COL3
    :P_COL3 ELSE tab1.col3
    end)
    The problem is when I run the report with paramters values or not, It shows the data which is not null for both col1 and col3.
    That is when the value of col1 or col3 is null the report would not return that record!
    I want the report to show all data not only values which is not null!
    How to do this?

    Rainer,
    That where clause will fail when col1 in the table is null and the parameter has the dummy value. Consider the following:
    variable p_col1 varchar2
    exec :p_col1 := 'yourdummyvalue';
    select
    from
         select 'yourdummyvalue' col1 from dual
         union all
         select 'other' from dual
         union all
         select null from dual
         union all
         select 'X' from dual
    ) tab1
    where nvl(tab1.col1,'yourdummyvalue') = nvl(nvl(:p_col1,tab1.col1),'yourdummyvalue')In this case, the query returns the row with null and the row with 'yourdummyvalue', where only the row with 'yourdummyvalue' should be returned.
    You must do something like this:
    where ( :p_col1 is null or ( :p_col1 = tab1.col1 ) )That one is the simplest and does not need a dummy value. Here are some other more complicated examples:
    where nvl( :p_col1, 'yourdummyvalue' ) = decode( :p_col1, null, 'yourdummyvalue', tab1.col1 )or this:
    where nvl( :p_col1, 'yourdummyvalue' ) = nvl2( :p_col1, tab1.col1, 'yourdummyvalue' )In the last 2 cases, it will not matter if the dummy value exists in the data, but they are unnecessarily complex.
    Kurz

Maybe you are looking for

  • Animated GIF in Flash v. Fireworks

    Hi- I was told that I had to learn Fireworks to create an animated GIF because the animate gifs created through Flash are different. That doesn't make sense to me. Does it?

  • Error in asset assigned po(against advance)

    Dear friends we have an issue regarding asset assigned po,while we are giving Advance against a po there is an error Item category 07000 not allowed in accounting transaction 1000/0001 Message no. GLT2001 shakti end the entry is 001 50        0010300

  • IPod Touch applications no longer compatible? What is going on?

    What happened, all apps used to install into my ipod Touch which I installed on my iPhone 3g. Now slowly, an app at a time is starting to become incompatible and not allowing installation....although it can use the wifi. These are the apps. AirMe Eve

  • Attachments imbedding in emails when recieved in Entourage

    Why, when I send attachments of images or single page pdf's in Mail does it automatically open these files and imbe them in the email and stop them being an attachment (especially when sent to an email address opened in Entourage)?  I have tried righ

  • How to download video files with realplayer ?

    - Hello, i need some help with downloading video from this website: http://www.un.org/webcast/2009.html To see the video files require the realplayer, which i have installed. I have also Flip4Mac and Perian installed. When i click on the links, the r