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