Can i use "begin" and "end" in a database control

hi there
i just want to know if i can use begin and end with several sql update statments in between in a database control. u see, i need to run few update statements together. i don't want to put them in seperate method. i was wondering if i could put them together in on method and run it. is there any other way to do it if begin and end are not allowed. thanks

I have a J2EE application, for which I have a module which is used by system administrators. this module is completly written in Java swing.
and it does talk to my EJBs.
If you don't have a firewall in your application, then you can directly make your applications in awt, swing and applets talk to EJBs. if you do have a firewall, then just write a web-service wrapper over your EJBs and other J2EE components and use them from desktop applications.
It seems that you want to implement a kind of a applet based monitor application for your J2EE EJBs on the server. Applets cannot directly monitor your EJBs.
Create a new module which has a service which acts as an event listener on the server. each j2ee component on the server notify it if there is a change to them. this service, can then write the data realted to the modification on a socket which is continiously being read by the applet. So you can implement a kind of a monitor for J2ee apps with applets.
hope this helps.
regards,
Abhishek.
PS:How did you manage to adore the AWT ;-) ? I found that it sucks (good performance.. very poor lnf) ... java swing sucks too (very poor performance ... avaerage lnf).

Similar Messages

  • How can I put asterisk in the beginning and end of a search parameter..?

    Hi!
         I'm developing a program for a user where he wants a search parameter for the description about some purchase orders....
    The problem is if the user want to make a search for any word he need to put asterisk in the beginning and end of the word because if the user don't put the asterisk the search will not find anything because the program don't know if the word is in the beginning of the description or in the end or in the middle...
    How can I put one asterisk in the beginning and end of the search topic entered by the user internally in the program..? I was thinking using the concatenate function but for this will not work because the program think that the asterisk is part of the word and not..
    The search parameter of the Description is in range.. (Select-Options).
    Thanks for your help!!

    Thanks keshav!
    OK... and if I concatenate the asterisk latter I can make this search?
    In the code desc_search is the select_option that I tell u. I use the DESCRIBE to see first if it is not initial... if desc_search have an entry then access the DELETE to remove all the records that are diferent from desc_search.. This desc_search will have the word with the asterisk... and the question is if it works if I use the concatenate before this... anyway I will try but I think that if I use the concatenate the program confuse and take the asterisk as part of the word..
    DESCRIBE TABLE desc_search LINES desc_count.
      IF desc_count IS NOT INITIAL.
        DELETE core_table WHERE desc NOT IN desc_search.
      ENDIF.
    Let u know if works!!
    Thanks!

  • Is there a way I can have my form calculate a total time from beginning and ending time?

    Is there a way I can have my form calculate a total time from beginning and ending time?

    Sorry, but Formscentral doesn't support either a timer function or any kind of calculation. You might be able to do this if created your form in PDF. For help with PDF form creation in Acrobat I suggest you repost your question to the Acrobat Forum.
    Andrew

  • Can we use Begin Tran and commit Tran

    Hi,
    Can we use Begin Tran and commit Tran in sql user defined fuctions?
    Thanks,

    That's also documented:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5009.htm#SQLRF01208
    "Restrictions on User-Defined Functions User-defined functions are subject to the following restrictions:
    * User-defined functions cannot be used in situations that require an unchanging definition. Thus, you cannot use user-defined functions:
    o In a CHECK constraint clause of a CREATE TABLE or ALTER TABLE statement
    o In a DEFAULT clause of a CREATE TABLE or ALTER TABLE statement
    *In addition, when a function is called from within a query or DML statement, the function cannot*:
    o Have OUT or IN OUT parameters
    o *Commit or roll back the current transaction, create a savepoint or roll back to a savepoint, or alter the session or the system. DDL statements implicitly commit the current transaction, so a user-defined function cannot execute any DDL statements.*
    o Write to the database, if the function is being called from a SELECT statement. However, a function called from a subquery in a DML statement can write to the database.
    o Write to the same table that is being modified by the statement from which the function is called, if the function is called from a DML statement.
    "

  • In the current screen keyboard shortcuts, it says you can use "home" and "end" to go to the top and bottom of the screen. But it only works if I use Cntrl. Why?

    I am not using Firefox 20 on a new Sony Tap 20 with a wireless VAIO keyboard. All other keyboard shortcuts appear to work as usual. With my old computer, I did not have to hit cntrl to use home and end. (And yes -- I checked -- my num lock key is off.

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced > General > Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Can you adjust audio volume at the beginning and end of a clip?

    I want to add portions of songs into my iMovie videos. When I do that they abruptly start and end. Is there no way to adjust add a fade at the beginning and end of an audio clip?

    As said above, you cannot.
    The only work around is to edit audio in an external app.
    So please do suggest to Apple to add this feature in the next update.
    http://www.apple.com/feedback/imovie_iOS.html

  • How do I remove residual frames at the beginning and end of a video?

    I'm making a short clip with black slugs at the beginning and end. But there are two or three residual frames from the incoming clip after the black clip that stay at the beginning and end of the video and I can't remove them.  I've tried trimming the beginning and end of the video several different ways, and the frames won't disappear. They stay in the video when I make a DVD. The very first and very last frame have sprocket holes in them on the edge of the frame. I'm baffled. Is this an artifact of using the trial version?

    chances are they are from a fade.  have you zoomed in really really close and checked if there is a small fade in or fade out?  happens to me all the time, and with the fade out, you can't do anything to fix it (that I've found) except replacing the clip from your Browser.  See my similar question here:
    https://discussions.apple.com/thread/3589714
    Hope that helps.

  • Find beginning and end of an XMLtag in text

    I am trying to find the beginning and end of an xml tag in a block of text using a script. Does anybody have any ideas on how to locate the beginning and end of an xml tag in text?
    You can see the ends of a tag visually from the user interface by the colored brackets that appear. So one of my ideas is to use a function to find the brackets. Does anyone know if those brackets have a character number, or some way to identify them?

    -257 is 0xFEFF (as a signed 2 byte word).
    I don't think that's a terribly reliable way of checking XML tags (I seem to remember this is more an internal "IsNotUsual" code for ID). And you don't know if it's a start or end tag.
    Your script may or may not pick up this code in the selected string, depending on where you start and end your selection. You can use regular string functions to remove them from the string.
    Perhaps it's better to walk over the XML tree and check if each element's start and end value ("storyOffset" for the start, a quick eyeballing of the help didn't reveal a good candidate for its end) is at the start and end of your selection.

  • Removing punctuation from the beginning and end of a string

    I am working on a project for a "spell checking" program. So far the StringHash class is made, and the dictionary is read into a hash table. Then the document to be checked is specified via command line, the document scans through each word and checks to see if it is in the dictionary, if it is do nothing, if it is not then display it to console. The problem I am having is with a method in the main class. The method (I will post what I have so far) is called removePunct. The method should remove any punctuation from the beginning and the end of the string, nothing from the middle. Here is what I have so far:
    public static String removePunct(String word){
              StringBuilder wo = new StringBuilder(word);
              int x = (word.length()-1);
              if(!Character.isLetter(wo.charAt(0)))
                   wo.deleteCharAt(0);
              if(!Character.isLetter(wo.charAt(x)))
                   wo.deleteCharAt(x);
              return wo.toString();
    Any help would be much appreciated, I'm pretty certain the solution is either something completely different, or something so simple that I just missed it.

    The easiest way to do this is to just show you the actual file to be spell checked:
    -- outline --
    This directory contains Bison skeletons: the general shapes of the
    different parser kinds, that are specialized for specific grammars by
    the bison program.
    Currently, there are only three supported skeletons:
    - yacc.c
    It used to be named bison.simple: it corresponds to C Yacc
    compatible LALR(1) parsers.
    - lalr1.cc
    Produces a C++ parser class. It is still very experimental, and not
    yet supported. Please, subscribe to [email protected].
    - glr.c
    A Generalized LR C parser based on Bison's LALR(1) tables.
    These skeletons are the only ones supported by the Bison team.
    Because the interface between skeletons and the bison program is not
    finished, we are not bound to it. In particular, Bison is not
    mature enough for us to consider that ``foreign skeletons'' are
    supported.
    Copyright (C) 2002 Free Software Foundation, Inc.
    This file is part of GNU Bison.
    GNU Bison is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2, or (at your option)
    any later version.
    GNU Bison is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with Bison; see the file COPYING. If not, write to
    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
    What I need the spell checker to do is read each word, and strip any beginning or ending punctuation, e.g. (c) would become c. Pretty much punctuation consists of anything that is not a letter, hence the use of isLetter. I can easily modify the method to remove all punctuation using regular expressions, but I only want the beginning and end characters removed.
    Example of words:
    -yacc.c would become yacc.c and is not in the dictionary so it would be printed.

  • Clicks at beginning and end of Clip

    I have a Clip that I am using as a click sound on components, and a class with static methods to play them. When you play the .wav files in an editor (Sound Forge, in this case), everything sounds and looks fine. But when I play them as a clip, I get a "click" sound at the beginning and end of the clip. During playback, everything is fine, no clicks or anything. Here is the code that actually plays the clip (abbreviated):
    private static byte[] clickSound;
    private static byte[] startUpSound;
    private static Clip clickClip;
    private static Clip startupClip;
    public enum Sounds {
        CLICK, STARTUP;
    public static void playSound(AudioManager.Sounds soundType) {
        Clip clip = null;
        try {
            switch (soundType) {
                case CLICK:
                    if (clickSound == null) {
                        System.out.println("clickSound is null");
                        InputStream in = new Object().getClass().getResourceAsStream("/data/sounds/click.wav");
                        clickSound = new byte[in.available()];
                        in.read(clickSound, 0, clickSound.length);
                        in = null;
                        clickClip = AudioSystem.getClip();
                        clickClip.open(AudioManager.getAudioFormat(), clickSound, 0, clickSound.length);
                    clip = AudioManager.clickClip;
                    break;
                case STARTUP:
                    if (startUpSound == null) {
                        try {
                            System.out.println("startUpSound is null");
                            InputStream in = new Object().getClass().getResourceAsStream("/data/sounds/startup.wav");
                            //System.out.println("in.available() = " + in.available());
                            startUpSound = new byte[in.available()];
                            in.read(startUpSound, 0, startUpSound.length);
                            in = null;
                            startupClip = AudioSystem.getClip();
                            startupClip.open(AudioManager.getAudioFormat(), startUpSound, 0, startUpSound.length);
                        } catch (IOException ex) {
                            // ignore any exceptions here, it just won't play the sound
                    clip = AudioManager.startupClip;
                    break;
        } catch (IOException ex) {
            // ignore any exceptions here, it just won't play the sound
        } catch (LineUnavailableException ex) {
            // ignore any exceptions here, it just won't play the sound
        if (clip != null) {
            try {
                clip.setFramePosition(0);
                clip.start();
            } finally {
                clip = null;
    }Any ideas on what the cause of the "clicking" is at the beginning and end of the clips?
    Edited by: J_Y_C on Oct 14, 2008 8:52 AM
    Edited by: J_Y_C on Oct 14, 2008 8:53 AM

    captfoss,
    Thank you so much. You are 100% correct. And, I might add, you helped me catch myself on doing something that I complain about others doing: not looking things up. You figured out the problem by simply reading the javadoc, something I have always been a proponent of, but failed to do so in this case.
    So thanks again! :)
    I did as you prescribed, and it worked without flaw. I did, however, have to make one small modification due to the way I am storing my wav files (of which you would be unaware). I am storing them inside the same jar that I am executing from, and so I can't simply make a new File("/data/sounds/click.wav"). You have to actually write the file to the disc first, then create the file reference, like this:
    InputStream in = new Object().getClass().getResourceAsStream("/data/sounds/click.wav");
    File tempWav = File.createTempFile("click", ".wav");
    BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(tempWav));
    byte[] buffer = new byte[1024];
    while ((in.read(buffer))!=-1){
        out.write(buffer);
    out.close();
    AudioInputStream ais = AudioSystem.getAudioInputStream(tempWav);
    clickClip = AudioSystem.getClip();
    //clickClip.open(AudioManager.getAudioFormat(), clickSound, 0, clickSound.length);
    clickClip.open(ais);The system complains about having a non-hierarchical reference if I don't write it to a temp file first. Is there a way around that too? I can award you more points in another thread, if you'd like.
    I could do that anyways if the Duke points mean anything to you. :)

  • Javadoc Comments Begin and End Offset, Line number etc...

    Hello Everyone,
    I was wondering if there is a method that return the begin and end offsets, and line number of source code comment. I know this is possible to get the line number for Doc, MethodDoc, ConstutorDoc etc... with the position() method. I was unable to get the locations of comments corresponding to the actual source code. Also, I found that when asking for the position of constructors the value returned was that of the class, is this a known bug?
    Thanks in Advanced,
    Nick

    nkhamis wrote:
    Just out of curiosity, what do the folks at sun use for Java Parsers?They didn't need to go too far. The Java Parser must be a part of any Java compiler itself! Therefore, it is a part of any JDK. Obviously, they have some internal API of their Java parser and, I guess, Javadoc uses it to build the Java code model provided via the Doclet API. But Sun had never published the full API to their Java parser. (At least, I don't know such.) Although, it would be very useful indeed...
    FYI, a parser for a high-level programming language (like Java) is a software module that inputs a program written (by humans) as text in that language and converts it into some object representation (model) "understandable" to computer. That object representation must be a sort of tree representing all the language constructs found in the program. Typically, that tree is accessible via a certain API, which I call here a Parser API (although, other terminology may be used).
    Other software modules may use that object representation of the program for various purposes, for instance:
    - To generate an executable machine (or byte-) code by it
    - To transform the initial program in order to optimize it (this is used by compilers) or to do other things (e.g. refactoring)
    - To generate documentation (that's what Javadoc does)
    Besides generating the program object representation, another job of a parser is to provide diagnostics about various syntactical errors found in the initial program source (a well as possibly some semantic warnings).
    A parser is rather sophisticated piece of code. To develop it properly, one needs to learn first some theory about this, e.g. a formal grammar that describes the given programming language and how to deal with it. I know, there have been attempts to create some universal parsers that can be adjusted to parse any programming language (within a certain range) by specifying to them some formal grammar of that language. That topic was particularly beloved by university guys, so there must be many scientific articles about this.
    thomas.behr wrote:
    Well, if you are developing an Eclipse plugin, have you considered working with Eclipse' Abstract Syntax Tree (basically an object model for Java code) instead of the Doclet API?Interesting stuff... Looks like this might be that very Java parser API I am talking about here.
    Leonid Rudy
    [http://www.docflex.com|http://www.docflex.com]

  • How to calc the begining and end of every month (leap year)

    Hi all,
    I'm looking for a method that returns the begining and end of next month.
    example:
    today is 2005-10-04
    so the method suppose to return:
    2005-11-01
    2005-11-31 //as it ends on the 31
    I came up with the code below - but I don't like it as I can't get the end of month + it's not safe.
    any suggestions.
    Thanks
    Peter
    Calendar gcToday = Calendar.getInstance();
              int month = gcToday.get(Calendar.MONTH);
              int year  = gcToday.get(Calendar.YEAR);
              month+=2;
              if(month>12) //beacuase of month+=2;
                   year++;
                   month=1;
              String nextMonth;
              if (month<10)                         
                   nextMonth=year+"-0"+month+"-01";
              else
                   nextMonth=year+"-"+month+"-01"; 

    Look at using the methods getActualMaximum() and getActualMinimum() in the Calendar class. Basically what I would do is set the calendar to the 15th of the month (well, really anything between 1 and 28) and then add() one to the current month. The Calendar will roll over the dates as needed.

  • Auto trim out silence at beginning and end?

    Audition 3
    Anyone know if there is an option to automatically trim out the silence at the beginning and end of audio file?  If so, how?

    Sorry, no there isn't* - and if there was, most people wouldn't use it because a really hard start or end is rarely what's required. Anyway, it wouldn't really be any quicker than just highlighting the amount of silence you want to remove, and hitting the 'delete' key - and that method has the advantage of letting you select exactly where to trim.
    *Unless it's digital silence, in which case there's an option under edit>automark - but this won't work with anything other than digital silence at the start and/or end.

  • Inventory Management 0IC_C03: Beginning and ending inventory

    Hi Gurus
    My report is based on Inventory Management cube and I have a requirement where in I need to show Begining Inventory and Ending Inventory for Plant per Period.
    There is no KF for Beginning Invin SAP standard model in inventory management cube (0IC_C03 cube), so I thought to restricting total quantity by Fiscal period and Offset by minus one to get begining inventory.
    Here is my report layout:
    I have got : Period , Plant in rows and Beginning and ending inventory in Columns.
    Desired Output:
    Fiscal Period | Plant |  |  Begining Inventory | Ending Inventory.
    03/2009        |  1001 |    100                       |  50
    Actual Report output
    Fiscal Period | Plant |  |  Begining Inventory | Ending Inventory.
    02/2009        |  1001 |                 100          | 
    03/2009        |  1001 |                                |  50
    So basically report is being split on two lines for current and previous (due to restriction in begining period : Offset =-1 on period).
    Question is how to achieve both begining and ending inventory for a period in same line.
    Thanks in avdance for help and time
    SA

    HI Naveen
    Thanks for the reply. Non *** KF are already being used and Standard SAP model is being followed. Problem is not with back end but with frontend. Data coming on the report is fine but problem is how to show them on same line. Remember Beginning inventory for current open is ending inventory for previous month and  in SAP content there is no KF called as begining inventory. Basically data from two consecutive periods (current and previous one) needs to be on same row of report, but they are coming on different rows if we have period in drilldown by period. this makes sense but how to overcome this.
    This, We have all the correct data but facing issue while displaying that on frontend.
    Thanks
    Sorabh
    Edited by: Sorabh on Mar 23, 2009 5:01 PM

  • Inventory Management: Month beginning and ending inventory levels

    Hello,
    I need to have beginning and end of month inventory levels. I havent been given any functional specs . The only favor I would like from you is to know what standard chars and key figs you are using in your rows and column. And how are you using the objects in the forumla Naveen A suggested in the thread [SAP Business Explorer (SAP BEx);.
    Specially where he mentions formula, I would like to know what key figures does it consist of and are they restricted to the current or prior month.
    Let the end inventory be the same way and the begin inventory be as end inventory - ( total receipts current month - total issues current month).
    Thanks

    Anyone...Naveen A ....Arun????
    This is a simple one...
    Thanks
    Edited by: Navi Singh on May 1, 2009 9:51 PM

Maybe you are looking for

  • IMac g5 20" iSight no display loud fans white light

    Hi, Wondering if someone can help at all, I've recently been given an iMac which needs repaired, It seems certain parts have been stripped from it but want to make sure nothing else is wrong before buying replacements. When I plug in it, I get the wh

  • Acknowledge Contains System Errors

    Dear Friends, I am sending the MATMAS idoc from ECC6.0 to LocalSystem using XI. I got the error in SXI_MONITOR i.e Acknowledge contains system errors. R/3 side : 1.created RFC destination for XI 2.PORT For XI 3.Partnerprofile For XI 4.Distribution mo

  • Adding View/tab TO service Order Item Level

    Hi All, I am using CRM 5.0 SP3. I need to add a new View/Tab on SERVICE ORDER at Item Level Details. This view consist of Some Custom Field (like IO Box, Drop down etc.) I have created the view but not able to understand how to add this view to the I

  • Hardware Configuration

    Hi, I need to know the minimum SUN hardware configuraion ( CPU, RAM & HDD ) to run a 10000 users based application in 8i or 9i DB. Thx in advance. Shafeen

  • Three Musketeers in Web Design

      maybe it is a well-known fact that dreamweaver, flash and fireworks are the three musketeers in Adobe web design. the combination of these three musketeers in web design is a necessary tool in the development of the website. if there is someone els