public class ColumnImpl extends java.lang.Object implements Column
修飾子とタイプ | フィールドと説明 |
---|---|
protected Key |
columnNameKey |
protected java.lang.Integer |
columnSize |
protected boolean |
functionFlag |
protected boolean |
nullable |
protected java.lang.Integer |
position |
protected Key |
queryStringKey |
protected java.lang.Integer |
scale |
protected int |
sqlType |
protected Table |
table |
コンストラクタと説明 |
---|
ColumnImpl(Column info)
コピーコンストラクタ。
|
ColumnImpl(Table table,
Key columnName,
int sqlType,
boolean nullable,
java.lang.Integer scale,
java.lang.Integer columnSize)
コンストラクタ。
|
ColumnImpl(Table table,
Key columnNameKey,
int sqlType,
boolean nullable,
java.lang.Integer scale,
java.lang.Integer columnSize,
java.lang.Integer position)
コンストラクタ。
|
ColumnImpl(Table table,
java.lang.String columnName,
int sqlType,
boolean nullable,
java.lang.Integer scale,
java.lang.Integer columnSize)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected Key |
createQueryKey(java.lang.String columnName,
Table table) |
protected java.lang.String |
createQueryString(java.lang.String columnName,
Table table) |
protected java.lang.String |
createUpdateQueryString(java.lang.String columnName,
Table table) |
boolean |
equals(java.lang.Object o) |
ColumnLoadable |
getColumnLoadable(java.lang.Class loadClass)
ColumnLoaderを取得する。
|
java.lang.String |
getColumnName()
カラム名を返す。
|
Key |
getColumnNameKey()
Key(カラム名)を返す。
|
ColumnStorable |
getColumnStorable(java.lang.Class storeClass)
ColumnStorableを取得する。
|
java.lang.String |
getFullColumnName()
カラム名(含むテーブル名または、エイリアス名)を返す。
|
Key |
getFullColumnNameKey()
Key(カラム名:含むテーブル名または、エイリアス名)を返す。
|
java.lang.Integer |
getPosition()
Position値を返す。
|
java.lang.String |
getQuery()
Query文を返す。
|
java.lang.Integer |
getScale()
Scale値を返す。
|
java.lang.Integer |
getSize() |
int |
getSqlType()
java.sql.Typesを返す。
|
Table |
getTable()
テーブル情報を返す。
|
java.lang.String |
getUpdateQuery()
更新用のQuery文を返す。
|
java.lang.Object |
getValue(ColumnResultSet rs)
SelectResultSetから観測値を生成する。
|
java.lang.Object |
getValue(java.sql.ResultSet rs,
int index)
ResultSetから観測値を生成する。
|
int |
hashCode() |
boolean |
isNullable()
null値が設定可能か否かの真偽値を返す。
|
void |
setValue(java.sql.PreparedStatement ps,
int index,
java.lang.Object value)
PreparedStatementに観測値を設定する。
|
java.lang.String |
toString() |
protected Key columnNameKey
protected Table table
protected int sqlType
protected boolean nullable
protected java.lang.Integer scale
protected java.lang.Integer position
protected Key queryStringKey
protected java.lang.Integer columnSize
protected boolean functionFlag
public ColumnImpl(Column info)
public ColumnImpl(Table table, java.lang.String columnName, int sqlType, boolean nullable, java.lang.Integer scale, java.lang.Integer columnSize)
public ColumnImpl(Table table, Key columnName, int sqlType, boolean nullable, java.lang.Integer scale, java.lang.Integer columnSize)
public java.lang.String getColumnName()
getColumnName
インタフェース内 Column
public Key getColumnNameKey()
getColumnNameKey
インタフェース内 Column
public java.lang.String getFullColumnName()
getFullColumnName
インタフェース内 Column
public Key getFullColumnNameKey()
getFullColumnNameKey
インタフェース内 Column
public int getSqlType()
getSqlType
インタフェース内 Column
public boolean isNullable()
isNullable
インタフェース内 Column
public java.lang.Integer getScale()
public java.lang.Integer getPosition()
getPosition
インタフェース内 Column
public ColumnLoadable getColumnLoadable(java.lang.Class loadClass) throws DBException, FatalException
getColumnLoadable
インタフェース内 Column
DBException
FatalException
public ColumnStorable getColumnStorable(java.lang.Class storeClass) throws DBException, FatalException
getColumnStorable
インタフェース内 Column
DBException
FatalException
public int hashCode()
hashCode
クラス内 java.lang.Object
public boolean equals(java.lang.Object o)
equals
クラス内 java.lang.Object
public java.lang.Object getValue(ColumnResultSet rs) throws DBException, FatalException
getValue
インタフェース内 Column
rs
- DBException
- 回復可能な実行例外FatalException
- 回復不能な実行例外public java.lang.Object getValue(java.sql.ResultSet rs, int index) throws DBException, FatalException
getValue
インタフェース内 Column
rs
- index
- カラム位置DBException
- 回復可能な実行例外FatalException
- 回復不能な実行例外public void setValue(java.sql.PreparedStatement ps, int index, java.lang.Object value) throws DBException, FatalException
setValue
インタフェース内 Column
DBException
FatalException
public java.lang.String getUpdateQuery()
Column
getUpdateQuery
インタフェース内 Column
public java.lang.String toString()
toString
クラス内 java.lang.Object
protected java.lang.String createQueryString(java.lang.String columnName, Table table)
protected java.lang.String createUpdateQueryString(java.lang.String columnName, Table table)