Example usage for java.sql Time getClass

List of usage examples for java.sql Time getClass

Introduction

In this page you can find the example usage for java.sql Time 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_5", method = RequestMethod.GET)
public String serverTimeReturn_01_05(Model model) {

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

    Time time = dateFactory.newTime();

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

    return "date/timeDisplay";
}

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

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

    Time time = jdbcFixedDateFactory.newTime();

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

    return "date/timeDisplay";
}

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

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

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

    Time time = msecJdbcAdjustedDateFactory.newTime();

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

    return "date/timeDisplay";
}