[Urget Help] [BPEL 11g] How to use Database 11g as Identity Service source?

Dear all,
My customer is using BPEL 11g for current project. They have a legacy user database (Oracle DB 11g) which store all accounts info.
Now we want to connect BPEL with this database as identity service and pick up the users and groups as approver. I saw following graph from below link, but I don't know how to implement it. It seems a huge change in BPEL 11g.
Can you give me an idea on it? Any suggestions are welcome.
http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_workflow.htm#BABEIHDD
Thanks in advance.

repost

Similar Messages

  • Help me!    How to use it as a web service from third party application?

    After using JDeveloper to develop BSSV object e.g. JP550010, how to use it as a web service from third party application?
    TKS!

    Obviously the OP is working on a project for the Bead Society of Southeastern Virginia http://www.bssv.org. Oh, wait, maybe he's researching the Blueberry Shoestring Plant Virus http://abbreviations.yourdictionary.com/bssv
    :D
    John

  • How to use database look up table function in xsl mapping

    Can anybody tell me how to use database look up table function while mapping xsl between 2 nodes.
    I have an XML file coming in and depending on one of XML elements we need to decide which further path to take. But, using this XML element, we need to query database table, get metadata and accordingly take appropriate path. I have written lookup function which returns metadata value.
    Now, the issue is how do I pass the XML element valu as input to look up function? When I tried to drag it to the input node of lookup function, it throws an error like "Maximum number of parameters exceeded"
    Thanks,

    If the lookup table is always going to remain the same (e.g. a character generator or something similar) you can place the values in a 2D array constant on your diagram, with the input value as one column, the equivalent as the other. When you need to perform the lookup you use an index array to return all the values in the "input column", search it using "search 1D array" and use the resulting index number to index the other column's data. If the values may change, then it would probably be best to load an array control with your equivalent values from a file.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How to use Database views in XI

    Hi Folks,
    Any idea about how to use Database views for sending and receiving messages in XI ?
    Regards,

    Farooq,
    My doubt is do i have work in the same fashion as if i am working on a Database Table...?
    For Ex :
    Creating Source and Target Data structure for JDBC adapter in the same format....etc
    Regards.

  • Anyone using Database 11g with UCM?

    Anyone using Database 11g with UCM? Can't find anything on the customer reference site. Customer wants to be reassured that they are not the first, etc...
    Thx.
    ft

    I know of a few companies that are using 11g ;)
    They wont be the first.

  • How to use Database Adapter in BPEL

    I want to use Database Adapter in BPEL to transfer data from one table to other table and the data is still hold in the read table?
    I can find a example from http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#BDCIGDCB.
    And the general design of my BPEL is as following:
    1. Add a "status" column to the read table. And alter the value of status column of all data in read table to "unreaded".
    2. Then create a empty BPEL (BPELAdapter) Project.
    3. Add a Database Adapter:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to datain.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose "Poll for New or Changed Records in a Table".
    (4) Then click Import Tables button, and choose the read table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6 and 7.
    (7) In step 8, choose "Update a Field in the [Datain] Table (Logical Delete)".
    (8) In step 9, configure Logical Delete Field to STATUS, configure Read Value to readed and configure Unread Value to unreaded.
    (9) Don’t do anything in step 10 and 11.
    4. Add a receive activity to connect to above database adapter.
    5. Add another Database Adapter. Then configure this database adapter service WSDL:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to dataout.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose Perform an Operation on a Table (and all items under it).
    (4) Then click Import Tables button, and choose the write table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6, 7 and 8.
    6. Add a invoke activity to connect to above database adapter.
    7. Add a assign activity between the receive activity and invoke activity. And configure the assign copy operation.
    But after I deploy this BPEL project to the BPEL server and invoke this project, I get following error. Meanwhile, this BPEL don't take effect.
    The following exception occured while processing this request:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。
    How to resolve?
    Thanks,
    Melody

    Now, I can insert data into the table through Database Adapter.
    But still can't select data from the table through Database Adapter.
    Above error still happen when invoke the read database table with Database Adapter project:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。

  • How to use Database adapter as inbound adapter without having polling strategies?

    Hi All,
    I have a requirement wherein I have to use Database adapter to retrieve the data for every half an hour from one(X app) database and update that data into another application(Y app) .That database adapter will be along with BPEL process.My Flow would be like this:
    Database Adapter( In 'exposed services' section) ----->   BPEL (in 'Components') -----> Y app service( in 'External References' section)
    My questions for each step are below
         1) I have to retrieve the data from database(x app database) for every half an hour.So I have to schedule my whole process such that it should execute for every half an hour.
    Means I have to get  whatever the data is updated in the last half an hour in that database.
          The database adapter should be inbound in SOA composite editor(in 'Exposed services' section).
    But in order to have inbound adapter,we have select the 'Poll for New or Changed Records in a Table' option in turn we have to select one of polling operations below:
             Delete the Row(s) that were Read
    Update a Field in the [Table_Name] Table (Logical Delete)
    Update a Sequencing Table
    Update an External Sequencing Table on a Different Database
    Control Table Strategy
    But the problem is I don't have any control on the database(X app database) ,So (I can't update any data on that table,because that table may not have a field or table to update the processed rows)I can't choose any of the above operations.
    How can I achieve what I want that is to retrieve the data and schedule the process?
    Thanks in advance.

    Hi Heckler,
      Thank you very much for your answer that I can proceed further somehow.
    I still need to have some clarifications.
    In order to have a process which retrieves the data (Inbound operation) and updates the data into other application, the data(from X app)  should be the request(through DB adapter) of the BPEL process.
    X app does not do anything to send.We have(the BPEL process) to receive the data (or) no event is triggered.
    The flow :
    Database Adapter( In 'exposed services' section to retrieve data) ----->   BPEL (in 'Components') -----> Y app service( in 'External References' section)
    How can we ensure the data will be  request to BPEL process(means it will be in 'exposed services' section in SOA composite editor) for every half an hour if we use pick activity and database adapter as first activity?
    When we use ''Poll for New or Changed Records in a Table' ,then only adapter becomes inbound and comes into the 'exposed services' section.I can't use it as I don't have any control on the source table.
    I have this confusion before starting the process.Please help me to clear out the doubts.
    And this whole process should be executed automaticallly for every half an hour(means it creates instance for every half an hour)  Once we build the BPEL process.
    How to schedule it?
    And where do I need to create control table ?You mean I have to use some different database where in I have to create the table?

  • How to use database without wizard

    Can anyone help me to use recordsets without using the appwizard at the creation of my project?
    the purpose is to input on the database values from a form without using a database project, so in my MFC project I do the following and then I faced problems :
    In the class which I use the database I add the member variable
    CDatabase m-Mydatabase;
    on an "OnButton" function of this class I do :
    m_Mydatabase.Open(NULL,FALSE,FALSE,stringconnect)
    I have many dialog boxes, each dialog has a form from which I get data and put them on the database and vice versa.
    I create fo each dialog box a RecordSet, and I include the .h file of the record set in the dialog class in which I'm going to use it.
    So now how to use this recordset and put the values from controls to database ?
    thank's in advance.

    MFC? CDatabase?
    Hmmmm.....are you aware that this forum is for Java (a programming language) and you are asking a question about MFC (Microsoft C++ windows framework.)
    Perhaps if you could clarify the exact problem that you are having with java, jni or one of the other java libraries?

  • How to use database control to execute sql queries which change at run time

    Hi all,
    I need to execute sql queries using database controls , where the sql changes
    at run time
    based on some condition. For eg. based on the condition , I can add some where
    condition.
    Eg. sql = select id,name from emp where id = ?.
    based on some condition , I can add the following condition .
    and location = ?.
    Have anybody had this kind of situation.
    thanks,
    sathish

    From the perspective of the database control, you've got two options:
    1) use the sql: keyword to do parameter substitution. Your observation
    about {foo} style sbustitution is correct -- this is like using a
    PreparedStatement. To do substitution into the rest of the SQL
    statement, you can use the {sql: foo} substitution syntax which was
    undocumented in GA but is documented in SP2. Then, you can build up
    the filter clause String yourself in a JPF / JWS / etc and pass it into
    the DB control.
    For example:
    * @jc:sql statement="select * from product {sql: filter}"
    public Product[] getProducts(String filter) throws SQLException;
    This will substitute the String filter directly into the statement that
    is executed. The filter string could be null, "", "WHERE ID=12345", etc.
    2) you can use the DatabaseFilter object to build up a set of custom
    sorts and filters and pass that object into the DB control method.
    There have been other posts here about doing this, look for the subject
    "DatabaseFilter example".
    Hope that helps...
    Eddie
    Dan Hayes wrote:
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi Maruthi,
    The parameter substituion , I guess is used like setting the values for
    prepared
    statements.
    What I'm trying to do , is change the sql at run time based on some condition.
    For example ,
    consider the following query :
    select col1,col2 from table t where t.col3 > 1
    At run time , based on some condition , I need to add one more and condition.
    i.e. select col1,col2 from table t where t.col3 > 1 and t.col4 < 10.
    This MAY not address your issue but if you are trying to add "optional" parameters
    you may try including ALL the possible parameters in the SQL but send in null
    for those params that you don't want to filter on in any particular case. Then,
    if you word your query
    as follows:
    select col1, col2 from table t where t.col3 > 1 and (t.col4 = {col4param} or
    {col4param} is null) and (t.col5 = {col5param} or {col5param} is null) ...
    you will get "dynamic" filters. In other words, col4 and col5 will only be
    filtered if you send in non-null parameters for those arguments.
    I have not tried this in a WL Workshop database control but I've used
    this strategy dozens of times in stored procedures or jdbc prepared statements.
    Good luck,
    Dan

  • Is there a site or dvd to help me learn how to use firefox 6???

    i am an idiot about computers and i need help on installing and understanding how to use firefox..from setting it up to everyday use. like how to add roboform to the tool bar and for that matter how to get a toolbar..so is there a dvd or something to walk me thru installation please

    It's impossible to make certain modification to the content on your iPod if it is not connected to a computer. In fact, just about the only thing you can do from the iPod is rate your music.
    If you want complete control, just tell the iPod to manage music manually and you can move things in and delete them as you please.
    The reason the iPod works like this is pretty simple, Apple figures that allowing the user to delete music from the iPod all willy-nilly would make the iPod more complex, and therefore more confusing.
    But honestly, do you need to delete the podcasts from your iPod RIGHT AFTER you've listened to them? What's the deal with the urgent need to make more space? Unless you're doing transfers from a camera (and I seriously doubt you are) you can just delete them the next time you plug the iPod into your computer.

  • Need a Big Help please on how to use getAppletContext() method

    I have three classes, first one extends JApplet, second class I use two create my popup menus, third class I use for my main actions to be done. I need when a popup menu is clicked to load a page, but I am getting this error.
    java.lang.NullPointerException
    at java.applet.Applet.getAppletContext(Applet.java:171)
    at Popup_Menus$1.actionPerformed(Popup_Menus.java:90)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.Component.processMouseEvent(Component.java:5134)
    at java.awt.Component.processEvent(Component.java:4931)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Ev
    My Code is messy, but here it is: -
    Class One
    //package final_project;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import java.applet.*;
    import java.net.*;
    public class Main_Interface extends JApplet implements Runnable {
    GUICanvas MainCanvas;
    int counter = 0;
    protected int delay = 10000;
    private Thread timeThread= null;
         public void init() {
         Container contentPane = getContentPane();
    MainCanvas = new GUICanvas();
    contentPane.setBounds(0,0,850,650);
         contentPane.add(MainCanvas);
    public void start() {
    timeThread = new Thread(this);
    timeThread.start();
    public void run() {
    Thread myThread = Thread.currentThread();
    while (timeThread == myThread) {
    try {
    Thread.currentThread().sleep(delay);
    } catch (InterruptedException e){}
    counter ++;
    MainCanvas.TheKing();
    Class Two
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import java.applet.*;
    import java.net.*;
    import java.applet.*;
    public class Popup_Menus extends Applet implements MouseListener {
    JPopupMenu ar[] = new JPopupMenu[16];
    JMenuItem it[] = new JMenuItem[84];
    public Popup_Menus() {
    for (int i=0;i<16;i++)
    ar[i] = new JPopupMenu();
    for (int i=0;i<84;i++)
    it[i] = new JMenuItem();
    it.setBackground(Color.orange);
    it[i].setForeground(Color.cyan);
    it[16]= new JMenuItem("Shop Details");
    it[17]= new JMenuItem("NoOfStaff");
    it[18]= new JMenuItem("ShopAssest");
    it[0] = new JMenuItem("Oracle");
    ar[0].add(it[0]);
    it[1] = new JMenuItem("Macrosoft");
    ar[1].add(it[1]);
    it[2] = new JMenuItem("SunMicro");
    ar[2].add(it[2]);
    it[3] = new JMenuItem("PeopleSoft");
    ar[3].add(it[3]);
    it[4] = new JMenuItem("HP");
    ar[4].add(it[4]);
    it[5] = new JMenuItem("Dell");
    ar[5].add(it[5]);
    it[6] = new JMenuItem("Compact");
    ar[6].add(it[6]);
    it[7] = new JMenuItem("Apple");
    ar[7].add(it[7]);
    it[8] = new JMenuItem("Sony");
    ar[8].add(it[8]);
    it[9] = new JMenuItem("Philipes");
    ar[9].add(it[9]);
    it[10] = new JMenuItem("Bush");
    ar[10].add(it[0]);
    it[11] = new JMenuItem("Granada");
    ar[11].add(it[11]);
    it[12] = new JMenuItem("PC");
    ar[12].add(it[12]);
    it[13] = new JMenuItem("Macintosh");
    ar[13].add(it[13]);
    it[14] = new JMenuItem("Laptop");
    ar[14].add(it[14]);
    it[15] = new JMenuItem("Solaris");
    ar[15].add(it[15]);
    it[0].addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    ar[0].add(it[16]);
    ar[0].add(it[17]);
    ar[0].add(it[18]);
    System.out.println("Working");
    // ma = new Main_Interface();
    try
    System.out.println("menuitem");
    String s="ali";
    URL url = new URL("http://www.google.com");
    getAppletContext().showDocument(url,s);
    catch(MalformedURLException malformedurlexception)
    System.err.println(malformedurlexception);
    public void mouseClicked(java.awt.event.MouseEvent e) {
    //ar[0].show(this,30,30);
    public void mouseEntered(java.awt.event.MouseEvent mouseEvent) {
    public void mouseExited(java.awt.event.MouseEvent mouseEvent) {
    public void mousePressed(java.awt.event.MouseEvent mouseEvent) {
    public void mouseReleased(java.awt.event.MouseEvent mouseEvent) {
    Class Three
    //package final_project;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import java.applet.*;
    import java.net.*;
    public class GUICanvas extends JPanel implements MouseMotionListener,ActionListener,MouseListener
    private Color color;
    Popup_Menus popup = new Popup_Menus();
    private Font font;
    double a1, Q = 0,Z = 0,P = 1, S1;
    String Percentages;
    double Aa=0,Ba=0,Ca=0,Da=0;
    double Aa1=0,Ba1=0,Ca1=0,Da1=0;
    double Aa2=0,Ba2=0,Ca2=0,Da2=0;
    double Aa3=0,Ba3=0,Ca3=0,Da3=0;
    double Aa4=0,Ba4=0,Ca4=0,Da4=0;
    double Sum = 0,Sum1 = 0, Sum2 = 0, Sum3 = 0, Sum4 = 0;
    double A=0, B=0, C=0, D=0;
    double A1=0, B1=0, C1=0, D1=0,A2=0, B2=0, C2=0, D2=0;
    double k1=0,k2=0,l1=0,l2=0,r1=0,r2=0,u1=0,u2=0;
    int xpos,ypos,popcounter=0;
    double DC1[] = new double[4];
    double DC2[] = new double[4];
    double DC3[] = new double[4];
    double DC4[] = new double[4];
    boolean rect1Active[] = new boolean[4];
    boolean rect1Active2[] = new boolean[4];
    boolean rect1Active3[] = new boolean[4];
    boolean rect1Active4[] = new boolean[4];
    double DF1[] = new double[4];
    double DF2[] = new double[4];
    double DF3[] = new double[4];
    double DF4[] = new double[4];
    double Ap[] = new double[4];
    double Bp[] = new double[4];
    double Cp[] = new double[4];
    double Dp[] = new double[4];
    int rect1width[] = new int[4];
    int rect1height[] = new int[4];
    int rect1xco[] = new int[4];
    int rect1yco[] = new int[4];
    int rect1width2[] = new int[4];
    int rect1height2[] = new int[4];
    int rect1xco2[] = new int[4];
    int rect1yco2[] = new int[4];
    int rect1width3[] = new int[4];
    int rect1height3[] = new int[4];
    int rect1xco3[] = new int[4];
    int rect1yco3[] = new int[4];
    int rect1width4[] = new int[4];
    int rect1height4[] = new int[4];
    int rect1xco4[] = new int[4];
    int rect1yco4[] = new int[4];
    double rect1width5[] = new double[4];
    double rect1height5[] = new double[4];
    double rect1xco5[] = new double[4];
    double rect1yco5[] = new double[4];
    public GUICanvas() {
    setBackground( Color.black );
    TheKing();
    addMouseListener(this);
    addMouseMotionListener(this);
    public void TheKing()
    double X=740, Y=470, Ap=0,Bp=0,Cp=0,Dp=0;
    String line[] = new String[4];
    /* try {
    URL url = new URL(
         "http://localhost:111/test/servlet/TestServlet");
    BufferedReader in = new BufferedReader(
         new InputStreamReader(url.openStream()));
    for (int i = 0; i<4; i++)
    line[i] = in.readLine();
    in.close();
    }catch (Exception e){
    e.printStackTrace();
    line[0] = "200";
    line[1] = "200";
    line[2] = "200";
    line[3] = "200";
    Aa = s2d(line[0]);
    Ba = s2d(line[1]);
    Ca = s2d(line[2]);
    Da = s2d(line[3]);
    rect1xco5[0] = 20;
    rect1yco5[0] = 20;
    Sum=Aa+Ba+Ca+Da;
    Ap = (Aa/Sum)*100;
    Bp = (Ba/Sum)*100;
    Cp = (Ca/Sum)*100;
    Dp = (Da/Sum)*100;
    A= (Ap/100)*(X*Y);
    B= (Bp/100)*(X*Y);
    C= (Cp/100)*(X*Y);
    D= (Dp/100)*(X*Y);
    Q = ((A*C)+(X*Y*D)+(X*C*Y)+(B*X*Y)-(Y*A*X)-((X*X)*(Y*Y))-(B*D))/((X*(Y*Y))-(Y*D)-(C*Y));
    Z = (((X*X)*Y*A)-(X*C*A)-(B*X*A))/((X*(Y*Y))-(Y*D)-(C*Y));
    A1 =((-Q) + (Math.sqrt((Q*Q)-(4*P*Z))))/(2*P);
    A2=A/A1;
    B1=X-A1;
    B2=B/B1;
    D2=Y-A2;
    D1=D/D2;
    C1=X-D1;
    C2=C/C1;
    S1=B2+C2;
    rect1width5[0] = d2i(A1);
    rect1height5[0] = d2i(A2);
    rect1width5[1] = d2i(B1);
    rect1height5[1] = d2i(B2);
    rect1width5[2] = d2i(D1);
    rect1height5[2] = d2i(D2);
    rect1width5[3] = d2i(C1);
    rect1height5[3] = d2i(C2);
    rect1xco5[1] = rect1xco5[0] + rect1width5[0];
    rect1yco5[1] = rect1xco5[0];
    rect1xco5[2] = rect1xco5[0];
    rect1yco5[2] = rect1yco5[0] + rect1height5[0];
    rect1xco5[3] = rect1xco5[0] + rect1width5[2];
    rect1yco5[3] = rect1yco5[0] + rect1height5[1];
    k1=rect1xco5[0]+rect1width5[0];
    k2=rect1yco5[0]+rect1height5[0];
    l1=rect1width5[1]-20;
    l2=rect1yco5[1]+rect1height5[1];
    r1=rect1xco5[0]+rect1width5[2];
    r2=rect1height5[2]-20;
    u1=rect1width5[3]-20;
    u2=rect1height5[3]-20;
    RegionOne(k1, k2);
    RegionTwo(l1,l2);
    RegionThree(r1, r2);
    RegionFour(u1, u2);
    public void RegionOne(double X1, double Y1)
    String line[] = new String[4];
    /* try {
    URL url = new URL(
         "http://localhost:111/test/servlet/TestServlet1?name=ONE");
    BufferedReader in = new BufferedReader(
         new InputStreamReader(url.openStream()));
    for (int i = 0; i<4; i++)
    line[i] = in.readLine();
    in.close();
    }catch (Exception e){
    e.printStackTrace();
    line[0] = "1200";
    line[1] = "2100";
    line[2] = "1200";
    line[3] = "2100";
    DC1[0] = Aa1 ;
    DC1[1] = Ba1 ;
    DC1[2] = Ca1;
    DC1[3] = Da1;
    Aa1 = s2d(line[0]);
    Ba1 = s2d(line[1]);
    Ca1 = s2d(line[2]);
    Da1 = s2d(line[3]);
    DF1[0] = Aa1 ;
    DF1[1] = Ba1 ;
    DF1[2] = Ca1;
    DF1[3] = Da1;
    rect1xco[0] = 20;
    rect1yco[0] = 20;
    Sum1=Aa1+Ba1+Ca1+Da1;
    Ap[0] = (Aa1/Sum1)*100;
    Bp[0] = (Ba1/Sum1)*100;
    Cp[0] = (Ca1/Sum1)*100;
    Dp[0] = (Da1/Sum1)*100;
    A= (Ap[0]/100)*(X1*Y1);
    B= (Bp[0]/100)*(X1*Y1);
    C= (Cp[0]/100)*(X1*Y1);
    D= (Dp[0]/100)*(X1*Y1);
    Q = ((A*C)+(X1*Y1*D)+(X1*C*Y1)+(B*X1*Y1)-(Y1*A*X1)-((X1*X1)*(Y1*Y1))-(B*D))/((X1*(Y1*Y1))-(Y1*D)-(C*Y1));
    Z = (((X1*X1)*Y1*A)-(X1*C*A)-(B*X1*A))/((X1*(Y1*Y1))-(Y1*D)-(C*Y1));
    A1 =((-Q) + (Math.sqrt((Q*Q)-(4*P*Z))))/(2*P);
    A2=A/A1;
    B1=X1-A1;
    B2=B/B1;
    D2=Y1-A2;
    D1=D/D2;
    C1=X1-D1;
    C2=C/C1;
    S1=B2+C2;
    rect1width[0] = d2i(A1);
    rect1height[0] = d2i(A2);
    rect1width[1] = d2i(B1);
    rect1height[1] = d2i(B2);
    rect1width[2] = d2i(D1);
    rect1height[2] = d2i(D2);
    rect1width[3] = d2i(C1);
    rect1height[3] = d2i(C2);
    rect1xco[1] = rect1xco[0] + rect1width[0];
    rect1yco[1] = rect1xco[0];
    rect1xco[2] = rect1xco[0];
    rect1yco[2] = rect1yco[0] + rect1height[0];
    rect1xco[3] = rect1xco[0] + rect1width[2];
    rect1yco[3] = rect1yco[0] + rect1height[1];
    public void RegionTwo(double X2, double Y2)
    String line[] = new String[4];
    /* try {
    URL url = new URL(
         "http://localhost:111/test/servlet/TestServlet1?name=TWO");
    BufferedReader in = new BufferedReader(
         new InputStreamReader(url.openStream()));
    for (int i = 0; i<4; i++)
    line[i] = in.readLine();
    in.close();
    catch (Exception e){
    e.printStackTrace();
    line[0] = "1200";
    line[1] = "2100";
    line[2] = "1200";
    line[3] = "2100";
    DC2[0] = Aa2;
    DC2[1] = Ba2;
    DC2[2] = Ca2;
    DC2[3] = Da2;
    Aa2 = s2d(line[0]);
    Ba2 = s2d(line[1]);
    Ca2 = s2d(line[2]);
    Da2 = s2d(line[3]);
    DF2[0] = Aa2 ;
    DF2[1] = Ba2 ;
    DF2[2] = Ca2;
    DF2[3] = Da2;
    rect1xco2[0] = rect1xco[1]+rect1width[1];
    rect1yco2[0] = 20;
    Sum2=Aa2+Ba2+Ca2+Da2;
    Ap[1] = (Aa2/Sum2)*100;
    Bp[1] = (Ba2/Sum2)*100;
    Cp[1] = (Ca2/Sum2)*100;
    Dp[1] = (Da2/Sum2)*100;
    A= (Ap[1]/100)*(X2*Y2);
    B= (Bp[1]/100)*(X2*Y2);
    C= (Cp[1]/100)*(X2*Y2);
    D= (Dp[1]/100)*(X2*Y2);
    Q = ((A*C)+(X2*Y2*D)+(X2*C*Y2)+(B*X2*Y2)-(Y2*A*X2)-((X2*X2)*(Y2*Y2))-(B*D))/((X2*(Y2*Y2))-(Y2*D)-(C*Y2));
    Z = (((X2*X2)*Y2*A)-(X2*C*A)-(B*X2*A))/((X2*(Y2*Y2))-(Y2*D)-(C*Y2));
    A1 =((-Q) + (Math.sqrt((Q*Q)-(4*P*Z))))/(2*P);
    A2=A/A1;
    B1=X2-A1;
    B2=B/B1;
    D2=Y2-A2;
    D1=D/D2;
    C1=X2-D1;
    C2=C/C1;
    rect1width2[0] = d2i(A1);
    rect1height2[0] = d2i(A2);
    rect1width2[1] = d2i(B1);
    rect1height2[1] = d2i(B2);
    rect1width2[2] = d2i(D1);
    rect1height2[2] = d2i(D2);
    rect1width2[3] = d2i(C1);
    rect1height2[3] = d2i(C2);
    rect1xco2[1] = rect1xco2[0] + rect1width2[0];
    rect1yco2[1] = rect1yco2[0];
    rect1xco2[2] = rect1xco2[0];
    rect1yco2[2] = rect1yco2[0] + rect1height2[0];
    rect1xco2[3] = rect1xco2[0] + rect1width2[2];
    rect1yco2[3] = rect1yco2[0] + rect1height2[1];
    public void RegionThree(double X3, double Y3)
    String line[] = new String[4];
    /* try {
    URL url = new URL(
         "http://localhost:111/test/servlet/TestServlet1?name=THREE");
    BufferedReader in = new BufferedReader(
         new InputStreamReader(url.openStream()));
    for (int i = 0; i<4; i++)
    line[i] = in.readLine();
    in.close();
    catch (Exception e){
    e.printStackTrace();
    line[0] = "1200";
    line[1] = "2100";
    line[2] = "1200";
    line[3] = "2100";
    DC3[0] = Aa3 ;
    DC3[1] = Ba3 ;
    DC3[2] = Ca3;
    DC3[3] = Da3;
    Aa3 = s2d(line[0]);
    Ba3 = s2d(line[1]);
    Ca3 = s2d(line[2]);
    Da3 = s2d(line[3]);
    DF3[0] = Aa3 ;
    DF3[1] = Ba3;
    DF3[2] = Ca3;
    DF3[3] = Da3;
    rect1xco3[0] = 20;
    rect1yco3[0] = rect1yco[2]+rect1height[2];
    Sum3=Aa3+Ba3+Ca3+Da3;
    Ap[2] = (Aa3/Sum3)*100;
    Bp[2] = (Ba3/Sum3)*100;
    Cp[2] = (Ca3/Sum3)*100;
    Dp[2] = (Da3/Sum3)*100;
    A= (Ap[2]/100)*(X3*Y3);
    B= (Bp[2]/100)*(X3*Y3);
    C= (Cp[2]/100)*(X3*Y3);
    D= (Dp[2]/100)*(X3*Y3);
    Q = ((A*C)+(X3*Y3*D)+(X3*C*Y3)+(B*X3*Y3)-(Y3*A*X3)-((X3*X3)*(Y3*Y3))-(B*D))/((X3*(Y3*Y3))-(Y3*D)-(C*Y3));
    Z = (((X3*X3)*Y3*A)-(X3*C*A)-(B*X3*A))/((X3*(Y3*Y3))-(Y3*D)-(C*Y3));
    A1 =((-Q) + (Math.sqrt((Q*Q)-(4*P*Z))))/(2*P);
    A2=A/A1;
    B1=X3-A1;
    B2=B/B1;
    D2=Y3-A2;
    D1=D/D2;
    C1=X3-D1;
    C2=C/C1;
    rect1width3[0] = d2i(A1);
    rect1height3[0] = d2i(A2);
    rect1width3[1] = d2i(B1);
    rect1height3[1] = d2i(B2);
    rect1width3[2] = d2i(D1);
    rect1height3[2] = d2i(D2);
    rect1width3[3] = d2i(C1);
    rect1height3[3] = d2i(C2);
    rect1xco3[1] = rect1xco3[0] + rect1width3[0];
    rect1yco3[1] = rect1yco[3] + rect1height[3];
    rect1xco3[2] = rect1xco3[0];
    rect1yco3[2] = rect1yco3[0] + rect1height3[0];
    rect1xco3[3] = rect1xco3[0] + rect1width3[2];
    rect1yco3[3] = rect1yco3[0] + rect1height3[1];
    public void RegionFour(double X4, double Y4)
    String line[] = new String[4];
    /*try {
    URL url = new URL(
         "http://localhost:111/test/servlet/TestServlet1?name=FOUR");
    BufferedReader in = new BufferedReader(
         new InputStreamReader(url.openStream()));
    for (int i = 0; i<4; i++)
    line[i] = in.readLine();
    in.close();
    catch (Exception e){
    e.printStackTrace();
    line[0] = "1200";
    line[1] = "2100";
    line[2] = "1200";
    line[3] = "2100";
    DC4[0] = Aa4 ;
    DC4[1] = Ba4 ;
    DC4[2] = Ca4;
    DC4[3] = Da4;
    Aa4 = s2d(line[0]);
    Ba4 = s2d(line[1]);
    Ca4 = s2d(line[2]);
    Da4 = s2d(line[3]);
    DF4[0] = Aa4 ;
    DF4[1] = Ba4 ;
    DF4[2] = Ca4;
    DF4[3] = Da4;
    rect1xco4[0] = rect1xco3[1]+rect1width3[1];
    rect1yco4[0] = rect1yco2[2]+rect1height2[2];
    Sum4=Aa4+Ba4+Ca4+Da4;
    Ap[3] = (Aa4/Sum4)*100;
    Bp[3] = (Ba4/Sum4)*100;
    Cp[3] = (Ca4/Sum4)*100;
    Dp[3] = (Da4/Sum4)*100;
    A= (Ap[3]/100)*(X4*Y4);
    B= (Bp[3]/100)*(X4*Y4);
    C= (Cp[3]/100)*(X4*Y4);
    D= (Dp[3]/100)*(X4*Y4);
    Q = ((A*C)+(X4*Y4*D)+(X4*C*Y4)+(B*X4*Y4)-(Y4*A*X4)-((X4*X4)*(Y4*Y4))-(B*D))/((X4*(Y4*Y4))-(Y4*D)-(C*Y4));
    Z = (((X4*X4)*Y4*A)-(X4*C*A)-(B*X4*A))/((X4*(Y4*Y4))-(Y4*D)-(C*Y4));
    A1 =((-Q) + (Math.sqrt((Q*Q)-(4*P*Z))))/(2*P);
    A2=A/A1;
    B1=X4-A1;
    B2=B/B1;
    D2=Y4-A2;
    D1=D/D2;
    C1=X4-D1;
    C2=C/C1;
    rect1width4[0] = d2i(A1);
    rect1height4[0] = d2i(A2);
    rect1width4[1] = d2i(B1);
    rect1height4[1] = d2i(B2);
    rect1width4[2] = d2i(D1);
    rect1height4[2] = d2i(D2);
    rect1width4[3] = d2i(C1);
    rect1height4[3] = d2i(C2);
    rect1xco4[1] = rect1xco4[0] + rect1width4[0];
    rect1yco4[1] = rect1yco2[2]+rect1height2[2];
    rect1xco4[2] = rect1xco4[0];
    rect1yco4[2] = rect1yco4[0] + rect1height4[0];
    rect1xco4[3] = rect1xco4[0] + rect1width4[2];
    rect1yco4[3] = rect1yco4[0] + rect1height4[1];
    static int d2i(double d) {return (int) Math.round(d);}
    static double i2d(int i) {return (double) i;}
    static double s2d(String s)
    double i=0;
    try{  return i = Double.parseDouble(s);}
    catch(NumberFormatException e)
    {  e.printStackTrace();}
    return i;
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    int k11=d2i(k1);
    int k21=d2i(k2);
    int l11=d2i(l1);
    int l21=d2i(l2);
    int r11=d2i(r1);
    int r21=d2i(r2);
    int u11=d2i(u1);
    int u21=d2i(u2);
    g.setColor(Color.magenta);
    g.drawRect(rect1xco[0]-2,rect1yco[0]-2,k11+2,k21+2);
    g.drawRect(rect1xco[0]-1,rect1yco[0]-1,k11+2,k21+1);
    g.drawRect(rect1xco2[0]+1,rect1yco2[0]-1,l11+1,l21+1);
    g.drawRect(rect1xco2[0]+1,rect1yco2[0]-2,l11+2,l21+2);
    g.drawRect(rect1xco3[0]-1,rect1yco3[0]+1,r11+2,r21+1);
    g.drawRect(rect1xco3[0]-2,rect1yco3[0]+1,r11+2,r21+2);
    g.drawRect(rect1xco4[0]+1,rect1yco4[0]+1,u11+2,u21+1);
    g.drawRect(rect1xco4[0]+1,rect1yco4[0]+1,u11+1,u21+2);
    g.setColor(Color.cyan);
    g.drawRect(16,16,749,479);
    g.drawRect(17,17,747,477);
    if (rect1Active[0])
    // First Rectangle's coloring of the Region One
    if(DC1[0] == DF1[0])
    g.setColor(Color.black);
    g.fillRect(rect1xco[0]+2,rect1yco[0]+2,rect1width[0]-4,rect1height[0]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[0],rect1yco[0],rect1width[0]-1,rect1height[0]-1);
    g.drawRect(rect1xco[0]+1,rect1yco[0]+1,rect1width[0]-3,rect1height[0]-3);
    else if(DC1[0] > DF1[0])
    g.setColor(Color.red);
    g.fillRect(rect1xco[0]+2,rect1yco[0]+2,rect1width[0]-4,rect1height[0]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[0],rect1yco[0],rect1width[0]-1,rect1height[0]-1);
    g.drawRect(rect1xco[0]+1,rect1yco[0]+1,rect1width[0]-3,rect1height[0]-3);
    else if(DC1[0] < DF1[0])
    g.setColor(Color.green);
    g.fillRect(rect1xco[0]+2,rect1yco[0]+2,rect1width[0]-4,rect1height[0]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[0],rect1yco[0],rect1width[0]-1,rect1height[0]-1);
    g.drawRect(rect1xco[0]+1,rect1yco[0]+1,rect1width[0]-3,rect1height[0]-3);
    else
    if(DC1[0] == DF1[0])
    g.setColor(Color.black);
    g.fillRect(rect1xco[0],rect1yco[0],rect1width[0],rect1height[0]);
    else if(DC1[0] > DF1[0])
    g.setColor(Color.red);
    g.fillRect(rect1xco[0],rect1yco[0],rect1width[0],rect1height[0]);
    else if(DC1[0] < DF1[0])
    g.setColor(Color.green);
    g.fillRect(rect1xco[0],rect1yco[0],rect1width[0],rect1height[0]);
    if (rect1Active[1])
    // Second Rectangle's coloring of the Region One
    if(DC1[1] == DF1[1])
    g.setColor(Color.black);
    g.fillRect(rect1xco[1]+2,rect1yco[1]+2,rect1width[1]-4,rect1height[1]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[1],rect1yco[1],rect1width[1]-1,rect1height[1]-1);
    g.drawRect(rect1xco[1]+1,rect1yco[1]+1,rect1width[1]-3,rect1height[1]-3);
    else if(DC1[1] > DF1[1])
    g.setColor(Color.red);
    g.fillRect(rect1xco[1]+2,rect1yco[1]+2,rect1width[1]-4,rect1height[1]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[1],rect1yco[1],rect1width[1]-1,rect1height[1]-1);
    g.drawRect(rect1xco[1]+1,rect1yco[1]+1,rect1width[1]-3,rect1height[1]-3);
    else if(DC1[1] < DF1[1])
    g.setColor(Color.green);
    g.fillRect(rect1xco[1]+2,rect1yco[1]+2,rect1width[1]-4,rect1height[1]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[1],rect1yco[1],rect1width[1]-1,rect1height[1]-1);
    g.drawRect(rect1xco[1]+1,rect1yco[1]+1,rect1width[1]-3,rect1height[1]-3);
    else
    if(DC1[1] == DF1[1])
    g.setColor(Color.black);
    g.fillRect(rect1xco[1],rect1yco[1],rect1width[1],rect1height[1]);
    else if(DC1[1] > DF1[1])
    g.setColor(Color.red);
    g.fillRect(rect1xco[1],rect1yco[1],rect1width[1],rect1height[1]);
    else if(DC1[1] < DF1[1])
    g.setColor(Color.green);
    g.fillRect(rect1xco[1],rect1yco[1],rect1width[1],rect1height[1]);
    if (rect1Active [2])
    // Third Rectangle's coloring of the Region One
    if(DC1[2] == DF1[2])
    g.setColor(Color.black);
    g.fillRect(rect1xco[2]+2,rect1yco[2]+2,rect1width[2]-4,rect1height[2]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[2],rect1yco[2],rect1width[2]-1,rect1height[2]-1);
    g.drawRect(rect1xco[2]+1,rect1yco[2]+1,rect1width[2]-3,rect1height[2]-3);
    else if(DC1[2] > DF1[2])
    g.setColor(Color.red);
    g.fillRect(rect1xco[2]+2,rect1yco[2]+2,rect1width[2]-4,rect1height[2]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[2],rect1yco[2],rect1width[2]-1,rect1height[2]-1);
    g.drawRect(rect1xco[2]+1,rect1yco[2]+1,rect1width[2]-3,rect1height[2]-3);
    else if(DC1[2] < DF1[2])
    g.setColor(Color.green);
    g.fillRect(rect1xco[2]+2,rect1yco[2]+2,rect1width[2]-4,rect1height[2]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[2],rect1yco[2],rect1width[2]-1,rect1height[2]-1);
    g.drawRect(rect1xco[2]+1,rect1yco[2]+1,rect1width[2]-3,rect1height[2]-3);
    else
    if(DC1[2] == DF1[2])
    g.setColor(Color.black);
    g.fillRect(rect1xco[2],rect1yco[2],rect1width[2],rect1height[2]);
    else if(DC1[2] > DF1[2])
    g.setColor(Color.red);
    g.fillRect(rect1xco[2],rect1yco[2],rect1width[2],rect1height[2]);
    else if(DC1[2] < DF1[2])
    g.setColor(Color.green);
    g.fillRect(rect1xco[2],rect1yco[2],rect1width[2],rect1height[2]);
    if (rect1Active [3])
    //Fourth Rectangle's coloring of the Region One
    if(DC1[3] == DF1[3])
    g.setColor(Color.black);
    g.fillRect(rect1xco[3]+2,rect1yco[3]+2,rect1width[3]-4,rect1height[3]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[3],rect1yco[3],rect1width[3]-1,rect1height[3]-1);
    g.drawRect(rect1xco[3]+1,rect1yco[3]+1,rect1width[3]-3,rect1height[3]-3);
    else if(DC1[3] > DF1[3])
    g.setColor(Color.red);
    g.fillRect(rect1xco[3]+2,rect1yco[3]+2,rect1width[3]-4,rect1height[3]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[3],rect1yco[3],rect1width[3]-1,rect1height[3]-1);
    g.drawRect(rect1xco[3]+1,rect1yco[3]+1,rect1width[3]-3,rect1height[3]-3);
    else if(DC1[3] < DF1[3])
    g.setColor(Color.green);
    g.fillRect(rect1xco[3]+2,rect1yco[3]+2,rect1width[3]-4,rect1height[3]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco[3],rect1yco[3],rect1width[3]-1,rect1height[3]-1);
    g.drawRect(rect1xco[3]+1,rect1yco[3]+1,rect1width[3]-3,rect1height[3]-3);
    else
    if(DC1[3] == DF1[3])
    g.setColor(Color.black);
    g.fillRect(rect1xco[3],rect1yco[3],rect1width[3],rect1height[3]);
    else if(DC1[3] > DF1[3])
    g.setColor(Color.red);
    g.fillRect(rect1xco[3],rect1yco[3],rect1width[3],rect1height[3]);
    else if(DC1[3] < DF1[3])
    g.setColor(Color.green);
    g.fillRect(rect1xco[3],rect1yco[3],rect1width[3],rect1height[3]);
    if (rect1Active2[0])
    // First Rectangle's coloring of the Region Two
    if(DC2[0] == DF2[0])
    g.setColor(Color.black);
    g.fillRect(rect1xco2[0]+4,rect1yco2[0]+2,rect1width2[0]-4,rect1height2[0]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco2[0]+2,rect1yco2[0],rect1width2[0]-1,rect1height2[0]-1);
    g.drawRect(rect1xco2[0]+3,rect1yco2[0]+1,rect1width2[0]-3,rect1height2[0]-3);
    else if(DC2[0] > DF2[0])
    g.setColor(Color.red);
    g.fillRect(rect1xco2[0]+4,rect1yco2[0]+2,rect1width2[0]-4,rect1height2[0]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco2[0]+2,rect1yco2[0],rect1width2[0]-1,rect1height2[0]-1);
    g.drawRect(rect1xco2[0]+3,rect1yco2[0]+1,rect1width2[0]-3,rect1height2[0]-3);
    else if(DC2[0] < DF2[0])
    g.setColor(Color.green);
    g.fillRect(rect1xco2[0]+4,rect1yco2[0]+2,rect1width2[0]-4,rect1height2[0]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco2[0]+2,rect1yco2[0],rect1width2[0]-1,rect1height2[0]-1);
    g.drawRect(rect1xco2[0]+3,rect1yco2[0]+1,rect1width2[0]-3,rect1height2[0]-3);
    else
    if(DC2[0] == DF2[0])
    g.setColor(Color.black);
    g.fillRect(rect1xco2[0]+2,rect1yco2[0],rect1width2[0],rect1height2[0]);
    else if(DC2[0] > DF2[0])
    g.setColor(Color.red);
    g.fillRect(rect1xco2[0]+2,rect1yco2[0],rect1width2[0],rect1height2[0]);
    else if(DC2[0] < DF2[0])
    g.setColor(Color.green);
    g.fillRect(rect1xco2[0]+2,rect1yco2[0],rect1width2[0],rect1height2[0]);
    if (rect1Active2[1])
    // Second Rectangle's coloring of the Region Two
    if(DC2[1] == DF2[1])
    g.setColor(Color.black);
    g.fillRect(rect1xco2[1]+4,rect1yco2[1]+2,rect1width2[1]-4,rect1height2[1]-4);
    g.setColor(Color.yellow);
    g.drawRect(rect1xco2[1]+2,rect1yco2[1],rect1width2[1]-1,rect1height2[1]-1);
    g.drawRect(rect1xco2[1]+3,rect1yco2[1]+1,rect1width2[1]-3,rect1height2[1]-3);

    Could you show me how to use it as an applet. If you
    can modify my code and make it working it would be
    very helpful.
    Best regards
    AliPerhaps you could start [url http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html]here[url                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help!! how to use RTP libraries

    Hi you all,
    i have to implement SIP then i were told you have to download RTP libraries i don't know how to download and how to use ,plz anybody can help me :'(

    http://forum.java.sun.com/thread.jspa?threadID=627137&tstart=0
    http://java.sun.com/products/jain/learning/tutorial/index.html
    search forum!!

  • Need help!! How to use super in equals() method and makeCopy() method?

    This is my Name class:
    class Name {
        private String title;
        private String name;
        public Name(){
             title=" ";
             name=" ";
        public Name(String title){
             setTitle(title);
             name=" ";
        public Name(String title,String name){
             setTitle(title);
             setName(name);
        public void setTitle(String title){
             this.title=title;
        public String getTitle(){
             return title;
        public void setName(String name){
             this.name=name;
        public String getName(){
             return name;
        }   This is my Person Class
    class Person extends Name{
        private String address;
        private String tel;
        private String email;     
        public Person(){
             super();
             address=" ";
             tel=" ";
             email=" ";
        public Person(String name){
             super(name);
             address=" ";
             tel=" ";
             email=" ";
        public Person(String title,String name,String addressStr){
             super(title,name);
             setAddress(addressStr);
             tel=" ";
             email=" ";
        public Person(String title,String name,String addressStr,String phoneNum){
             super(title,name);
             setAddress(addressStr);
             setTel(phoneNum);
             email=" ";
        public Person(String title,String name,String addressStr,String phoneNum,String emailStr){
             super(title,name);
             setAddress(addressStr);
             setTel(phoneNum);
             setEmail(emailStr);
        public void setAddress(String add){
             address=add;
        public String getAddress(){
             return address;
        public void setTel(String telephone){
             tel=telephone;
        public String getTel(){
             return tel;
        public void setEmail(String emailAdd){
             email=emailAdd;
        public String getEmail(){
             return email;
         public boolean equals(Person inputRecords){
             boolean equalOrNot=false;
             if(inputRecords.super(getTitle()).equals(title))         //this is wrong
                  if(inputRecords.super(getName()).equals(name))           //this is wrong
                       if(inputRecords.getAddress().equals(address))
                            if(inputRecords.getTel().equals(tel))
                                 if(inputRecords.getEmail().equals(email))
                                      equalOrNot=true;
             return equalOrNot;   
            public void makeCopy(Person copyInto){
                 copyInto.super(setTitle(title));             //this is wrong
                 copyInto.super(setName(name));           //this is wrong
                 copyInto.setAddress(address);
                 copyInto.setTel(tel);
                 copyInto.setEmail(email);
    }How can I correct the wrong part?
    I don't understand how to use super in equals() method and makeCopy() method.

    Try something like this ...
    public boolean equals(Object other) {
      if (other==null || !(other instanceof Person)) return false;
      Person that = (Person) other;
      return getTitle().equals(that.getTitle())
          && getName().equals(that.getName())
          && getAddress().equals(that.getAddress())
          && getTel().equals(that.getTel())
          && getEmail().equals(that.getEmail())
    Notes:
    * This overrides Object's public boolean equals(Object other), which is (probably) what you meant.
    * You don't need to call "super.getWhatever" explicitly... just call "getWhatever" and let java workout where it's defined... this is better because if you then override getTitle() for example you don't need to change your equals method (which you would otherwise probably forget to do, which would probably have some interesting side effects.
    Cheers. Keith.

  • How to use database link in from6i?

    I can use database link in sql plus,but i can't use it in forms6i,why? thanks

    Don't know why.
    What I always do is create a synonym on the local database which points (through the db link) to the object on the other database.
    Regards,
    Meine

  • How to use Alias name in OData service in SAP HANA

    Hi,
         I need to change one column name with alias of another name in odata service definition or odata url running in rest client. I am trying to give alias name with as key in the service definition like sql query.
    ex:
    There is one table with column name of PRODUCT_ID. I exporting that table via odata service to SAP UI. In the UI i dont want the product id column as PRODUCT_ID. It should be ike "Prodcut". Like we are using in SQL example
    select "PRODUCT_ID" as "Product" from "producttab";
    But i can't use as key for alias name. So i am getting syntax error.
    I have tried in rest client also ie executing odata file in rest based service. But i got error only.
    If anyone knows about this alias name in odata service, Please help me to resolve this issue..

    Hi Thomas
         Thanks for your reply.
         Actually in odata service definition i am using attribute and calculation views only. But in some case from the model view itself i need to use some alias names to the UI through odata service.
         For example in attribute view i have some columns with name col1,col2... I am getting those columns in UI using  odata service, for particular col2 column i need to change column name as product. And i am using the same view as source of another odata service in that service i need to change that column name as productname.
         In that case i need alias name usage. So that only i am searching alias keyword in odata service.
         Is there any possibility to use alias names in odata service.

Maybe you are looking for

  • HT4436 How do I create a new iCloud account?

    How do I create a new iCloud account?

  • Data Collection - values remained filled in from previous run through route

    Hello, We have an SFC that is running through a route the second time that requires specific Data Collection to be captured, but when Data Collection is attempted the values are all pre-filled in (and grayed out) from the previous run through the rou

  • Starcraft 2?

    Can my Mac Mini Play starcraft 2 on Ultra at comfortable frame rates? I wanna play this game for about 2 hrs a day on my mac mini. Will it overheat?

  • MS SQL to Oracle 8.1.6/7

    When using Migration WB on SQL server 7 users are by default migrated too, this includes the standard MS SQL user 'sa' and in my case another user 'A'. When migrating since all tables in the SQL db was created by 'sa' so will they be in oracle. This

  • Upgrade from CRM 4.0 sp6 to CRM 2007

    We are in the process of upgrading our sandpit from CRM 4.0 sp 6 to CRM 2007 as part of an overall CRM upgrade project.  The technical upgrade phase went fine we now have the sandpit running some of the standard delieved business roles etc.  My quest