Example usage for java.sql Timestamp getClass

List of usage examples for java.sql Timestamp getClass

Introduction

In this page you can find the example usage for java.sql Timestamp getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.terasoluna.gfw.functionaltest.app.date.DateController.java

@RequestMapping(value = "1_2", method = RequestMethod.GET)
public String serverTimeReturn_01_02(Model model) {

    model.addAttribute("firstExpectedDate", new java.util.Date());

    Timestamp timestamp = dateFactory.newTimestamp();

    model.addAttribute("serverTime", timestamp);
    model.addAttribute("type", timestamp.getClass());
    model.addAttribute("lastExpectedDate", new java.util.Date());

    return "date/dateDisplay";
}

From source file:org.terasoluna.gfw.functionaltest.app.date.DateController.java

@RequestMapping(value = "2_2", method = RequestMethod.GET)
public String dbFixationTimeReturn_02_02(Model model) {

    Timestamp timestamp = jdbcFixedDateFactory.newTimestamp();

    model.addAttribute("serverTime", timestamp);
    model.addAttribute("type", timestamp.getClass());

    return "date/dateDisplay";
}

From source file:org.terasoluna.gfw.functionaltest.app.date.DateController.java

@RequestMapping(value = "3_2", method = RequestMethod.GET)
public String adjustedDateReturn_03_02(Model model) {

    model.addAttribute("firstExpectedDate", new java.util.Date());

    Timestamp timestamp = msecJdbcAdjustedDateFactory.newTimestamp();

    model.addAttribute("serverTime", timestamp);
    model.addAttribute("type", timestamp.getClass());
    model.addAttribute("lastExpectedDate", new java.util.Date());

    return "date/dateDisplay";
}