Class DefaultIdSourceConfigurator
java.lang.Object
org.tentackle.dbms.DefaultIdSourceConfigurator
- All Implemented Interfaces:
IdSourceConfigurator
@Service(IdSourceConfigurator.class)
public class DefaultIdSourceConfigurator
extends Object
implements IdSourceConfigurator
Default
IdSourceConfigurator.
There are 2 configuration options:
- table:<name>: an
ObjectIdcounting in the given table - sequence:<name>[:<sequence-multiplier>:<global-multiplier>]: an
ObjectSequenceIdon the given sequence
sequence:object_sequence_id if the backend supports
sequences, otherwise table:object_id.- Author:
- harald
-
Field Details
-
TABLE_BASED
-
SEQUENCE_BASED
-
-
Constructor Details
-
DefaultIdSourceConfigurator
public DefaultIdSourceConfigurator()Creates an IdSource configurator.
-
-
Method Details
-
configure
Description copied from interface:IdSourceConfiguratorCreates the ID source from its configuration.- Specified by:
configurein interfaceIdSourceConfigurator- Parameters:
idConfig- the configuration, never null- Returns:
- the configured IdSource
- See Also:
-
configure
Description copied from interface:IdSourceConfiguratorCreates the backend's default ID source.- Specified by:
configurein interfaceIdSourceConfigurator- Parameters:
backend- the backend to derive the default config from- Returns:
- the configured IdSource
-