Generating Object identifier

Hello all,
I'm looking for a way to generate an identifier for an Object based on the contents of the object, so basically when I set the fields with the same values the same identifier should be generated.
Anyone had an experience with this? Maybe there's already some API available?
Thanks in advance,
Dimitar

Well, I need to serialize couple of different versions of each object initialized with different data, and then later deserialize them, do some tests and so on..
But the point is that I need to generate a file name which will always be the same for the object initialized with the same data (no matter if anything has changed in the code of the class).

Similar Messages

  • Getting an Object Identifier String given a line of source code? HELP!

    (forgot to close the code tag on that last one!)
    Hi there,
    I am in desparate need of getting the object identifier given a particular line of source code. I need this for the debugger I'm writing, and since the jdb forum never gets reponses; just more unanswered questions.
    Right so, here's my problem in more detail. I can find out when a method is called in the Java virtual machine, and what its name is, and arguments and values and such like - using the Java Debugging Interface. BUT: unfortunately I cannot get the object identifier used in the source code that generated this call. I can however get a unique long id that identifies this object .. if that helps?(thinking hashtables here maybe?!)
    So, I may know that the constructor of EddClass has been called, and this the following line generated this call:
    EddClass edd = new EddClass();.. so what I need is a fail safe way of finding out "edd" from this - given all types of method calls.
    This is quite tricky because there are loads of ways methods can be called e.g.
    tty.getClassExclusions(); // Here I would know getClassExclusions had been called, and I would need to find out the object identifier "tty" called it
    Temp a, b, c;
    a = b = c = new Temp(); // Here I would know the constructor for Temp had been called, but now I would just want to know "c"
    AnotherEg ae = (new Egg()).getAnotherEg(); // and in this last case if I had found out that the Egg constructor had been called, I don't want to find out any object identifier from this line of code - since the object is anonymous; however if I had found out that getAnotherEg() had been called I would want "ae"Ok, well - please help: I'm making a Java Animator that will be freely available - that serves to graphically animate the execution of another java program. It'd be cool if one of you guys could help make it really cool. Plus there are Dukes available!!
    - Edd.

    this is quite a complicated question I think!
    I'm not sure but you maybe need to know just about the whole java lang. spec to do this.
    I'm sure there are plenty of free java parsers around, so unless you have a lot of time available its probably best to download one, figure some way to feed it a single line from within a code block, and extract its symbol table.
    Once you have the symbol table, there will probably be some other data available from the parser to say which are identifiers.
    Its then up to your debugger to figure out which one is the interesting one!
    sorry this is so vague but I think you've asked for something that is quite involved!
    asjf

  • SQL DEV DIFF TOOL : OMITS OBJECT IDENTIFIER CLAUSE

    Hi,
    The following is encountered in SQLDeveloper 3.2.20.09 where using Tools > Database Diff... results in DDL that omits the "OBJECT IDENTIFIER IS PRIMARY KEY" clause.
    Test SQL:
    create type dummy_typ as object
      id_num    integer,
      other_num integer
    create table dummy_otbl of dummy_typ
      constraint dummy_otbl_pk primary key ( id_num ) using index
      object identifier is primary key;
    When the diff tool generates the create table script it creates it but omits the OBJECT IDENTIFIER IS PRIMARY KEY clause. 
    Example:
      CREATE TABLE "AIMS_FEATURES"."DUMMY_OTBL" OF "AIMS_FEATURES"."DUMMY_TYP"
      ( CONSTRAINT "DUMMY_OTBL_PK" PRIMARY KEY ("ID_NUM") ENABLE
    Is this a Bug of sorts? Thanks in advance for your responses
    Cheers,
    Anand

    Possibly.
    What's the DDL for the object you're comparing it to, or is it just 'missing?'
    I'm looking at the DDL generated for the object in the object editor and it's including the phrase so the DIFF should also pick that up.
      CREATE TABLE "HR"."DUMMY_OTBL" OF "HR"."DUMMY_TYP"
       ( CONSTRAINT "DUMMY_OTBL_PK" PRIMARY KEY ("ID_NUM")
      USING INDEX (CREATE UNIQUE INDEX "HR"."DUMMY_OTBL_PK" ON "HR"."DUMMY_OTBL" ("ID_NUM")
      PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" )  ENABLE
       ) OBJECT IDENTIFIER IS PRIMARY KEY
       PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" ;

  • Test-OutlookConnectivity WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.

    Hi All,
    When we do a test-outlookconnectivity -protocol:http the result is a success but then we get the following:
    ClientAccessServer   ServiceEndpoint                               Scenario                           
    Result  Latency
    (MS)
    xxxxxxxxxxxx... xxxxxxxxxxxxxx                 Autodiscover: Web service request.  Success   46.80
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
     of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    So it looks like it's not completing successfully.
    I can't find anything on this in particular, and don't really know how to go about solving it - We are fully up to date, Exchange 2010 Sp2 with Rollup 5-v2
    Any help appreciated!

    hi,
    I have the same issue also on Exchange 2010 SP2 RU5v2
    I ran your command and get the below
    [PS] C:\Installs\report\Activesync>Test-OutlookConnectivity -Protocol:http |FL
    RunspaceId                  : ebd2c626-1634-40ad-a17e-c9a713d1a62b
    ServiceEndpoint             : autodiscover.domain.com
    Id                          : Autodiscover
    ClientAccessServer          : CAS01.domain.com
    Scenario                    : Autodiscover: Web service request.
    ScenarioDescription         :
    PerformanceCounterName      :
    Result                      : Success
    Error                       :
    UserName                    : Gazpromuk.intra\extest_645e41faa55f4
    StartTime                   : 8/21/2013 4:08:50 PM
    Latency                     : 00:00:00.1250048
    EventType                   : Success
    LatencyInMillisecondsString : 125.00
    Identity                    :
    IsValid                     : True
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
     Any help would be greatly appreciated, I also get random failures of OWA, EAS and web services, very frustrating
    I have no errors in the app event log
    thanks
    Faisal Saleem Windows Systems Analyst 07595781867

  • How can we assign sproxy generated objects to a different package?

    Hello Expert,
    We need to change the package assigment of sproxy generated DDIC objects. How can we assign sproxy generated objects to a different package?
    Regards,
    Thulasi

    Any idea?

  • Middleware:-Getting an error while generating objects

    Hi experts,
        While generating objects as part of middleware generation in CRM 5.0 i am getting errors in transaction "GENSTATUS" because of which i am not able to perform my initial load and the error message is "TIME LIMIT EXCEEDED". Also i am getting a short dump for that.
        Is there anything new in CRM 5.0 which needs to be done that was not there in CRM 4.0.
         Can anyone help me on how shall i proceed. 
    Thanks,
    Rahul

    Hi Natarajan,
           The above mentioned note is for an upgrade and not for new installation and even after doing it my problem is not resolved.
           Does anyone know how to remove the error that i am getting in transaction "genstatus".
    Regards,
    Rahul

  • Problem with object view with primary-key based object identifier

    Hello!
    I met such problem.
    t1 is persinstent-capable class:
    class t1 : public PObject { .... };
    T1OV is object view, based on object table T1OT
    I1 is primary key of the table T1OT.
    Next code:
    t1* t = new (conn, "T1OV") t1(...);
    conn->commit();
    try
    t->markDelete();
    conn->commit(); // exception throws here
    Works fine if T1OV defined as:
    create view t1ov of t1 with object identifier default
    as select * from t1ot;
    And throws an exception
    "ORA-22883: object deletion failed"
    if:
    create view t1ov of t1 with object identifier (I1)
    as select * from t1ot;
    Such problem also occurs when object view is based on relational table/view (OID is primary-key based).
    Also it occurs when
    t->markModified() used insted of t->markDelete()
    I am using Oracle 9i second release for windows and
    MS VC++
    Thank You

    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_85a.htm#2065512
    You can specify constraints on views and object views. You define the constraint at the view level using the out_of_line_constraint clause. You define the constraint as part of column or attribute specification using the inline_constraint clause after the appropriate alias.
    Oracle does not enforce view constraints. However, operations on views are subject to the integrity constraints defined on the underlying base tables. This means that you can enforce constraints on views through constraints on base tables.
    Restrictions on View Constraints
    View constraints are a subset of table constraints and are subject to the following restrictions:
    You can specify only unique, primary key, and foreign key constraints on views. However, you can define the view using the WITH CHECK OPTION clause, which is equivalent to specifying a check constraint for the view.
    Because view constraints are not enforced directly, you cannot specify INITIALLY DEFERRED or DEFERRABLE.
    View constraints are supported only in DISABLE NOVALIDATE mode. You must specify the keywords DISABLE NOVALIDATE when you declare the view constraint, and you cannot specify any other mode.
    You cannot specify the using_index_clause, the exceptions_clause clause, or the ON DELETE clause of the references_clause.
    You cannot define view constraints on attributes of an object column.
    Rgds.

  • Display generated objects in BW 7.0

    Dear Experts,
    I wanted to display generated objects in BW 7.0 In 3.x it was possible to activate this setting via "settings -> display generated objects". I cannot find the setting in the BW 7.0
    Can someone give me an advice?
    Thanks in advance.
    Martina

    Hi, have you checked if your 8* object is visible when you search for it?  If you can check and just let us know, have checked my end and it is visible but see your point re the option from Settings menu
    Thanks

  • Can any Java program be able to auto generate objects?

    Like to check if
    Java program is be able to auto generate objects?

    Take example: Point = constructor
    Point p =new Point ();
    so p is tne name of the object. Er... rite??"p" is the name of a variable. This is a refrence to an object (a instances of a class).
    If you are asking what I think you are asking, look at Map. (Collections tutorial)
    Please don't take offence, but I recomend taking a read of
    Resources for Beginners
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java. This one has been getting a lot of very positive comments lately.

  • Support pack objects identified by SPAU

    HI,
    Can somebody tell me whether we can "set to original" the support pack objects identified by SPAU or not?
    How will this impact our testing if the code updates are not fully applied yet?
    Thanks & regards,
    Pavan.

    Hi,
    This you have to find out with project team or in project documentation.
    If there any changes identified by SPAU, then there must be a reason for that.
    You have to analyze that and make a decision if you can change them to standard. You can't just blindly change everything to standard, this can srew up some implemented functionility.
    Cheers

  • Unable to find generated objects in repository - Activating BE

    Hi,
    I´m  trying to migrate MAM from Mobile 7.0 to Mobile 7.1.
    I got to import the syncbos as data objects successfully. However, when I try to activate a Backend Adapter, the error: "Unable to find generated objects in repository" comes up.
    I applied the note number 1408036, which is to correct the issue, but it didn´t work (I´ve already re-started the server).  We working on Mobile 7.1 - SP08.
    Anyone has some clue for this problem?
    Thanks.

    Hi,
    have you done the [DOE inital setup|http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/17a790d8000064e10000000a1553f7/frameset.htm]?
    have you activate the data object?
    if dont,please do that,
    than try to activate the backend adapter.
    regards,
    lakshman balanagu
    Edited by: lakshman balanagu on Dec 4, 2009 12:13 PM

  • The creation of device local data objects - Unable to find generated object

    Hi all,
    I get an error when I try to generate an ESDMA containing a "Device Local" data object.
    I have created a "Device Local" data object containing a very simple node structure. The object is "active" and everything seems to work fine, until I generate the ESDMA. The following error is shown : Unable to find generated objects in repository.
    The esdma is generated without problems, when I remove the device local data object.
    I hope you have some ideas of what the issue might be.
    Best regards,
    Nima

    Hi Siva
    Actually i am working on this problem together with Nima and the problem is not related to SAP Basis objects.
    The problem is in SDOE_WB, with the SWCV. Creating a Data object of type LOCAL DEVICE and a NODE. If you add a field/s and then activate, and look in Generated objects The Table object is not generated (only the structure and the table type).  At this point there are no syntax/error messages.
    If we try to generate an esdma using the ESDMA design time, using this SWCV, it fails, with the message, Unable to find generated objects, in the repository. That is it is looking for the Table object that was not generated in sdoe_wb. This is only a problem with creating a data object of type DEVICE LOCAL, every other type of DO is fine.. I assume it is an SAP error.

  • Display Generated Objects Issue

    Hi,
    This is a weird situation. I am unable to view any of the Info sources or Info packages generated through "Generate Export Data source" option in ODS. We are doing a full upload into an ODS and later doing a delta from the ODS into a cube. If I right click on the ODS and manually select the option to update data target, it works fine, but I have to schedule the pack in a process chain.
    I have enabled the option "Show Generated Objects" in administrator workbench, still nothing shows up under data marts. I am using 3.0B version.
    Any help is appreciated.
    With Regards,

    Hi Anil,
    Thanks. I tried that, but it did not work.
    In the root of info sources, I selected "Insert Lost Nodes" option from context menu, which solved the problem.
    With Regards,

  • QTP and dynamically generated object ids

    Hello,
    Our application generates Object tags and their attributes dynamically once JSP pages gets loaded in the browser. QTP does not recognize any user actions in this case (Of course all swf files got compiled with automation libraries).
    QTP works fine if i update JSPs with Object tags and ids (I am using this work around but not acceptable  ).
    <object id="SPM" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
               width="980" height="627"
               codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
           <param name="movie" value="SPM.swf" />
           <param name="quality" value="high" />
           <param name="bgcolor" value="#ffffff" />
           <param name="allowScriptAccess" value="sameDomain" />
           <embed id = "embedSPM" src="SPM.swf" quality="high" bgcolor="#ffffff"
            width="980" height="627" name="SPM" align="middle"
            play="true"
            loop="false"
            quality="high"
            allowScriptAccess="sameDomain"
            type="application/x-shockwave-flash"
            pluginspage="http://www.adobe.com/go/getflashplayer">
           </embed>
       </object>
    How to make QTP recognize user actions in above case?
    Appreciate your help!
    Thanks

    Define the event handler outside the start function. I would
    use name instead of id:

  • ODS generated objects

    Hi experts,
    I have a custom created ODS, for which I have not set the option " Update data targets automatically". But when I see the generated Objects under the data mart, I am seeing new info source has been created and a new PSA table gets created for every load of the ODS. Why this happens. How to prevernt this happening. Infact, I donot have any design requirement to further update to any other data targets
    thanks
    D Bret

    Hi,
      This will not load data to any data targets further. when you activate the ODS it will generate those objects. if you want to load data using this you need to create an info pack or by right click on ODS -> select update data to further data targets will also generate system Info pack, if you did not use this option system will not load data any further.
    you can see the info source and PSA table when ever you load data  to ODS and activate them. why because when you activate the data it will be updated to Active table and Change Log table, your change log table is nothing but a PSA table so this data will be stored there. you can delete this data, but as i know you can not avoid this one if you are activating the ODS data.

Maybe you are looking for

  • IDOC creation issue at XI side - File to IDOC

    Hi Everybody, I am working on a File to IDOC scenario (XI 3.0). We have to create Orders in the R/3 System using this Interface. Mapping used is Java. I am using 2 Classes : Group and SendIdoc one below the other in the Interface Mapping: Firstly by

  • How do I enable users to attend on Lync 2013 meeting on Windows 2008 R2 Terminal Services/XenApp 6?

    Hi, We are not using Lync internally. But some of my users need to attend Lync 2013 meetings. We run a Windows 2008 R2 Terminal Services/XenApp environment. Users are not allowed to install applications. In the past, I was able to install administrat

  • Connecting ipod to stereo - music comes from ipod not speakers

    I am trying to connect my new ipod nano to a stereo system through the docking system on the stereo. The stereo is able to turn on the ipod and play music - however i hear the music playing through the ipod speakers and not the stereo. Radio or CD pl

  • Earliest retro calculation problem???

    Hi experts, In PT60, I am getting error 'Period to be evaluated 20090101 before earliest recalculation period 201001, I checked infotype 0003, Here Earl.Ret is set to 01.01.2009. I also checked control record,, it is set to 01.01.2005. I am not under

  • WebGain Studio

    Does someone know when WebGain Studio will be released? And is this product all that its touted to be? Regards Raja