0

how to call datetime in SQL to java

asked 2013-07-18 04:44:15 +0800

susu gravatar image susu
11 2

if (datalogSQL.getDAT_DATE() != null) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

           String StrDate = sdf.format(datalogSQL.getDAT_DATE());

           //datalogSQL.setDAT_DATE("DAT_DATE",strDate); 
           //datalogSQL.setStrDate((String)arg.get("DAT_DATE"));
           datalogSQL.setDAT_DATE((String)arg.get("strDate"));
          }     
        //datalogSQL.setDAT_DATE((SimpleDateFormat)arg.get("DAT_DATE"));
        datalogSQL.setDAT_TABLE((String)arg.get("DAT_TABLE"));
        datalogSQL.setDAT_SOURCE((String)arg.get("DAT_SOURCE"));
        datalogSQL.setDAT_MSG1((String)arg.get("DAT_MSG1"));
        datalogSQL.setDAT_TYPE((String)arg.get("DAT_TYPE"));

        if (datalogSQL.getByKey() == 0)
        {
            //ZkGuiUtil.showInformation(PageUtil.getPrompt("Record does not exist"));
        }
delete flag offensive retag edit

Comments

Do you mean how to bind date field between ZUL and ViewModel?

sjoshi ( 2013-07-18 06:07:21 +0800 )edit

how to bind zul with viewmodel?

susu ( 2013-07-18 08:34:05 +0800 )edit

eventlogSQL = new EventlogSQL(); MaintMode = (String) this.arg.get(ZkConstants.MaintMode); if (MaintMode != null && (MaintMode.equals(ZkConstants.MaintModeEdit) || MaintMode.equals(ZkConstants.MaintModeView)))

is this what u mean?;)

susu ( 2013-07-18 08:36:04 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-07-18 04:44:15 +0800

Seen: 13 times

Last updated: Jul 18 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More