com.sap.mdm.ids
Class AbstractUniqueId

java.lang.Object
  extended bycom.sap.mdm.ids.AbstractId
      extended bycom.sap.mdm.ids.AbstractUniqueId
All Implemented Interfaces:
Cloneable, Id
Direct Known Subclasses:
AssignmentId, AttributeId, BlobId, FieldId, GroupNodeId, ImageVariantId, MatchingRuleId, MatchingStrategyId, MatchingTaskId, PortId, QualifiedLinkId, RecordId, RemoteSystemId, TextAttributeValueId, TupleRecordId, ValidationId, WorkflowId, WorkflowJobId, WorkflowStepId

public abstract class AbstractUniqueId
extends AbstractId

This class is ancestor for all unique ID implementations


Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.ids.Id
Id.Type
 
Field Summary
 int uniqueId
           
 
Fields inherited from class com.sap.mdm.ids.AbstractId
id
 
Fields inherited from interface com.sap.mdm.ids.Id
EMPTY_ID
 
Constructor Summary
AbstractUniqueId(AbstractUniqueId that)
          Copy constructor
AbstractUniqueId(int id)
          Constructor
AbstractUniqueId(int id, int uniqueId)
          Constructor
AbstractUniqueId(String idString)
          String constructor
 
Method Summary
 boolean equals(Object o)
           
 String getString()
          Get string representation of ID
 int getUniqueIdValue()
          Returns the permanent Id.
 
Methods inherited from class com.sap.mdm.ids.AbstractId
getIdValue, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sap.mdm.ids.Id
getType
 

Field Detail

uniqueId

public final int uniqueId
Constructor Detail

AbstractUniqueId

public AbstractUniqueId(int id)
Constructor

Parameters:
id - non-unique ID

AbstractUniqueId

public AbstractUniqueId(int id,
                        int uniqueId)
Constructor

Parameters:
id - non-unique ID
uniqueId - unique ID

AbstractUniqueId

public AbstractUniqueId(String idString)
                 throws IllegalArgumentException
String constructor

Parameters:
idString - string representation of ID
Throws:
IllegalArgumentException - if specified string can not be converted to ID

AbstractUniqueId

public AbstractUniqueId(AbstractUniqueId that)
Copy constructor

Parameters:
that - ID to copy
Method Detail

getUniqueIdValue

public int getUniqueIdValue()
Returns the permanent Id.

Note: This is not supported by all repository item.

Returns:
the permanent Id

getString

public String getString()
Description copied from interface: Id
Get string representation of ID

Specified by:
getString in interface Id
Overrides:
getString in class AbstractId

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractId
See Also:
Object.equals(java.lang.Object)


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.