Interface Aggregate<This extends Aggregate<This,AID>,AID extends AggregateId>
-
- Type Parameters:
This- Aggregate type / 集約の型AID- Aggregate ID type / 集約IDの型
public interface Aggregate<This extends Aggregate<This,AID>,AID extends AggregateId>This is an interface for representing aggregates. / 集約を表すためのインターフェース。
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AIDgetId()Returns the aggregate ID.longgetSequenceNumber()Returns the sequence number.longgetVersion()Returns the version.ThiswithVersion(long version)Sets the version.
-
-
-
Method Detail
-
getId
@Nonnull AID getId()
Returns the aggregate ID. / 集約IDを返します。- Returns:
- aggregate ID / 集約ID
-
getSequenceNumber
long getSequenceNumber()
Returns the sequence number. / シーケンス番号を返します。- Returns:
- sequence number / シーケンス番号
-
getVersion
long getVersion()
Returns the version. / バージョンを返します。- Returns:
- version / バージョン
-
withVersion
This withVersion(long version)
Sets the version. / バージョンを設定します。- Parameters:
version- version / バージョン- Returns:
- this
-
-