Getting the id of an instance of a java object

hi,
i hope this is a real simple one... i need to get the object id of an object to compare it manually with an other object.
what for : i need to be able to compare the dump of a tree structure built up with javax.swing.text.AbstractDocument.AbstractElement at two different moments in time.
in eclipse, when debugging and i inspect one of the Elements, the eclipse shows me an id, how do i get that one in the code?
thanx for your help
dominik

you could use the Object's hashCode function to return something to you that could be used as an ID for hte object - but I don't know what eclipse uses.
good luck
Lee

Similar Messages

  • How to get the list of application instance assigned to user

    Hi,
    I need to run the query in BI publisher to get the list of all the application instance assigned to a user in OIM 11g R2.
    Please let me know how to get this data. Also please let me know what is the table to see the list of application instance in OIM.
    Thanks

    Got this working..
    The table is APP_Instance to get the details of Application Instance present in OIM.

  • How to get the list of unviewed Instances?

    Hi All,
    Can anyone tell me how to get the list of unviewed instances?
    I want to get all the instances which have been scheduled but not viewed.
    Please help me on this.
    I tried to get the info from audit report but i could not able to achieve it.
    is it possible from query builder?
    Thanks,
    Nagaveni

    Hi Ravi,
    Thank you for the reply!!
    Then it is not possible to get the unviewed reports.
    how does it work if i create a audit report with Viewed status and list of all instances then we can filter out the unviewed reports.
    Does above solution is going to work?
    i have not tried yet, seeking your opinion.

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • How to get the current path of my application in java ?

    how to get the current path of my application in java ?
    thanks

    To get the path where your application has been installed you have to do the following:
    have a class called "what_ever" in the folder.
    then you do a litte:
    String path=
    what_ever.class.getRessource("what_ever.class").toString()
    That get you a string like:
    file:/C:/Program Files/Cool_program/what_ever.class
    Then you process the result a little to remove anything you don't want:
    path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
    //Might be a little error here but you should find out //quickly if it's the case
    And here you go, you have a nice
    C:/Program Files/Cool_program
    which is the path to your application.
    Hooray

  • How to get the Stateful Session bean instance in the second call

    Hi,
    I am new to EJBs. I have made a Stateful session bean on the first jsp page. In this page i am setting certain member variables of the EJB. Now in the second page i want to get these stored values in the EJB.
    In the second page do I...
    1. Store the instance of Remote Interface in the Session Context of the first JSP page and then in the second page get the Remote interface stored in its session context and call the business functions to get the values. If this is the case then what do u mean by Stateful Session beans??
    P.S.- This works fine.
    2. Try to get the Remote interface of that particular instance of the EJB(in which the values were stored) and call its business functions. IF this is possible. How do i do it??
    thanks in advance
    Anurag

    Hi,
    thanks for information. But i have one question. In a stateful session bean why do we have to store the Remote Interface on the client side.
    I expected in the second jsp page when i do a lookup or create, the container/server should find out whether there is a session bean already created for this session if yes, then return that particular instance of the session bean else create a new one.
    If this is not a possible case then a stateful session bean is nuthing but an instance of an object in the EJB container which does not get destroyed unless there is a time out or the remove method is called. It has nuthing to do with session because throughout the session I have to store the remote interface in the session context of the client( the client here means the jsp).
    thanks in advance
    Anurag

  • How to get the list of grabbed instances?

    Hi Friends
    In my project there exists thousand's of instances. So time back I executed the GRAB activity on some instances & routed the instances to different activities in the process. Now I want to know the list of all the instances on which this grab activity is executed. Is it possible to get the grabbed instances list?
    If so please shoot your ideas to resolve this. Thanks in advance.
    Thanks
    Santosh K.

    basically, you need to traverse through the "instance events", since you're trying to look at the history of particular threads. this information is stored in the pprocinstevent table in the engine database. you can obtain this data using the PAPI API. I don't believe the cataloged components expose that part of the PAPI API, so you're out of luck as there.
    there's no way to create a view in the workspace to display these without mucking around with variables (which might be the best and simplest approach)

  • Getting the name of an instance

    Hi,i`m having problems saving the name of an instance to a String variable.
    For example if i`ve written the following code:
    String s;
    A b = new A( );
    i`d like somehow the name of the instance(character b) to be stored to the String variable s.If anyone knows any method or way to do this please help,thanks.

    The variable is just a reference to the object. The object has no idea which variables you put it into.
    To give an object a name I pass a String to it and implement a getName() method.
    However it sounds like what you are trying to do might be done by a debugger. Are you trying to see what the values of your data are when it is running? If so use a debugger. The one which comes with NetBeans and Eclipse is free.

  • Need to get the list of all procedures called in an object

    Hi,
    I am trying to find the list of all proceudres called in an object. I can get the list of packages and individual procedures/functions using dba_dependencies, all_dependencies or user_dependencies. However this would not give me the list of procedures of a package that are used in my object.
    How to find the procedures of a package (and not just the package name) being called in another object?
    Thanks in advance
    Upendra

    You can take the package name from user_depencies and query the USER_SOURCE table for the object name where the package name exists.
    Eg code, here PKemp is the package name.
    SELECT SUBSTR(TEXT,INSTR(TEXT,'PKEMP'))
    FROM USER_SOURCE
    WHERE NAME = 'PROCEMP'
    AND INSTR(TEXT,'PKEMP') >=1
    SUBSTR(TEXT,INSTR(TEXT,'PKEMP'))
    PKEMP.SALUP;

  • How to get the list of all running process in java

    hi all,
    i want to get the list of all running processes on my system. please let me know if it is possible to do with JAVA. which class i should use?
    waiting for reply
    bye

    Wrong forum. Just a hint.

  • How to get the measure of area in HTML by Java

    Hi all,
    I know in JavaScript,
    clientheight and clientlength can get the measure of area of HTML element, but how can I implement this in Java?
    I understand I may need to have a much complete browser component first (for weak HTML rersolving in JDK), but I would like to know how HTML rendering works in JEditorPane and JTextPane, maybe that can help me solve the problem.
    Appreciate for any suggestions and references.
    Best regards,
    KaiLiang

    Thanks lots!!
    So, the View class in JDK does not deal with the width and length information, does it?
    If I want to solve my problem, I have to customize View class to make it can deal with width and length information.
    Is it possible to get width and lenth of elements when JEditorPane render the HTML?

  • How do I get the PID of a child process in java using JNI?

    I am writing an app in Java (for **nix) that will spawn multiple processes (using Process objects). I want to be able to get the PID for a particular child process (not the parent). How can I do this?

    You could try an extreme hack of using JNI to read whatever field of the java.lang.Process-derived class may hold a native process id. This would be unsupportable beyond the exact JVM(s) you can test it on, and should only be a last resort, but within these constraints it may work well. The source code for package java.lang gives clues of where to start hacking.
    -slj-

  • Why do I get the "this value would cause one or more objects to leave the pasteboard" message when p

    I'm placing images from Bridge by selecting the image or images and going to File>Place>In Indesign. This loads the cursor in ID and I attempt to click and drag a frame to size the image on the page. That's when I get the message.
    Placing images into existing frames is OK, and single click to place works also. Only when I click and drag to create a new frame.
    This happens every time regardless of image size, resolution or root folder location.
    Any ideas? Why is ID stuck with click & drag?
    iMac 2.66GHz 8GB RAM
    OSX 10.8.2

    Try trashing your prefs. See Replace Your Preferences

  • How to get the output of a C prgram to Java to the parent Java program

    Hi,
    Suppose there is a Java Program which calls inside it the C program.The C program outputs as below
    printf("%c%c",c1,c2);
    Now I have to take this output as an input of the Java Program for further processing.How can I do this?
    Tapas

    By reading from the output stream of the C program.
    (if you're not already reading the output stream of the program anyway, you should be - http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#2 )
    The format is a char, a space, a char, so just call read() three times and ignore the second value.

  • Getting invalid packages when installing support for stored java objects

    I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
    If you need more information please let me know and I will try to respond promptly.
    Thanks
    Chad Leath

    The PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.

Maybe you are looking for

  • Moving a catalog from old computer to the new one.

    The old computer (32 bit) has PSE 9 and the new one (64 bit) PSE 11. The Folders holding the photos will be on a data drive having the same letter as the old computer (both have separate dirves for data). So the adresses of the phots will be the same

  • Index in not used

    Hi Guys, I have a table FOLDER_CUSTOMER which has two columns folder_id and customer_id. We have index on the customer id but the customer_id is in this format '000900000000000000000000035102' which is same for most of the customers except the last 5

  • Colour is not right in illustrator cmyk pantone cyan and aqua

    I am trying to work with colours in illustrator.  I have set my colour mode to CMYK.  I am trying to create a light aqua colour and just keep getting "out of gamut" errors.  I tried using the colour book for Pantone and even entering the number of a

  • Threading ?

    So yeah im new to Java :D I'm trying figgure out how to call functions from another class in my project. Main as main and second as a second. I thoguht normally: Second second = new Second();would do the job. But I'm not sure how to confugre the othe

  • I am looking to replace macally BTmouse.

    I am looking to replace macally BTmouse. Any recomendations would be great.