Class AutoNumberProperty
java.lang.Object
org.iplass.mtp.entity.definition.PropertyDefinition
org.iplass.mtp.entity.definition.properties.AutoNumberProperty
- All Implemented Interfaces:
- Serializable
自動採番される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情報
 
- See Also:
- 
Field SummaryFields inherited from class org.iplass.mtp.entity.definition.PropertyDefinitionMULTIPLICITY_INFINITE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintClass<?> longgetType()enumでPropertyの型を返す。 switch/case文で利用可能なように。voidsetFixedNumberOfDigits(int fixedNumberOfDigits) voidsetFormatScript(String formatScript) voidsetNumberingType(NumberingType numberingType) voidsetStartsWith(long startsWith) Methods inherited from class org.iplass.mtp.entity.definition.PropertyDefinitionaddLocalizedDisplayName, getDefaultValue, getDescription, getDisplayName, getIndexType, getLocalizedDisplayNameList, getMultiplicity, getName, getNormalizers, getValidations, isInherited, isReadOnly, isUpdatable, setDefaultValue, setDescription, setDisplayName, setIndexType, setInherited, setLocalizedDisplayNameList, setMultiplicity, setName, setNormalizers, setReadOnly, setUpdatable, setValidations
- 
Constructor Details- 
AutoNumberPropertypublic AutoNumberProperty()
- 
AutoNumberProperty
 
- 
- 
Method Details- 
getNumberingType
- 
setNumberingType
- 
getStartsWithpublic long getStartsWith()
- 
setStartsWithpublic void setStartsWith(long startsWith) 
- 
getFixedNumberOfDigitspublic int getFixedNumberOfDigits()
- 
setFixedNumberOfDigitspublic void setFixedNumberOfDigits(int fixedNumberOfDigits) 
- 
getFormatScript
- 
setFormatScript
- 
getJavaType- Specified by:
- getJavaTypein class- PropertyDefinition
 
- 
getTypeDescription copied from class:PropertyDefinitionenumでPropertyの型を返す。 switch/case文で利用可能なように。- Specified by:
- getTypein class- PropertyDefinition
- Returns:
 
 
-