Java inheritance and interface code help required

please help me I need your 30 mins only,,, working on assignment and I am trying to understand interface and inheritance might not need even 30 mins, please add me on skype *[deleted by moderator]*
Or add me on
yahoo msgr *[deleted by moderator]*
waiting for your help.
I have no single person friend or I can ask help from who knows java or programming. pretty much want to learn need a friend who can guide me in java.
unfortunately have to submit assignment tomorrow.
Thank you in advance for your time and consideration.
Akee
*Edited by moderator: EJP on 10/11/2012 10:38: removed your private contact details. This is a public forum, not a personal help desk. Ask your questions here or not at all.*

Hi,
there are lot of thread alredy posted please serach
check following link
http://help.sap.com/saphelp_nw04/helpdata/en/ce/1d753cab14a909e10000000a11405a/frameset.htm
XSLT Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
Java Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
Links of blogs on java mapping...
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
blog
/people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping(file to xslt mapping)
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners(xslt with java enhancement function)
Regards,
Amit

Similar Messages

  • To view database Java Source and Class code in SQL Developer - Do this...

    I've wanted something like this for a while.. Hope this helps someone else...
    Make a master detail report...
    1. Click the reports tab.
    2. Right click on "user defined reports" and select "add report"
    3. Type "Java Source Object and Class Code" into the name field.
    4. Make sure "Style" is set to "Table".
    5. Paste this code into the "SQL" window.
    select OBJECT_NAME, OBJECT_TYPE, to_char(created,'DD-MON-YYYY HH24:MI:SS') Created, to_char(LAST_DDL_TIME,'DD-MON-YYYY HH24:MI:SS') "Last DDL", STATUS
         from user_objects
        where object_type in ('JAVA SOURCE')
        order by object_name6. Click "Add child"
    7. Make sure "Style" is set to "Code" in the child.
    8. Paste the following code into the SQL window of the child.
    select text from user_source where name = :OBJECT_NAME order by line9. Click Apply..
    10. Enjoy...
    no semicolons after the sql....
    Message was edited by:
    slugo

    Mark,
    Thanks Check this out people can now subscribe to the public reports out no the exchange.
    http://krisrice.blogspot.com/2007/10/marks-post-on-forums-got-me-to-do.html
    -kris

  • Java Inheritance and Types

    Hello,
    I have some super/sub classes, listed as follows:
    UnitMgr
    SpecialUnitMgr (child of UnitMgr)
    Unit
    SpecialUnit (child of Unit)
    I'm designing a lot inventory system where my SpecialUnitMgr applet will have many instances of Unit. Right now I have the system set up so that UnitMgr contains an instance var declared as "Unit aUnit;". UnitMgr as a parent class, takes care of common code between the many different UnitMgr child classes.
    Right now I have SpecialUnitMgr setup to use the inherited parent/super variable aUnit, and I have extended the functionality of Unit with SpecialUnit (added more instance vars, etc). I wish to use extended features of SpecialUnit within my SpecialUnitMgr class, but I am unable to do so because of type conflicts (i.e. i cant access SpecialUnit vars or methods from the instance aUnit because it is declared as Unit in UnitMgr).
    I want to keep a single instance of Unit or SpecialUnit going, but I'm not sure how to do so.
    I am wondering how to get around this problem, do I use Reflection? Is my design bad? I am trying to maintain the super classes as a core package.
    Jeff

    If I understand the problem correctly, you want generics. public class UnitMgr<U extends Unit>
        protected U aUnit;
    public class SpecialUnitMgr extends UnitMgr<SpecialUnit>
    }See http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html for more on generics.

  • Inheritance and byte-code...

    My coworker and I were having a discussion today that I imagine someone here will be able to resolve for us: we were talking about how wonderful inheritance is (when used properly, of course), and the issue of the compiled byte-code came up.
    Basically, it was my conclusion that a subclass contains only the byte code that differentiates it from the superclass; in other words, if a superclass is modified and recompiled, there is no need to recompile the subclass for the changes to take effect. My coworker disagreed, however, arguing that there would be linking problems between the two classes if the subclass was not recompiled (sign of an old assembly programmer, if you ask me).
    Anyone know the answer to this?

    I created a trivial Parent class and extended it with an
    even more trivial Child class. I compiled both classes
    and then made a change to the Parent class. After
    compiling the Parent class only, the change took effect
    in the Child class. This indicates that you are right and
    your co-worker is wrong. Here are the classes if you
    would like to show him.
    import java.awt.*;
    public class Parent
         Dimension d;
         Parent() {
              d = new Dimension(333, 777);
         public Dimension getDimension() { return d; }
    import java.awt.*;
    public class Child extends Parent
         Dimension d;
         public Child() {
              d = getDimension();
              System.out.println(d.height + " " + d.width);
         public static void main(String[] args) {
              new Child();
    }Mark

  • Pl/sql  code  help required

    i have 3 string like below
    string1  varchar2(3000) := ' fonction code=''33'' and the limit for the subfunction is 300. it may have function_code=''100'' ) ) ) )';
    string2  varchar2(2000):='function_code=''100''';
    string3  varchar2(3000);requirement is
    if i found string2 in string1 preceded by four brackets ,example function_code=''100'' ) ) ) )' then
    i have replace to replace the 4th bracket with
    function code is null  )the string1 now will be
    ' fonction code=''33'' and the limit for the subfunction is 300. it may have function_code=''100'' ) ) ) function code is null  )Pls help
    NOte: bracket may or may not have spaces between them
    S

    SQL> declare
      2  string1  varchar2(3000) := 'AND NOT  (     (       (   FUNCTION_CODE = ''88''  )  OR  (   FUNCTION_CODE = ''21''  )  OR  (   FUNCTION_CODE = ''51'' )  OR  (   FUNCTION_CODE = ''85'' )  )  )  )' ;
      3  string2  varchar2(2000):='FUNCTION_CODE = ''85''';
      4  string3  varchar2(3000);
      5  begin
      6  string3 :=regexp_replace(string1,'^(.*)('||string2||')(([[:blank:]]?\)[[:blank:]]?){3})([[:blank:]]?\))(.*)$','\1\2\3function code is null\4\5');
      7  dbms_output.put_line(string3);
      8  end;
      9  /
    AND NOT  (  (  (   FUNCTION_CODE = '88'  )  OR  (   FUNCTION_CODE = '21'  )  OR  (   FUNCTION_CODE = '51' )  OR  (
    FUNCTION_CODE = '85' )  )  ) function code is null )  )
    PL/SQL procedure successfully completed.Best regards
    Maxim

  • Today updated my iphone 4 to ios 7.0.4 and now code is required, what never happend before and i don't know the code

    hi need your help.
    updted my iphone 4 today on ios 7.0.4 and now with new start code required, what i never had before and i don't know the code.
    how can i get this problem solved?
    thx
    peter

    Here's how you put it into recovery mode
    1: Turn off your iPHone by holding the sleep/wake button till it says "Slide to power off."
    2: Hold down the home button (Button on the bottom of the display with a square in the middle) and connect it to the computer while still holding it down till you see a music note with an arrow pointing towards it appear on the screen of your iPhone
    3: iTunes will give you a message, "iTunes has detected a device in recovery mode; you must restore this device to factory settings to use this device."
    4: Click on "Restore iPHone."
    http://support.apple.com/kb/HT1808 if you want apple article steps

  • Java GUI and runtime().exec help

    I have been working on a GUI that does an assortment of tasks. The final and last task is to make copies of a 3dModel conversion program and a script file that is required to make the converter run and convert. The converter and the script file are moved to a user specified directory. The user specified directory contains all of the models that will be converted. The problem is, I can't get the GUI to boot the converter with the script file. To make the converter work, you need to pass two window's cmd commands but the commands need to occur from the same directory as the converter and script file. This is what I have tried to do:
    String[] commands = new String[]{"cmd ",
    "/c ",
    "cd ",
    smdDirectory.getPath(),
    "skmodel ",
    "model_definition.txt "};
    try{               
    Process child = Runtime.getRuntime().exec(commands);}
    catch(IOException e){}The files have all ready copied to the correct directory. All I need is for the GUI to execute the "skmodel model_definition.txt" commands in the correct directory. What am I doing wrong?
    Thanks for the help in advance.

    String[] commands = new String[]{"cmd ",
    "/c ",
    "skmodel ",
    "model_definition.txt "};
    try{               
    Process child = Runtime.getRuntime().exec(commands, null, smdDirectory.getPath());}
    catch(IOException e){}I will try that and see if I get the desired results.
    EDIT:
    I got it to make. Here is the code.
    String[] commands = new String[]{"cmd ", "/c ", "skmodel",     "model_definition.txt "};
         try{
              Runtime runtime = Runtime.getRuntime();               
              Process child = runtime.exec(commands, null, smdDirectory);
    }Edited by: Euphoria on Sep 28, 2008 9:48 AM

  • PDA and data synchronization -help required

    Hi,
    I have experince in developing web applications in jsp/servlets and php. I wish to develop a PDA supported java server
    application. I have downloaded netbeans for using as an IDE. It does have support for mobile emulators, but does not support
    PDA/Palm OS emulators.
    What about IBM websphere and eclipse for using as IDE? Will they support J2ME SDK? Please help me in devoloping my PDA
    application.
    why we use data synchronisation for laptop and PDA for web applications? Why is it not applied in normal PC?
    Thanking in advance,
    From,
    Vinod

    Vinod, you might want to look at the palm.com web site. There is quite alot of information available for developers.
    By reading your original query, I assume you are talking about thread safety and not synchronization, per se. Thread safety is very important in a web app as you surely know. If you don't and have been developing Servlets/JSPs then, hoo boy!

  • Mapping data model to java classes and Interface.

    Need help in mappning my data model into java classes;
    Here are some of the details:
    Table, Poll:
    PollID int
    PollName varchar
    BusinessUnit varchar
    DisplaySchemeID int // reference to DisplayScheme table.
    Table, DisplayScheme
    DisplaySchemeID
    DisplaySchemeName
    etc
    Table, URL
    UrlID
    UrlName
    UrlDesc
    Table, PollURL
    PollURLID
    PollID
    UrlID
    PublishDate
    etc
    Table, Tag
    TagID
    TagName
    PollID
    So, a POLL is associate with a DisplayScheme.
    A Poll can have many URLs and a URL can be associate with many Polls , mapped in the PollURL table.
    and same is the situation with tags.
    Essentially I want to learn how to do one to many mappning and many to many mapping.
    Also to add, since I plan to use Ibatis for OR mapping.
    So I should a Parameter call to map for creaint a Poll. And to create a poll the form submitted will have:
    - PollName
    - URLs ( multiple )
    - one display scheme.
    - Tags ( many )
    So if you can show how to write a DAO createPoll method, then it would be great.
    Not sure if am asking a lot, but this would be a great example to move forward.

    The below is the sample DAO Class.
    For your case, you have to create your own PollBean with getters and setters and just pass the object to the method
    public int create(Connection con, ProjectBean projectBean) throws SQLException {
              int result = 0;
              String insertQuery = " INSERT INTO" +
                        " M_PROJECT(" +
                        " PROJECT_ID," +
                        " PROJECT_NAME," +
                        " PROJECT_DESCRIPTION) " +
                        " VALUES(?,?,?,?)";          
              initPrepareStmt(con, insertQuery);
              setString(projectBean.getProjectID());
              setString(projectBean.getProjectName());
              if(projectBean.getProjectDescription().equals("")){
                   setString(" ");
              }else{
                   setString(projectBean.getProjectDescription());
              result = executeUpdate();          
         return result;
         }

  • Inheritance and Interface invocation Query

    interface IProduct{
         void getProductName();            
    abstract class Option implements Product{
                 void exercisePrice();
                 void premiumPaid();
    class Option1 extends Option{
               // Implement all abstract methods defined in Option and IProduct.
    class Option2 extends Option{
         // Implement all abstract methods defined in Option and IProduct.
    class Trade{
               public Trade(IProduct p){
         p.getProductName()   // I can only get this method behaviour.
                    // My Query
                    // I also need to invoke the methods exercisePrice() and premiumPaid() defined in Option1 and Option2
                    // If I use instanceof,the code will get cluttered and ugly.
                                     if p instanceof Option1
                                     Option1 op1 = ((Option1) p);
                                     op1.exercisePrice();
                                      if p instanceof Option2
                                      if p instanceof OptionN
    class TestHarness{
             public static void main(String args[]){
             // Create an option
             Option1 option1 = new Option1();
             // Trade in the product
             Trade trade = new Trade(option1);
             Query:
             The Trade constructor defines IProduct.
             IProduct can be a concrete Bond,Option,CDS,IRS etc.
             How do I get the methods defined in subclasses Option1 and Option2 or for any concrete subclass of IProduct?
             Is there a way of dynamically invoking the methods of the object created?
            Or do I need to change the design.
    }

    It looks to me like you're violating the Liskov Substitution Principle.
    "The LSP says that the users of base classes should not have to do anything special in order to use derivatives."
    - R. MartinThis also violates the Open/Closed principle, because whenever you add a new Option concrete class, you're going to have to update your Trade class (it's not "closed to modification" when the environment around it changes).
    The "fix" is just that its not a good idea to force the polymorphism by using instanceof. You should either:
    1. Get rid of the IProduct interface completely and treat each product type separately.
    2. Reconsider your base class (in this case, IProduct) to see if it really can contain additional behavior applicable to all products.
    The previous post about the visitor pattern is interesting, but I don't see how it applies to this example (perhaps some more light could be shed there by the poster).

  • Re: Java Images and Threads prob Help!!

    Without going through it in detail the problem may be that you're doing the repaint which you hope will draw the image before the image has completed loading.
    Create your ImageIcon (loading the "xxxx.jpeg" files) during program initialisation. And check the load status of the icon, at least in a test version.

    I still cant get the reqd output. Only the 1st image is dispayed and when i click the second code, the 2nd image doesnt come(the first one does not disappear, and even when i click the code 1 i have to minimize/ maximize the screen, to get the image and after that it does not go for the s2nd image 2 come!! )
    Create your ImageIcon (loading the "xxxx.jpeg" files) during program >>initialisation. And check the load status of the icon, at least in a test version. How do u load the image during initialization??? and can ny1 plz tell me how to get the flashing threads with msgs????

  • Blue Screen and Error code help

    I got up for a few moments then come back to see my computer Blue Screened, first time ever for me. Its running win XP and is roughly 1 1\2 years old and i have no idea what even caused the blue screen much less how to fix it so it wont happen again
    The error code
    c:\DOCUME~1\0\Owner\Locals~1\Temp\WER309f.dir00\Mini072409-01.dmp
    c:\DOCUME~1\0\Owner\Locals~1\Temp\WER309f.dir00\sysdata.xml
    BCCode 10000007e
    BCP1 C00000005
    BCP2 000000000
    BCP3 EDEDDBB8
    BCP4 EDEDD8B4
    OSVer 5_1_2600
    SP 2_0
    Product 256_1

    Not 100% sure without looking at it honestly. If it happens again I would take it in to your local store for a diagnostic.
    Adam
    Best Buy Community - Retail, Americas
    Forum Guidelines | Terms & Conditions | Community Guidelines | Blogging Guidelines
    *Remember to mark your questions solved and click the star under the user's name to show your thanks!

  • User exit code -  help required

    Hi Experts,
    I need to write a user exit for the field Posting level in the query. The logic is ,when posting level is either 10 or 20 for an ITEM then Key figure "Period value GC" should be divided by two and the result shouls be stored in the same Key figure.
    Technical names of the fields are as follows:
    Posting Level - 0cs_plevel . We have created a user exit variable ZBSUSER.
    Item - 0ITEM
    Period Value GC - 0cs_per_gc.
    Please let me know  the code to be written in CMOD to achieve the above result.
    Thanks,
    Kavitha Jagannath

    Hi,
    I need to write a user exit for the field Posting level in the query. The logic is ,when posting level is either 10 or 20 for an ITEM then Key figure "Period value GC" should be divided by two and the result shouls be stored in the same Key figure.
    You can do it in report it self you don't need EXIT CODE.
    Steps:
    1. Create a RKF and restrict (Include)ITEM = 10 and 20 &  drag and dropn Period value GC   " RKF -1
    2. Create another RKF and EXCLUDE ITEM = 10 and 20 &  drag and dropn Period value GC.  " RKF -2
    3. In Columns display both and create Formula-1 and divide RKF-1 with 2.
    4. Create a Formula and add Formula-1 and RKF -2  
    5. Hide unwanted calculations
    Your problem is resloved.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Dec 14, 2009 2:25 PM

  • Inheritance and super usage help

    so i have a parent class called Gun and i have a protected field called bulletsInGun in the constructor and then i have a a subclass called HandGun that inherits from the Gun class and i am trying to used the field bulletsInGun in the parents class constructor for the HandGun subclass constructor. how would i do that? i tried super.bulletsInGun and i tried super(bulletsInGun) and none of them work i keep getting "not a statement error".

    this is my gun class the parent class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    * @author steven
    abstract public class Gun {
        private int numberOfBulletsAllowedInGun;
        private int bulletsInGun;
        protected static final int NUMBEROFBULLETSMAX = 0;
        public Gun()
            numberOfBulletsAllowedInGun= 0;   
            bulletsInGun = 0;
         * this method should reload the bullet.
        public void shoot()
            if(bulletsInGun <= 0)
            cannotFire();
            else
                typeOfShotInitated();
        public void cannotFire(){
            System.out.println("No, more bullets cannot fire must reload.");
       abstract public void typeOfShotInitated();
       abstract public void reload();
    }this is the subclass that inheritances from the gun class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    * @author steven
    public class HandGun extends Gun{
                /*how do i bring in "protected static final int NUMBEROFBULLETSMAX = 0;" from the parent class into each of the subclasses that i make? */
        public HandGun(){
            super(bulletsInGun);                                   // how do i add these fields from the Gun class?
            super(numberOfBulletsAllowedInGun);         //
        public void reload(){
            if(bulletsInGun == )
            bulletsInGun += 9;
        public void typeOfShotInitated(){
    }

  • About Inheritance and interface!

    I have to write a PQueue2 class which implements PriorityQueue interface, also PQueue2 has to extend BinaryHeap,
    so at the top of the PQueue2 I should have this right?
    public class PQueue2 extend BinaryHeap implements PriorityQueue {

    I meant that if PQueue2 extends BinaryHeap
    then it can call directly all the functions in the
    e BinaryHeap right? but it can also add new methods?It's more like the public and protected methods in BinaryHeap are also the methods of PQueue2. If I create a PQueue2 outside of either class, I can call any public method defined in BinaryHeap on PQueue2.
    the extends keyword creates an "is a" relationship between a class and the class it extends. Every PQueue2 instance is an instance of BinaryHeap (but not the other way around.)

Maybe you are looking for

  • New AirPort Extreme Problems

    Hello, I just installed a the new AirPort Extreme connected to wired Ethernet as a Server for USB-Harddisks. Unfortunatele, it seems to work very unstable. I want to use the connected disks with an iMac G5 and an MacMini Core Duo. Sometimes the Extre

  • The bookmarks button does not appear in my browser

    The button is supposed to be next to the home button, but it is not there

  • Reg: Page Protection Check Box in Smartform

    Hi,   In the folder node of the smart form, i want to use the check box ' Page Protection'. But the check box is disabled. Can any one guide me how to enable the check box. Thanks in advance. Rgds, Nagendra Prasad.J

  • How to resolove rfc errors

    I am getting the below log message in devrfc.trc Please let me know what could be the reason for the below error. thank you T:9011 *************************************************************** T:9011 ***** closing all connections ... T:14152 ******

  • JMX configuration for Websphere in Process Administrator

    How to set up the security credential information for JMX configuration in Process Admistrator for Websphere clustered environment? Is there any document which give instructions on the key store/trust store set up for JMX? Thanks