org.seasar.framework.util
クラス TimestampConversionUtil

java.lang.Object
  拡張org.seasar.framework.util.TimestampConversionUtil

public class TimestampConversionUtil
extends Object

Timestamp用の変換ユーティリティです。

作成者:
higa

コンストラクタの概要
protected TimestampConversionUtil()
          インスタンスを構築します。
 
メソッドの概要
static String getPattern(Locale locale)
          日付パターンを返します。
static Timestamp toTimestamp(Object o)
          Timestampに変換します。
static Timestamp toTimestamp(Object o, String pattern)
          Timestampに変換します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TimestampConversionUtil

protected TimestampConversionUtil()
インスタンスを構築します。

メソッドの詳細

toTimestamp

public static Timestamp toTimestamp(Object o)
Timestampに変換します。

パラメータ:
o -
戻り値:
Timestamp

toTimestamp

public static Timestamp toTimestamp(Object o,
                                    String pattern)
Timestampに変換します。

パラメータ:
o -
pattern -
戻り値:
Timestamp

getPattern

public static String getPattern(Locale locale)
日付パターンを返します。

パラメータ:
locale -
戻り値:
日付パターン


Copyright © 2004-2012 The Seasar Foundation. All Rights Reserved.