Example usage for java.sql Date getClass

List of usage examples for java.sql Date getClass

Introduction

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

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

    java.sql.Date sqlDate = dateFactory.newSqlDate();

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

    return "date/dateDisplay";
}

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

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

    java.sql.Date sqlDate = jdbcFixedDateFactory.newSqlDate();

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

    return "date/dateDisplay";
}

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

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

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

    java.sql.Date sqlDate = msecJdbcAdjustedDateFactory.newSqlDate();

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

    return "date/dateDisplay";
}