@Published(tag="architect") public class BasicDefaultValues extends Object implements DefaultValues
+----------+--------------------+ | カラム | デフォルト値 | +==========+====================+ | 数値型 | 0 | +----------+--------------------+ | 文字列型 | " " (半角スペース) | +----------+--------------------+ | 日付型 | システム日時 | +----------+--------------------+ | 論理型 | false | +----------+--------------------+
修飾子とタイプ | メソッドと説明 |
---|---|
Object |
get(int columnType,
int maxLength)
データ型に応じたデフォルト値を取得する。
|
protected Object |
getBinaryValue()
バイナリ型のデフォルト値を取得する。
|
protected Boolean |
getBooleanValue()
Boolean型のデフォルト値を取得する。
|
protected String |
getCharValue(int length)
固定長文字列型のデフォルト値を取得する。
|
protected String |
getClobValue(int length)
Clob型のデフォルト値を取得する。
|
protected Timestamp |
getDateValue()
日付型のデフォルト値を取得する。
|
protected String |
getNumberValue(int length)
数値型のデフォルト値を取得する。
|
protected String |
getUnknownValue(int columnType,
int length)
不明な型の場合のデフォルト値を取得する。
|
protected String |
getVarcharValue(int length)
可変長文字列型のデフォルト値を取得する。
|
void |
setCharValue(String charValue)
文字列型のデフォルト値を設定する。
|
void |
setDateValue(String dateValue)
日付型のデフォルト値を設定する。
|
void |
setNumberValue(String numberValue)
数値型のデフォルト値を設定する。
|
public Object get(int columnType, int maxLength)
get
インタフェース内 DefaultValues
columnType
- java.sql.Types からの SQL 型maxLength
- 最大桁public void setCharValue(String charValue)
charValue
- 文字列型のデフォルト値public void setDateValue(String dateValue)
dateValue
- 日付型のデフォルト値(JDBC タイムスタンプエスケープ形式)Timestamp#valueOf(String)
public void setNumberValue(String numberValue)
numberValue
- 数値型のデフォルト値protected Timestamp getDateValue()
protected String getVarcharValue(int length)
length
- 本メソッドでは使用しない(サブクラスを考慮して付与)protected String getCharValue(int length)
length
- カラム長protected String getNumberValue(int length)
length
- カラム長protected String getClobValue(int length)
length
- 本メソッドでは使用しない(サブクラスを考慮して付与)protected Object getBinaryValue()
protected Boolean getBooleanValue()
protected String getUnknownValue(int columnType, int length)
columnType
- カラム型length
- カラム長UnsupportedOperationException
- 必ず送出される