Java SQL Time Create getTime(Map map, String attr)

Here you can find the source of getTime(Map map, String attr)

Description

get Time

License

Open Source License

Declaration

public static java.sql.Time getTime(Map map, String attr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Map;

public class Main {
    public static java.sql.Time getTime(Map map, String attr) {
        return (java.sql.Time) map.get(attr);
    }//w  ww  .j  a v  a 2  s .c o m

    public static <T> T get(Map map, String attr) {
        return (T) (map.get(attr));
    }

    public static <T> T get(Map map, String attr, Object defaultValue) {
        Object result = map.get(attr);
        return (T) (result != null ? result : defaultValue);
    }
}

Related

  1. getTime(java.util.Date date)
  2. getTime(long time)
  3. getTime(long time)
  4. getTime(long time)
  5. getTime(long time, boolean allowNull)
  6. getTime(Object value)
  7. getTime(Object value, int columnType)
  8. getTime(ResultSet resultSet, String columnName)
  9. getTime(ResultSet rs, String column)