public class AutoNumberProperty extends PropertyDefinition
自動採番されるidを表すプロパティ。
fixedNumberOfDigitsは、0パディングする桁数。0パディングしない場合は-1を指定。デフォルト-1。
startsWithは、採番を開始する番号。デフォルト0。
numberingTypeは、採番時、飛び番を許すか否かの設定。デフォルトALLOW_SKIPPING。
formatScriptは、自動採番されるIDのフォーマット指定。
po-${yyyy}${MM}-${nextVal()}のような形でフォーマット指定 可能。
nextVal() :次の採番された番号
yyyy :年
MM :月
dd :日
HH :時、24h表記
mm :分
ss :秒
date :java.sql.Timestampのインスタンス
user :user情報
MULTIPLICITY_INFINITE
コンストラクタと説明 |
---|
AutoNumberProperty() |
AutoNumberProperty(java.lang.String name) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getFixedNumberOfDigits() |
java.lang.String |
getFormatScript() |
java.lang.Class<?> |
getJavaType() |
NumberingType |
getNumberingType() |
long |
getStartsWith() |
PropertyDefinitionType |
getType()
enumでPropertyの型を返す。
|
void |
setFixedNumberOfDigits(int fixedNumberOfDigits) |
void |
setFormatScript(java.lang.String formatScript) |
void |
setNumberingType(NumberingType numberingType) |
void |
setStartsWith(long startsWith) |
addLocalizedDisplayName, getDefaultValue, getDescription, getDisplayName, getIndexType, getLocalizedDisplayNameList, getMultiplicity, getName, getValidations, isInherited, isReadOnly, isUpdatable, setDefaultValue, setDescription, setDisplayName, setIndexType, setInherited, setLocalizedDisplayNameList, setMultiplicity, setName, setReadOnly, setUpdatable, setValidations
public AutoNumberProperty()
public AutoNumberProperty(java.lang.String name)
public NumberingType getNumberingType()
public void setNumberingType(NumberingType numberingType)
public long getStartsWith()
public void setStartsWith(long startsWith)
public int getFixedNumberOfDigits()
public void setFixedNumberOfDigits(int fixedNumberOfDigits)
public java.lang.String getFormatScript()
public void setFormatScript(java.lang.String formatScript)
public java.lang.Class<?> getJavaType()
getJavaType
クラス内 PropertyDefinition
public PropertyDefinitionType getType()
PropertyDefinition
getType
クラス内 PropertyDefinition