Convert the string-encoded uid into its original object form

I have written the uid string into a database and when I need it again in my code I need to rebuild the UID from the string in the db, as it was before.
Does somebody know how this can be done with java?
Thx in advance

I have written the uid string into a database and when I need it again in my code I need to rebuild the UID from the string in the db, as it was before.
Does somebody know how this can be done with java?
Thx in advance

Similar Messages

  • How to convert the output of Applescript which is in object format to text or string format??

    Hi All,
    I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
    Pls suggest.. I used the below code
    repeat with i in allContents
                if class of i is button then set the end of allStaticText to contents of i
            end repeat
    Applscript ouptput
    {button 1 of window "Player Installer" of application process "Install  Player" of application "System Events", button 2 of window "Player Installer" of application process "Install  Player" of application "System Events", button 3 of window "Player Installer" of application process "Install  Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install  Player" of application "System Events"}
    Java output
    <NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install  Player"), 'from':'null'() } } }>

    Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
    tell application "System Events"
        get button 2 of window 1 of process "TextEdit"
        my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
    end tell
    on objectToText(UI_element)
        set theText to ""
        tell application "System Events"
            repeat
                if exists attribute "AXParent" of UI_element then
                    set theParent to value of attribute "AXParent" of UI_element
                    set theClass to class of UI_element
                    if name of UI_element exists then
                        set theName to name of UI_element
                        set theText to theText & (theClass as text) & " \"" & theName & "\" of "
                    else
                        set k to 0
                        get UI elements of theParent whose class is theClass
                        repeat with thisItem in result
                            set k to k + 1
                            if contents of thisItem is UI_element then exit repeat
                        end repeat
                        set theIndex to k
                        set theText to theText & (theClass as text) & " " & theIndex & " of "
                    end if
                    set UI_element to theParent
                else
                    set theClass to class of UI_element
                    set theName to name of UI_element
                    set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
                    exit repeat
                end if
            end repeat
        end tell
        return theText
    end objectToText
    Message was edited by: Pierre L.

  • Problem in converting the String to Date with time zone GMT

    Hi,
    When I tried to convert the string 12/05/2009 to Date, the time zone is set to BST.On the other hand, for the date 12/12/2009, the time zone is set to GMT. What should I do to get the time zone as GMT all the time.?
    SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
    String dateString = "12/05/2009";
    System.out.println(myDate.toString());

    I think you are all missing the point. java.util.Date objects always alway always store the date as the number of milliseconds since 1/1/1970 UTC so the only TimeZone they have its the implicit UTC. When you use the Date.toString() method the toString() method gets the default time zone from your environment and formats the data accordingly. This means that the same Date object will, by default, produce a different result for France and Australia and the US.
    So, if you have the date "12/5/2009" as a String then to convert it to a java.util.Date you must specify what TimeZone is implied. If it is your system time zone then you can just create a SimpleDateFormat object with the correct format and then use the parse() method to create the java.util.Date object and this will automatically be converted to UTC. If the date String represents some other time zone then you must explicitly set the time zone of the SimpleDateFormat object before parsing the string.
    The same approach applies when converting a java.util.Date object to a String. If you want anything other than your system time zone then you must explicitly tell the SimpleDateFormat what time zone you want the result formatted for.

  • Converting a string of numbers into an array of booleans

    For a homework assignment, I need to convert a string of numbers into an array of booleans.  The string is a bunch of random numbers (0-9) in sequence, with no spaces.  It looks something like this: 0123452348949230740329817438120947392147809231419.  I need to make it so that each even number represents a "True" boolean and so that each odd number represents a "False" boolean.  I think that I first need to convert each element of the string into a number, and then use a case structure (or something) to say, for each element of the array, "If even, then true.  If odd, then false," but I could be wrong.  Any suggestions?

    billko wrote:
    Hooovahh wrote:
    billko wrote:
    Sounds reasonable.  Think about the definition of "odd" and "even" and it will make life a lot easier. 
    I know you are trying to be vague but I'd like to give a key hint.  Use the Quotient and Remainder function.
    LOL maybe that was one of the objectives of the homework. 
    To be fair it sounds like there is more work that is needed.  A new user of LabVIEW will have a hard time figuring out how to process each character one at a time when it isn't in an array.  
    It's just that most people (me at least) stopped thinking about division with quotient and remainder after basic algebra.  I then of course changed my way of thinking when I used LabVIEW.  Still most of the time when you use division you want to know the fractional part as a decimal.  Thinking this way makes the problem more difficult then it needs to be.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • PDF is converting the Thai Language characters into Junk Characters

    Hi,
    While converting the SAP Script form to PDF, it is converting the Thai Language characters into Junk Characters. But it is showing correctly if we issue it to a printer. Also it is showing correctly in print preview.
    Urgent Help is needed.
    Thanks,
    srini.

    Cross post:
    Re: PDF is converting the Thai Language characters into Junk Characters

  • Cannot drug files on my desktop. I get a white "stop sign" and the file jumps back to its original place.

    Cannot drug files on my desktop. I get a white "stop sign" and the file jumps back to its original place.

    Thank you very much for your reply. I did what you advised command-I and at the bottom where it says Sharing and Permissions I am listed and "everyone" to read and write. I see no place to change anything to unlock the desktop to move the files around. Could you help some more?

  • [Oracle 8i] How to convert a string (time stamp) into a date?

    I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number).
    The time stamp is 20 positions, character (NOT NULL, CHAR(20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = Year, M = Month, D = Day, M = Minutes, S = Seconds, and U = Microseconds
    The reason I want to convert this is so that I can compare one time stamp to another (i.e. I want to be able to find the MIN(timestamp), MAX(timestamp), and do inequality comparisons).
    Is this at all possible?
    Thanks in advance for help on this!

    Hi,
    As Damorgan said, if all you want to do is find which is the earliest or latest, then you can just compare the strings: they happen to be in a format where that works.
    If you need to do other things, such as compare them to today's date, or see the difference between two of your rows in days, then you have to convert them to DATEs. (There's no point in converting them to NUMBERs).
    A new data type, TIMESTAMP, which handles fractions of a second, was introduced in Oracle 9.
    Since you're using Oracle 8 (according to your subject line), you either have to
    (1) ignore the microseconds, or
    (2) use a separate NUMBER column for the microseconds.
    Either way, use TO_DATE to convert the first 14 characters to a DATE:
    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )where txt is your CHAR column.
    To convert the microseconds to a number (between 0 and 999999):
    TO_NUMBER (SUBSTR (txt, 15))

  • HT5639 At present I have Windows programs installed using parallels 7. I now wish to delete all Windows based programs and revert the hard drive back to its original state ie single partition.  How do I go about it??

    At present I have windows based programs installed using parallels 7 on my Imac. I now wish to delete all the Windows programs etc and revert the Hard Drive to its original setting i.e single partition. How do I go about it??

    It's not clear if you installed Windows in a virtual machine or you installed Windows in Boot Camp but you run it in Parallels.
    If you installed Windows in Boot Camp, open "Boot Camp Assistant" (it's in /Applications/Utilities) and follow the steps to restore your hard disk into one volume. If you installed Windows on a virtual machine, just open Parallels and delete the virtual machine where you have installed Windows

  • How to convert the alv list data into pdf format

    Hi Expersts,
                      Is it possible to convert the alv list output data into PDF format? if yes, then please help me with this issue.
    thanks in advance,
    Regards,
    Samad

    hii samad,
    you can go through these link.i hope it ll solve your purpose
    How to convert list output to PDF
    Display ALV list output in PDF format
    regards,
    Shweta

  • How to convert the DMS Pdf file into XSTRING - Urgent Please......

    Experts,
    I want to download a pdf file stored in a DMS Server into Desktop using webdynpro for abap.
    First i want to convert the PDF file into XSTRING, so that i can use file download UI Element in Webdynpro to download the document...
    Im searching for any function modules for past two days, i cant able to find it.. I dont even have any idea to proceed.
    I tried using CV120_START_APPLICATION in webdynpro,but it results in vain...
    I object submission date is nearing, please help me brothers and sisters...
    Thanks,
    James...

    Hi James,
    please see the thread
    Very Urgent Convert DMS  document to XSTRING/ download
    which deals with exactly the same issue. Maybe we can close one thread and handle this within the second one.
    Best regards,
    Christoph

  • Converting the output of FS10N into smartforms

    Hi Experts,
    I have a requirement to convert the output of the tcode FS10N into a smartform and append it with a cover sheet.
    Kindly guide me
    Regards,
    Manjusha S
    Edited by: manjusha srinivasan on May 20, 2009 7:00 AM

    Yes Multiple selctions Possible.
    For this: Based on the input populate the accounts to a Internal Table.
    After that use the below steps
    Loop at <ITAB>
    USE BAPI_GL_GETGLACCPERIODBALANCES
    Process table account_balances infor to other  iternal table in required fromat.
    Endloop.
    NOTE: During calculation of Begining Balance part for period 1 balance_carried_forward
    is the key. just include this condition also.
          IF Period EQ 1.
            Beg_balance = Beg_balance + balance_carried_forward value.
          ENDIF.
    BR,
    Rajani

  • When my Ramp stops the set pops back to its original position...?

    I have a set to which I have attached a Ramp behaviour to swivel it on it's Y axis.
    Its works well, but at the 10 second point when the Ramp Y swivel ends, the set jumps suddenly back to its original position.
    How can I get the set to keep its position as it is at the end of the Ramp behaviour?
    ps: Merry Christmas to all on the forum, and thanks for your help during 2008!

    Or you can use the Spin behavior. The object will stay where it is after the spin is finished.
    Andy

  • I received a goggle play gift card for Christmas.  Is there a way to use this card in the ITune store ?  Or is there a way to convert the google card credit into Itune credit ?

    I received a google play gift card for Christmas.  Is there a way to use this card in the App store or Itune store ?  Or is there a way to convert the google credit into itune credit ?

    No - sorry.
    GB

  • How to convert the x/y pixel into Lat/Lon?

    Does anyone know how to covert the X/Y coord into Lat?lon coord system? What is the formular?
    Thanks!!!
    Ming

    Depends on the projection your map is using.

  • Converting the string value to data format

    Hello Everyone,
                                  Please guide me in converting the value to date format.
    from source i'm getting the value (which is acchally a data value) '20070730'.
    I need this value to be in date format '2007/07/30'
    Please help me in getting it done.
    thank you

    Hi
    Code Snippetselect cast('20070730' as datetime)
    Note : beware of collation used in your SQL instance or your database.
    Jean-Pierre

Maybe you are looking for

  • Supress the -ve sign in report painter report - VERY URGENT

    Hi In a report painter report, can anybody please let me know how to display a negative value, for example, "-1234.56" as "(1234.56)". IT IS VERY URGENT

  • Visio Web Access Refresh in SharePoint Online 2013

    I'm trying to pull in SharePoint Online 2013 List data into a Visio Pro 2013 diagram and then serve the diagram into a SharePoint Online Page under a Visio Data Access Web Part. I have no working knowledge of Visio, but made a data connection and pre

  • Question about EPS file

    Hey guys, here's my perdicament and I need your guys' input/feedback on this. I had a midterm exam today in my advanced prepress class and the question was as follows: - An EPS file is considered a: A) Raster file B) Vector file C) Metafile I chose B

  • Syntax Error in Invoice IDOC

    I have created an extension for idoc INVOIC02. I added a segment ZDISC to E1EDK18(qualf 002). In my test system, everything is working fine. But in production, it is giving a syntax error. Following is the error. EDI: Syntax error in IDoc (segment ca

  • Slow painting with CS3 + Leopard + brandnew Macboo pro 2.4

    I just bought a brand new Macbook Pro Core 2 Duo 2.4Ghz 2GB RAM, NVIDIA GeForce 8600M GT, Leopard, and WACOM 3, i'm having serious lag in brush strokes in Photoshop CS3(Trial version downloaded at Adobe's site) AND ALSO with Painter X! Everything loo