jp.terasoluna.fw.file.dao.standard
クラス DateColumnFormatter

java.lang.Object
  上位を拡張 jp.terasoluna.fw.file.dao.standard.DateColumnFormatter
すべての実装されたインタフェース:
ColumnFormatter

public class DateColumnFormatter
extends Object
implements ColumnFormatter

カラムフォーマット(ファイル書込)を行うクラス。

ファイル行オブジェクトからデータを取得し、文字列をFileUpdateDAOに返却する。 アノテーションの記述に従いDate型のフォーマット処理を行う。


コンストラクタの概要
DateColumnFormatter()
           
 
メソッドの概要
 String format(Object t, Method method, String columnFormat)
          Date型のフォーマット処理を行い、文字列を返却する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DateColumnFormatter

public DateColumnFormatter()
メソッドの詳細

format

public String format(Object t,
                     Method method,
                     String columnFormat)
              throws IllegalArgumentException,
                     IllegalAccessException,
                     InvocationTargetException
Date型のフォーマット処理を行い、文字列を返却する。

定義:
インタフェース ColumnFormatter 内の format
パラメータ:
t - ファイル行オブジェクト
method - カラムフォーマットを行う属性のゲッタメソッド
columnFormat - カラムフォーマット用の文字列
戻り値:
文字列
例外:
IllegalArgumentException - ファイル行オブジェクトのgetterメソッドのアクセスに失敗したとき
IllegalAccessException - ファイル行オブジェクトへの設定が失敗したとき
InvocationTargetException - ファイル行オブジェクトのメソッドが例外をスローしたとき


Copyright © 2011. All Rights Reserved.