public static class JdbcAggregateStorage.Builder<I> extends StorageBuilder<JdbcAggregateStorage.Builder<I>,JdbcAggregateStorage<I>>
JdbcAggregateStorage
.Modifier and Type | Method and Description |
---|---|
protected void |
checkPreconditions()
Checks the preconditions of the storage construction.
|
JdbcAggregateStorage<I> |
doBuild()
Builds a new instance of the
Storage . |
java.lang.Class<? extends io.spine.server.aggregate.Aggregate<I,?,?>> |
getAggregateClass() |
protected JdbcAggregateStorage.Builder<I> |
getThis()
Returns current instance of
StorageBuilder . |
JdbcAggregateStorage.Builder<I> |
setAggregateClass(java.lang.Class<? extends io.spine.server.aggregate.Aggregate<I,?,?>> aggregateClass)
Sets the class of aggregates to be stored.
|
build, getDataSource, getTypeMapping, isMultitenant, setDataSource, setMultitenant, setTypeMapping
protected JdbcAggregateStorage.Builder<I> getThis()
StorageBuilder
StorageBuilder
.
Used in setters to avoid extra unchecked casts.
getThis
in class StorageBuilder<JdbcAggregateStorage.Builder<I>,JdbcAggregateStorage<I>>
StorageBuilder.this
referencepublic JdbcAggregateStorage<I> doBuild()
StorageBuilder
Storage
.
The construction preconditions are checked before calling this method.
doBuild
in class StorageBuilder<JdbcAggregateStorage.Builder<I>,JdbcAggregateStorage<I>>
Storage
.protected void checkPreconditions() throws java.lang.IllegalStateException
StorageBuilder
Default implementation checks that the field StorageBuilder.dataSource
was set to a non-null value.
Override this method to modify these preconditions.
checkPreconditions
in class StorageBuilder<JdbcAggregateStorage.Builder<I>,JdbcAggregateStorage<I>>
java.lang.IllegalStateException
- upon a precondition violationpublic java.lang.Class<? extends io.spine.server.aggregate.Aggregate<I,?,?>> getAggregateClass()
public JdbcAggregateStorage.Builder<I> setAggregateClass(java.lang.Class<? extends io.spine.server.aggregate.Aggregate<I,?,?>> aggregateClass)