com.sap.mdm.data.permanentid.commands
Class GetPermanentIdFromTextAttributeValueIdCommand

java.lang.Object
  extended bycom.sap.mdm.commands.AbstractCommandBase
      extended bycom.sap.mdm.commands.AbstractCommand
          extended bycom.sap.mdm.session.AbstractSessionCommand
              extended bycom.sap.mdm.session.AbstractUserSessionCommand
                  extended bycom.sap.mdm.data.permanentid.commands.GetPermanentIdFromTextAttributeValueIdCommand
All Implemented Interfaces:
Command, PassportSupport

public class GetPermanentIdFromTextAttributeValueIdCommand
extends AbstractUserSessionCommand

The command is used to retrieve permanent ids of text attribute values by attribute text value ids.

Since:
7.1

Constructor Summary
GetPermanentIdFromTextAttributeValueIdCommand(ConnectionAccessor connection)
          C'tor
GetPermanentIdFromTextAttributeValueIdCommand(UserSessionContext ctx)
          C'tor.
 
Method Summary
 AttributeId getAttributeId()
          Get attribute id of the text attribute which text attribute values permanent ids should be retrieved from the repository.
 TextAttributeValueId[] getAttributeTextValueIds()
          Get text attribute values IDs those permanent IDs should be retrieved from the repository.
 int[] getPermanentIds()
          Get permanent ids.
 TableId getTableId()
          Get ID of the table that contains text attribute values.
 void setAttributeId(AttributeId attributeId)
          Set attribute id of the text attribute which text attribute values permanent ids should be retrieved from the repository (required*).
 void setAttributeTextValueIds(TextAttributeValueId[] textAttributeValueIds)
          Set IDs of text attribute values those permanent IDs should be retrieved from the repository (required*).
 void setTableId(TableId tableId)
          Set ID of the table that contains text attribute values (required*).
 
Methods inherited from class com.sap.mdm.commands.AbstractCommand
getSession, setSession
 
Methods inherited from class com.sap.mdm.commands.AbstractCommandBase
execute, getPassport, isCommandComplete, setPassport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetPermanentIdFromTextAttributeValueIdCommand

public GetPermanentIdFromTextAttributeValueIdCommand(ConnectionAccessor connection)
C'tor

Parameters:
connection - connection to the mdm server.

GetPermanentIdFromTextAttributeValueIdCommand

public GetPermanentIdFromTextAttributeValueIdCommand(UserSessionContext ctx)
                                              throws SessionException,
                                                     ConnectionException
C'tor.

Parameters:
ctx - user session context.
Method Detail

setAttributeId

public void setAttributeId(AttributeId attributeId)
Set attribute id of the text attribute which text attribute values permanent ids should be retrieved from the repository (required*).

Parameters:
attributeId - attribute id.

getAttributeId

public AttributeId getAttributeId()
Get attribute id of the text attribute which text attribute values permanent ids should be retrieved from the repository.

Returns:
attribute id.

setAttributeTextValueIds

public void setAttributeTextValueIds(TextAttributeValueId[] textAttributeValueIds)
Set IDs of text attribute values those permanent IDs should be retrieved from the repository (required*).

Parameters:
textAttributeValueIds - text attribute value ids.

getAttributeTextValueIds

public TextAttributeValueId[] getAttributeTextValueIds()
Get text attribute values IDs those permanent IDs should be retrieved from the repository.

Returns:
text attribute value id.

setTableId

public void setTableId(TableId tableId)
Set ID of the table that contains text attribute values (required*).

Parameters:
tableId - id of the table supposed to contain entity ids.

getTableId

public TableId getTableId()
Get ID of the table that contains text attribute values.

Returns:
table id.

getPermanentIds

public int[] getPermanentIds()
Get permanent ids. The order of permanent ids match the order of specified set of normal ids. Note: Id value -1 stands for illegal permanent id.

Returns:
permanent ids.


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.