public class ColumnLoader extends java.lang.Object implements ColumnLoadable
修飾子とタイプ | フィールドと説明 |
---|---|
protected static java.lang.reflect.Method |
charToDateMethod |
protected static java.lang.reflect.Method |
charToTimestampMethod |
protected static java.lang.reflect.Method |
charTrimMethod |
protected Column |
column |
protected java.lang.reflect.Constructor[] |
constChain |
protected static java.lang.reflect.Method |
dateToLongMethod |
protected java.lang.reflect.Method[] |
getterChain |
protected static java.lang.reflect.Method |
inputStreamToBinaryMethod |
protected static java.lang.reflect.Method |
inputStreamToBytesMethod |
protected static java.lang.Class[] |
intParam |
protected static java.lang.reflect.Method |
readerToStringMethod |
protected static java.lang.reflect.Method |
rsGetBigDecimal |
protected static java.lang.reflect.Method |
rsGetBinaryStream |
protected static java.lang.reflect.Method |
rsGetBoolean |
protected static java.lang.reflect.Method |
rsGetByte |
protected static java.lang.reflect.Method |
rsGetCharacterStream |
protected static java.lang.reflect.Method |
rsGetDate |
protected static java.lang.reflect.Method |
rsGetDouble |
protected static java.lang.reflect.Method |
rsGetFloat |
protected static java.lang.reflect.Method |
rsGetInt |
protected static java.lang.reflect.Method |
rsGetLong |
protected static java.lang.reflect.Method |
rsGetShort |
protected static java.lang.reflect.Method |
rsGetString |
protected static java.lang.reflect.Method |
rsGetTime |
protected static java.lang.reflect.Method |
rsGetTimestamp |
protected java.lang.Integer |
scale |
protected java.lang.Class |
targetClass |
protected static java.lang.reflect.Method |
timestampToDateMethod |
コンストラクタと説明 |
---|
ColumnLoader(Column column,
java.lang.Class targetClass)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
static java.util.Date |
charToDateConverter(java.lang.String s)
CHAR型で取得したデータをjava.util.Dateに変換する。
|
static java.sql.Timestamp |
charToTimestampConverter(java.lang.String s)
CHAR型で取得したデータをjava.sql.Timestampに変換する。
|
static java.lang.String |
charTrimConverter(java.lang.String s) |
static long |
dateToLongConverter(java.util.Date d) |
protected int |
findColumn(java.sql.ResultSet rs) |
Column |
getColumn()
カラムメタ情報を取得する。
|
java.lang.reflect.Method[] |
getColumnValueGetMethods()
カラム値取得メソッドchainを取得する。
|
java.lang.Class |
getTargetClass()
読み出し対象クラスメタ情報を取得する。
|
java.lang.Object |
getValue(ColumnResultSet rs)
SelectResultSetから観測値を生成する。
|
java.lang.Object |
getValue(java.sql.ResultSet rs,
int index)
ResultSetから値を生成する。
|
java.lang.reflect.Constructor[] |
getValueConstructors()
観測値生成コンストラクタchainを取得する。
|
static Binary |
inputStreamToBinaryConverter(java.io.InputStream inputStream) |
static byte[] |
inputStreamToBytesConverter(java.io.InputStream inputStream) |
static java.lang.String |
readerToStringConverter(java.io.Reader reader) |
protected void |
setMethods(java.lang.Class targetClass) |
static java.util.Date |
timestampToDateConverter(java.sql.Timestamp t) |
protected static java.lang.Class[] intParam
protected static java.lang.reflect.Method dateToLongMethod
protected static java.lang.reflect.Method timestampToDateMethod
protected static java.lang.reflect.Method readerToStringMethod
protected static java.lang.reflect.Method charToDateMethod
protected static java.lang.reflect.Method charToTimestampMethod
protected static java.lang.reflect.Method charTrimMethod
protected static java.lang.reflect.Method inputStreamToBinaryMethod
protected static java.lang.reflect.Method inputStreamToBytesMethod
protected static java.lang.reflect.Method rsGetInt
protected static java.lang.reflect.Method rsGetBoolean
protected static java.lang.reflect.Method rsGetByte
protected static java.lang.reflect.Method rsGetShort
protected static java.lang.reflect.Method rsGetLong
protected static java.lang.reflect.Method rsGetString
protected static java.lang.reflect.Method rsGetFloat
protected static java.lang.reflect.Method rsGetDouble
protected static java.lang.reflect.Method rsGetBigDecimal
protected static java.lang.reflect.Method rsGetDate
protected static java.lang.reflect.Method rsGetTime
protected static java.lang.reflect.Method rsGetTimestamp
protected static java.lang.reflect.Method rsGetCharacterStream
protected static java.lang.reflect.Method rsGetBinaryStream
protected Column column
protected java.lang.Class targetClass
protected java.lang.reflect.Method[] getterChain
protected java.lang.reflect.Constructor[] constChain
protected java.lang.Integer scale
public ColumnLoader(Column column, java.lang.Class targetClass) throws FatalException
column
- カラム・現象型メタ情報context
- コンテキストFatalException
public static long dateToLongConverter(java.util.Date d)
public static java.util.Date timestampToDateConverter(java.sql.Timestamp t)
public static java.util.Date charToDateConverter(java.lang.String s)
s
- yyyyMMdd形式の文字列public static java.lang.String charTrimConverter(java.lang.String s)
public static java.sql.Timestamp charToTimestampConverter(java.lang.String s)
s
- yyyyMMddHHmmss形式の文字列public static java.lang.String readerToStringConverter(java.io.Reader reader)
public static Binary inputStreamToBinaryConverter(java.io.InputStream inputStream)
public static byte[] inputStreamToBytesConverter(java.io.InputStream inputStream)
public final Column getColumn()
getColumn
インタフェース内 ColumnLoadable
public final java.lang.Class getTargetClass()
public final java.lang.reflect.Method[] getColumnValueGetMethods()
public final java.lang.reflect.Constructor[] getValueConstructors()
public java.lang.Object getValue(ColumnResultSet rs) throws DBException, FatalException
getValue
インタフェース内 ColumnLoadable
rs
- DBException
- 回復可能な実行例外FatalException
- 回復不能な実行例外public java.lang.Object getValue(java.sql.ResultSet rs, int index) throws DBException, FatalException
getValue
インタフェース内 ColumnLoadable
rs
- index
- カラム位置DBException
- 回復可能な実行例外FatalException
- 回復不能な実行例外protected void setMethods(java.lang.Class targetClass) throws FatalException
FatalException
protected int findColumn(java.sql.ResultSet rs) throws FatalException
FatalException