Java SQL Date Check isDate(final PropertyDescriptor pd)

Here you can find the source of isDate(final PropertyDescriptor pd)

Description

is Date

License

Open Source License

Declaration

public static boolean isDate(final PropertyDescriptor pd) 

Method Source Code

//package com.java2s;
/*// w ww.j av  a  2 s .  c  o m
 * Java Common Library
 * Copyright (c) 2008 BitCtrl Systems GmbH
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3.0 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 *
 * Contact Information:
 * BitCtrl Systems GmbH
 * Wei?enfelser Stra?e 67
 * 04229 Leipzig
 * Phone: +49 341-490670
 * mailto: info@bitctrl.de
 */

import java.beans.PropertyDescriptor;

public class Main {

    public static boolean isDate(final PropertyDescriptor pd) {
        return pd.getPropertyType().isAssignableFrom(java.sql.Date.class);
    }
}

Related

  1. isChunjie(String date)
  2. isDataTypeDate(int dataType)
  3. isDate(int colType)
  4. isDate(int dataType)
  5. isDate(int dataType)
  6. isDate(Object obj)