com.sapportals.wcm.service.landscape

Class AutoID

java.lang.Object
  extended by com.sapportals.wcm.service.landscape.AutoID

public final class AutoID
extends Object

The good old "Nummernkreis" is back: This class generates sequential numbers for use as primary keys in (OpenSQL) database tables. During the initialize() method all component instances on different culster nodes which use the same "number range" are synchronized via the central database.


Constructor Summary
AutoID(String name)
           
 
Method Summary
 long getNextID()
          Returns the next number of this range.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoID

public AutoID(String name)
       throws WcmException
Throws:
WcmException
Method Detail

getNextID

public long getNextID()
Returns the next number of this range.

Returns:
the next number of this range.

toString

public String toString()
Overrides:
toString in class Object
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice