Class AutoNumberProperty
- java.lang.Object
-
- org.iplass.mtp.entity.definition.PropertyDefinition
-
- org.iplass.mtp.entity.definition.properties.AutoNumberProperty
-
- All Implemented Interfaces:
java.io.Serializable
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情報
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.iplass.mtp.entity.definition.PropertyDefinition
MULTIPLICITY_INFINITE
-
-
Constructor Summary
Constructors Constructor Description AutoNumberProperty()AutoNumberProperty(java.lang.String name)
-
Method Summary
Modifier and Type Method Description intgetFixedNumberOfDigits()java.lang.StringgetFormatScript()java.lang.Class<?>getJavaType()NumberingTypegetNumberingType()longgetStartsWith()PropertyDefinitionTypegetType()enumでPropertyの型を返す。 switch/case文で利用可能なように。voidsetFixedNumberOfDigits(int fixedNumberOfDigits)voidsetFormatScript(java.lang.String formatScript)voidsetNumberingType(NumberingType numberingType)voidsetStartsWith(long startsWith)-
Methods inherited from class org.iplass.mtp.entity.definition.PropertyDefinition
addLocalizedDisplayName, getDefaultValue, getDescription, getDisplayName, getIndexType, getLocalizedDisplayNameList, getMultiplicity, getName, getValidations, isInherited, isReadOnly, isUpdatable, setDefaultValue, setDescription, setDisplayName, setIndexType, setInherited, setLocalizedDisplayNameList, setMultiplicity, setName, setReadOnly, setUpdatable, setValidations
-
-
-
-
Method Detail
-
getNumberingType
public NumberingType getNumberingType()
-
setNumberingType
public void setNumberingType(NumberingType numberingType)
-
getStartsWith
public long getStartsWith()
-
setStartsWith
public void setStartsWith(long startsWith)
-
getFixedNumberOfDigits
public int getFixedNumberOfDigits()
-
setFixedNumberOfDigits
public void setFixedNumberOfDigits(int fixedNumberOfDigits)
-
getFormatScript
public java.lang.String getFormatScript()
-
setFormatScript
public void setFormatScript(java.lang.String formatScript)
-
getJavaType
public java.lang.Class<?> getJavaType()
- Specified by:
getJavaTypein classPropertyDefinition
-
getType
public PropertyDefinitionType getType()
Description copied from class:PropertyDefinitionenumでPropertyの型を返す。 switch/case文で利用可能なように。- Specified by:
getTypein classPropertyDefinition- Returns:
-
-