How can I set a time stamp for the setCreationDate(Date value)?

Hi all

My underlying database column has a DATE data type that needs of the data and the time stamp. When you use the following code to set a date for setCreationDate(Date value) the date is set, but there is no timestamp.

Here is the code:

protected void create (AttributeList attributeList) {}

Super.Create (AttributeList);

Begin

Date currentDate = new Date();

DATE creationDate = currentDate.getCurrentDate ();

setCreationDate ((Date) creationDate);

End

}

Can't wait to hear.

James

java.sql.Timestamp timeStamp = new java.sql.Timestamp (System.currentTimeMillis ());

dateTime oracle.jbo.domain.Date = new oracle.jbo.domain.Date (timeStamp);

Tags: Java

Similar Questions

  • How can I set up a database for the application on my mobile?

    I develop a mobile application that allows users to check the 'weather' (I hesitate to share the exact nature of my app on a public forum, so I'll use "weather" instead) reports nationwide.  A network of collaborators around the nation will download their content, and I need to be able to access this information from my application.

    Who have never implemented a database before, I'm not sure what the best way to do it.  I am considering a portal on the internet that my contributors can download to and then just linking to this database in my application.  How can I do?  Or is there a better way?

    You can use a database that made your site.  So let's start with that.  Do you use mySQL or MS SQL?  Then the next consideration is whether your entry is coming from controlled sources.  For example, with your example of time can say us that areas 1, 3 & 5 report user 1 and user 2 reports on 2 & 4, which means that there is no overlap.  So what will happen, you need to re-evaluate the other fields that will be registered.  In general, I would like to start with:

    Table user - modules, user name, password (permissions?)

    Data tables - define regions, weather information, date information.

    Assignment of the User_Region table - each line connects 1 user for 1 region (easier that store arrays in the table user)

    Table of authorities - need users have permission, will there be an admin to substitute if something is wrong?

    According to the scale of the APP, it may be necessary to make foreign key dependencies.  Basically, it's just a fancy way of saying that if the region 2 is deleted for some reason any, we want to ensure that users are assigned to other territories, otherwise you get errors request looking for something that does not exist.

    That's the key.  He participates a lot but if you are unfamiliar with database design and implementation of index keys, foreign keys and set up the model, you can consider hiring outside help because there is a lot of work and if you are thinking of you more should build the database with growth in mind.

  • How can I set different background color for the slider?

    Hello
    I want to set a different color for track Slider, slider track is spitted into two sections by slider-button.
    I want to put a left gray, the right of a white.
    Under css only changes the background of the entire track, but how I can change different background color for the slider?
    Any suggestion?
    .slider {
        -fx-border-width: 0;
    }
    .slider *.track {
        -fx-background-color:white;
        -fx-background-insets:  0, 1;
        -fx-border-color: #faf0e6;
        -fx-border-width: 1;
        -fx-border-style:solid;
        -fx-progress-color:yellow;
        -fx-border-radius: 20;
    }
    .slider.knobStyle:focused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider.knobStyle:unfocused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider .thumb {
         -fx-background-color:rgb(224,225,226);
         -fx-background-repeat:stretch;
         -fx-background-size:stretch;
         -fx-background-position:center top;
         -fx-background-image:url("../images/volume_ball.png");
            -fx-padding: 10;
    }

    I don't know why I can't get the node of the track, track has always set to null and the thumb or the other.

    After that the cursor was displayed on an active scene are you doing research?

    (ex.: after you have added the slider to a scene, the scene for scene, then called stage.show ())

  • How can I set a default zoom for the browser (freeze)?

    Hello, there is a possibility of using the CTRL ++ to enlarge the Web page, but he returned to the default zoom of Firefox in the middle which is very annoying. In general, I would like to be able to establish a certain level of default zoom and then only if necessary, use the CTRL + / zoom in and out of options. If my optimum zoom level is used for all my browsing unless I change it.

    I listed 2 modules below for you to consider. I did not use of NoSquint, but I use and rely on Default FullZoom Level.

    "You can also set a 'Minimum font size' in the Firefox Options > content > fonts & colours advanced."

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • How can I set a time to open a program.

    original title; How can I set a time to open a program. For example to start IE to 1836hrs / or begin 15 minutes now

    If I use the computer, how can I set a time to open a program. For example to start IE to 1836hrs / or begin 15 minutes now

    Hello

    I suggest you try the methods mentioned below and check if it helps:

     

    Schedule a task

    http://Windows.Microsoft.com/en-us/Windows7/schedule-a-task

     

    Hope this information is useful.

  • How can I set up Vista so that the PC does not switch to another window (for example the Spy Sweeper alerts) while I am playing a game?

    How can I set up Vista so that the PC does not switch to another window (for example the Spy Sweeper alerts) while I am playing a game?

    Vista is not in control of this technique. Spy Sweeper needs to have an option to control that. If this isn't the case, then it is badly programmed. Flight of focus (go to another window) when it is actually needed is a big no-no for the design. I find this option, if I were you :)

  • How can I download a time preset for lightroom cc?

    How can I download a time preset for lightroom cc?

    Visit this link on how to install presets in LR - https://hackingphotography.com/install-lightroom-presets/

    ~ Rohit

  • How can I add a separate apple for the iphone and ipad wife id

    How can I add a separate apple for the iphone and ipad wife id

    Hi, are the measures already implemented? If they are, you need to configure them again and establish a Apple ID at this time.

    Apple ID - Support official Apple

  • How can I set password lockout policy on the XP Home Edition...

    How can I set password lockout policy on the XP Home Edition...

    Hi Gafoor0,

    The question you have posted is better suited in the TechNet forums. Please see the following link for more information.

    Windows XP IT Pro category

    You can also check:

    Microsoft Windows XP - account lockout policy

    The passwords and policies in Windows Server 2003

  • How can I make my default program for the Adobe Downloads?

    How can I make my default program for the Adobe Downloads?

    Set up the default program depends on the type of file you download, Ex:-PDF file open in Adobe Reader or Acrobat.

    The downloaded file is opened in the default program set on your computer for this file type.

    The steps may vary for Windows and Mac.

    Windows

    Right click on any file with the file type that you want to change the default program Ex:-Pdf,.

    Select 'open with '.

    and from the list select your application that you want to set default Ex: Acrobat

    Check the option on the bottom, "always choose this application to open this file type.

    Mac

    CTRL + click on any file with the file type

    Go to 'Get Info '.

    Modify the Application in the 'open with '.

    Select 'change everything '.

    Close window 'Get info '.

  • Noobie here... How can I register my HP Touchpad for the guarantee

    Noobie here... How can I register my HP Touchpad for the guarantee. I have no ideal where to register my details... Then... Helppppppppp... lol

    When you connect to your hp webOS device information is returned to servers HP to register essentially the device for you. It has been since the registration for you. You will then receive an email which will help you to confirm your e-mail address to your profile and validate it.

  • How can I use my current windows7 for the new portable computer

    Original title:

    Windows 7

    Hello

    I bought the original windows7 and I currently use it in my laptop. I recently bought a new laptop and now I want this original windows 7 on my new laptop.

    How can I use my current windows7 for the new portable computer

    Please notify

    Concerning

    Run you where you are unable to activate code product. It gives you a list of phone numbers for Microsoft to ring.

  • How can I restore my photos/docs from the Dell Data Safe emergency backup file?

    incompatibility with estensions file DSB

    Files saved during the backup secure files DAT Dell are the extensions of file .dsb by the Dell site. Windows 7 does not open the files to restore on reg location Windows Media as before the backup. .Dsb error message unrecognized files. How can I restore my photos/docs from the Dell Data Safe emergency backup file?

    I know that you need a Dell utility for this...

    And what has this to do with Windows 7 photos and videos, I really don't know...

  • How can I set up a password for office?

    Original title: implement the passoword office

    How can I set up a password in order to access the desktop?

    What you describe is the default method for Windows. If your computer falls directly on the desktop and then some configured Windows to remember your password and apply it automatically. You must now cancel this method (and take a step of it for later!):

    1. press Windows + R key on your keyboard.
    2. Enter the following command and press ENTER:
    netplwiz
    3. check the box that requires users to enter a password.
    4. click on OK.
  • How can I set English (United Kingdom) as the language for keyboard

    original title: How can I set English (United Kingdom) as main language so that my keyboard does what it should?

    How can I set English (United Kingdom) as main language so that my keyboard does what it should?

    Monday, April 23, 2012 14:51:19 + 0000, TrevorConn wrote:

    How can I set English (United Kingdom) as main language so that my keyboard does what it should?

    Change the keyboard layout in Control Panel | Tab languages and keyboard language and region | Change keyboards button.

    Ken Blake, Microsoft MVP

Maybe you are looking for

  • I have Windows 7, 64 bit OS, but need to run Adobe Flash 32-bit. How can I download ff 32 bit?

    I'm trying to run a program that uses Adobe flash 32-bit. My computer is a 64-bit computer, and when I download the ff, it automatically d / l 64-bit, which in turn d / l the 64-bit version of Adobe Flash (shockwave). My program does not run.How do I

  • Safari crashes constantly in El Capitan 10.11.3

    Hello My safari blocks continuously after I have updated to El Capitan 10.11.3 yesterday evening. Here are the parts of the error message, can someone help please? Thread 0 crashed: Dispatch queue: com.apple.main - wire 0 libsystem_kernel.dylib 0x000

  • continous fax

    OfficeJet Pro 8600 keeps trying to send the same fax.  How can I stop it. Disconnected the telephone line, but he keeps trying

  • Want 5640: Error - printing queue

    My husband and I want to 5640 each. Both are connected to the network and until tonight, all two worked very well on my PC. To start I got the printer off-line message with mine but could still print using machine of my husband. I removed my in Devic

  • Control of the double loop for a positioning system. - movement ocntrol

    I am currently a control of the double loop for a positioning system, I use the speedometer to read the speed and the encoder for position on the position of the platform. the problem I'm meeting now, is that I'm not sure weather the computer have th