How can I implement logical deletes?

Hello:
I understand that ejbRemove() will remove the actual row of data in the underlying table.
I would like to instead do a logical delete; there's a status flag that will be changed to reflect the fact that it was deleted.
Can somebody tell me how I can implement this logical delete in a CMP-driven EJB?
Thanks.
venki

You can update the status field by having a home business method if you want
to update the status of many entities that can be deleted. If its only one
entity then you may want to expose update method from component interface .
Hope that helps.
<Venkat Venkataramanan> wrote in message
news:[email protected]..
Hello:
I understand that ejbRemove() will remove the actual row of data in the
underlying table.
I would like to instead do a logical delete; there's a status flag that
will be changed to reflect the fact that it was deleted.
Can somebody tell me how I can implement this logical delete in a
CMP-driven EJB?
Thanks.
venki

Similar Messages

  • Once PO is released against a PR, how can the PR be deleted or modified by

    Once PO is released against a PR, how can the PR be deleted or modified by the Requisitioner. Any / deletion of a PR,
    Note: Our Req No one Can PR delete if it have converted in po,

    hI,
    Note 521174 - ME52N: Deletion of a PReq despite PO
    Check this note is applicable or not at your end
    Summary
    Reason and Prerequisites
    You create a purchase requisition and a purchase order is generated from it. Afterwards, you change the purchase requisition by setting the deletion indicator. The system generates a warning message that a purchase order already exists for this purchase requisition. However, the deletion of such a purchase requisition should be prevented. Therefore, the system should generate the error message 06152.
    Other terms
    ME52, 06152.
    Reason and Prerequisites
    The warning message does not suffice.
    Solution
    After you implemented the correction, you can set set the message via Customizing. If you customize the message as an error message, a deletion is no longer possible. However, the message is not output as an error message in order to block a further processing of the purchase order. This only appears as an information message.
    Regards
    Kailas Ugale

  • How can I deauthorize Logic Pro 9?

    Hello!
    I'm going to sell my old MacBook Pro and buy a new one.
    How can I deauthorize Logic Pro 9 on the old computer and authorize on the new Mac?
    Thanks, Max )

    You don't..
    If you started with the DVD version of Logic Studio...You can simply delete the App on your old Mac and then reinstall via the DVDs on your new Mac  remembering to update to 9.1.8 as soon as the install is complete if you are running Mountain Lion or Mavericks on your New Mac...
    Note: Personally, I'd do a full reinstall of OS X on your old Mac using either the OS X DVDs that came with your old Mac or using the recovery partition if you have since installed Mountain Lion or Maverivcks.. on your old mac.. This effectively will revert your mac back to the state it was when you bought it... or to a completely clean OS X install...
    Or, if you bought the App Store version...  of LP9
    You delete the LP9 App from your old mac.. sign out of the App store on your old Mac....and that's it.
    Then on your new Mac, sign into the Mac App Store using the same Apple ID you used to purchase LP9 in the first place and then go to the purchases tab and you will find Logic Pro 9 ready and waiting for you to download and install using the install button under purchases.
    Note: Again, either way I'd do a full clean OS X install on your old Mac is possible as then none of your personal data will be left on your old mac prior to you selling it.

  • How can I install logic 9 on new mac 10.8

    how can I install logic 9 on new macBook pro 10.8?
    My Cd rom shows Logic 7 and on the old mashine (MacBook white 10.6) I have Logic pro 9.
    My MacBook pro 10.8 does't accept the Cd Rom...
    Regards
    Paul

    Kerrse,
    ...and it's content?
    While your method will get the app itself across.. the content will present a possible problem, though once it is updated to 9.1.8 the OP could try the "in menu' option to download content but the essential stuff normally gets installed from the DVDs initially with LP9 Boxed set... so it may not be as easy as simply copying across the app only.
    However, worth giving a try.....

  • How can i install logic pro on my macbook air

    How can i install logic pro on my macbook air?

    Welcome to the Apple Support Communities
    If you bought it in discs, buy the USB SuperDrive or use Remote Disc

  • How can I install logic pro 7.2 (made for power pc) on a brand new Macbook pro?

    How can I install logic pro 7.2 (made for power pc) on a brand new Macbook pro with OSX 10.7.4?
    This message appears: You can't open the aplication LogicPro.mpkg because power pc aplications are no longer compatible.
    Thanks folks

    You should be able to copy all the files from your old computer, although it might not work if the old machine didn't have an intel processor. When I got a new Mac a few months ago, I used the migration assistant to copy everything from my old computer's time machine backup disk. All my old pro apps, such as Final Cut Pro 6, work fine on the new machine under Lion.
    Later, I wanted to install Soundtrack pro and couldn't do it from the original disks. So I installed it on my old machine and copied the files. It worked perfectly.

  • How can I implement a comfirmation window when closing javafx application?

    hi,guys
    I'd like to add a confirmation window when user is closing my javafx application,if user click yes, I will close the application,if no ,I wouldn't close it ,how can I implement this function?
    primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
                   @Override
                   public void handle(WindowEvent arg0) {
                        try
                             //todo
                        catch(Exception ex)
                             System.out.print(ex.getMessage()+"\r\n");
            });

    Hi. Here is an example:
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.*;
    import javafx.scene.control.*;
    public class ModalDialog {
        public ModalDialog(final Stage stg) {
         final Stage stage = new Stage();          
            //Initialize the Stage with type of modal
            stage.initModality(Modality.APPLICATION_MODAL);
            //Set the owner of the Stage
            stage.initOwner(stg);
            Group group =  new Group();
            HBox hb = new HBox();
             hb.setSpacing(20);
            hb.setAlignment(Pos.CENTER);
            Label label = new Label("You are about to close \n your application: ");
            Button no  = new Button("No");
            no.setOnAction(new EventHandler<ActionEvent>() {
                public void handle(ActionEvent event) {
                       stage.hide();
            Button yes  = new Button("Yes");
            yes.setOnAction(new EventHandler<ActionEvent>() {
                public void handle(ActionEvent event) {
                       stg.close();
             hb.getChildren().addAll(yes, no);
             VBox vb =  new VBox();
             vb.setSpacing(20);
             vb.setAlignment(Pos.CENTER);
             vb.getChildren().addAll(label,hb);
            stage.setTitle("Closing ...");
            stage.setScene(new Scene( vb, 260, 110, Color.LIGHTCYAN));       
            stage.show();
    }Test:
       import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.*;
    * @author Shakir
    public class ModalTest extends Application {
         * @param args the command line arguments
        public static void main(String[] args) {
            Application.launch(ModalTest.class, args);
        @Override
        public void start(final Stage primaryStage) {
            primaryStage.setTitle("Hello World");
            Group root = new Group();
            Scene scene = new Scene(root, 300, 250, Color.LIGHTGREEN);
           primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
                   @Override
                   public void handle(WindowEvent arg0) {
                                    arg0.consume();
                        try
                         ModalDialog md = new ModalDialog(primaryStage);
                        catch(Exception ex)
                             System.out.print(ex.getMessage()+"\r\n");
            primaryStage.setScene(scene);
            primaryStage.show();
    }

  • How can I implement a real time datawarehouse

    Hi, I'm a little lost here but I want to know how can I implement a real time datawarehouse in sql server, I don't know if it is only to make the extraction process the shortest time possible.
    Thank you

    Hi Mega15, 
    I agree with everything Seif and Louw said, but I'd like to add that if you are using SQL Server 2012 or 2014 and you want to use DirectQuery or ROLAP mode (depending on what SSAS mode are you using, tabular or multidimensional) you may be interested on
    using columnar indexes on your base tables. 
    Analytical and aggregated queries will take GREAT advantage from these indexes, they will perform much better than with traditional B-Tree indexes in most of your scenarios. 
    Regards. 
    Pau.

  • How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO?

    How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO? It appears as if the Digital I/O modules for CompactRIO are much slower than this.
    Thank you,
    --Ray

    Hi Ray,
    The highest frequency input we offer for C Series modules is 20 MHz if you are doing LVTTL and 10 MHz for 5 V TTL.  These modules are the 9402 and 9401, respectively.  Unfortunately, there is no 80 MHz input on this form-factor.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Hello, How can I edit or delete a custom label in the contacts list on iOS 7.0.3 on iPhone 4S ?

    Hello, How can I edit or delete a custom label in the contacts list on iOS 7.0.3 on iPhone 4S ?
    i need it so muchhh!

    Sort of depend on what you are trying to do precisely. In Edit mode, if you tap on any label, you will be given a list of options, plus an Add Custom Label option near the bottom of the list

  • How can I edit or delete a custom label in the contacts list on iOS 7 on iPhone 4S ?

    How can I edit or delete a custom label in the contacts list on iOS 7 on iPhone 4S ?

    Alfre311 wrote:
    I've been trying to find a way to do this since I updated to IOS 7, and I've just found the solution/explanation, even tho is a bit heavy to carry out.
    IOS 6 creates custom labels and save them giving you the option to delete them.
    IOS 7 creates custom labels but don't save them, so there is no need to have the option to delete them.
    But here comes the problem, if you have some custom labes saved in you Iphone / Ipad with IOS 6 and you update it to IOS 7, the device will keep those labels saved, but you wont be able to delete them.
    I realized this by going to contacts on Icloud. There those labels that I had on my devices weren't there. So simply restoring your device and configuring it as a new one to later sync your Icloud Contacts, will solve the problem.
    I know this post is old, but I might just try this with iOS 8. I have outdated custom labels that annoy me, because I still seem them in the list as options. If I get desperate enough, I may try your solution.

  • How can I see my deleted messages on my icloud

    How can I see my deleted message and message from my icloud

    Huh? You can't. Once you delete something, well it's deleted.
    If you have a backup, that contains these deleted messages, you can restore from that backup, to restore them to your phone. If no backup, or your backup has been overwritten, then they are gone.

  • How can i recover the deleted photos on my Xperia S ?

    I deleted some photos carelessly a few days ago. Since i use the phone model is "Xperia S" which is use of interal storage hard disk (not have SD card select), i have tried use some of recovery software (like CardRecovery, Pandora Recovery) but since Xperia S connect the PC via USB only have Media Transfer Mode (MTP), the aforesaid software cannot detect my phone as an external driver and hence cannot recover any files. Please help me to solve this problem.

    How can i recover the deleted photos on my Xperia S ? I want to recover deleted  photos from my mobile for a particular number. All the  photos are deleted instantly and no threads were present on my mobile so I need to recover every  photos individually.Your experience is so similar with mine! I ever deleted a  photos sent by my GF, which is so meaningful for me. I was so regretful, then I was crazy to find solution to recover this sms from my phone. At last, I got a recommedation from a Android forum, it said that a data recovery software for Android can recover deleted  photoson my Xperia S , so I tried to download and use it. Awesome! It recover the sms! You can have a try:Follow the steps below to recover the deleted photos  on my Xperia S . Have a try. 1 Connect your Xperia S and enable USB debugging2 Analyze your Android phoneAfter the USB debugging, reconnect your phone if you are asked to disconnect it during the setting. Then can see the window below. Here you need to bear in mind that your phone's battery is more than 20% charged, and then you can click "Start" to let the program analyze your Android phone. 3 Scan your Android for deleted text photos4 Preview and recover photos from Android You can preview the photos that can find from it. Related Articles:
    How to recover deleted datas from Android phone ?
    Download the free trial version of Android photos Recovery and have a try. Click here to downloadHow to recover deleted photos on your Xperia S?

  • How can I edit and delete IOS 7 IPAD safari favorites?

    In IOS7/Ad safari, how can I edit or delete safari favorites?
    Thanks!
    Alan

    Thank you so much!   This solved my problem.
    I wish Apple made this sort of thing more accessible in its documentation somewhere.   I Google'd extensively but was unable to find anything relevant.
    Thanks much again!
    Alan
    P.S. -- I assume there's no way to delete multiple bookmarks/favorites simultaneously (I did it one at a time)...

  • How can I find and delete duplicate files in Mt Lion?

    As a competent, but self-trained mac user for 30 years, I'm totally baffled by the sudden appearance of multiple duplicate documents and .jpgs in my imac files. How can I find and delete them?

    Duplicate Annihalitor - http://brattoo.com/propaganda/ - or Decloner - http://www.pixelespressoapps.com/decloner/
    LN

Maybe you are looking for