public class SimpleIdAllocator extends java.lang.Object implements ModelInstanceResourceAllocator
ModelInstanceResourceAllocator.
 It allocates maximum ids for values. 
 This allocator should not be used for model instances from which detached copies are created.| Constructor and Description | 
|---|
| SimpleIdAllocator()Creates new instances. | 
| Modifier and Type | Method and Description | 
|---|---|
| AllocatedModelInstanceResources | allocateDetachmentAndValueIds(ModelInstance modelInstance)Allocates next id for detachment in the model instance. | 
| AllocatedModelInstanceResources | allocateValueIds(ModelInstance modelInstance)Allocates new range of ids for values in the model instance. | 
| long | getAllocationSize()Returns allocation size for value ids. | 
public long getAllocationSize()
ModelInstanceResourceAllocatorgetAllocationSize in interface ModelInstanceResourceAllocatorpublic AllocatedModelInstanceResources allocateValueIds(ModelInstance modelInstance)
ModelInstanceResourceAllocatorallocateValueIds in interface ModelInstanceResourceAllocatorpublic AllocatedModelInstanceResources allocateDetachmentAndValueIds(ModelInstance modelInstance)
ModelInstanceResourceAllocatorallocateDetachmentAndValueIds in interface ModelInstanceResourceAllocatorCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.