@Component(value="cuba_NumberIdSource") public class NumberIdSourceImpl extends java.lang.Object implements NumberIdSource
Modifier and Type | Field and Description |
---|---|
protected NumberIdCache |
cache |
protected NumberIdWorker |
worker |
NAME
Constructor and Description |
---|
NumberIdSourceImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
createIntegerId(java.lang.String entityName) |
java.lang.Long |
createLongId(java.lang.String entityName) |
@Inject protected NumberIdWorker worker
@Inject protected NumberIdCache cache
public java.lang.Long createLongId(java.lang.String entityName)
createLongId
in interface NumberIdSource
public java.lang.Integer createIntegerId(java.lang.String entityName)
createIntegerId
in interface NumberIdSource