com.sap.mdm.schema
Class TableProperties

java.lang.Object
  extended bycom.sap.mdm.schema.TableProperties
All Implemented Interfaces:
Cloneable, NamedRepositoryItem, RepositoryItem

public class TableProperties
extends Object
implements NamedRepositoryItem

This class represents a MDM table.

See Also:
CreateTableCommand, FieldProperties

Field Summary
static int CHANGE_TRACKING
           
static int FAMILY
           
static int FLAT
           
static int HIERARCHY
           
static int MAIN
           
static int MASK
           
static int NAMED_SEARCHES
           
static int OBJECT_ACROBAT
           
static int OBJECT_COPY_BLOCK
           
static int OBJECT_EXTERNAL
           
static int OBJECT_GROUPS
           
static int OBJECT_HTML
           
static int OBJECT_IMAGE
           
static int OBJECT_LOCATIONS
           
static int OBJECT_MEDIA_TYPES
           
static int OBJECT_SOUND
           
static int OBJECT_TEXT
           
static int OBJECT_VARIANT
           
static int OBJECT_VIDEO
           
static int QUALIFIED_FLAT
           
static int QUALIFIED_HIERARCHY
          Deprecated. It was never supported.
static int QUALIFIED_TAXONOMY
          Deprecated. it was never supported.
static int RELATIONSHIP
           
static int SECURITY
           
static int SECURITY_LOGIN
           
static int SECURITY_ROLE
           
static int SECURITY_USER
           
static int TAXONOMY
           
static int WORKFLOW
           
 
Constructor Summary
TableProperties(int type)
          Creates a new instance of TableProperties.
TableProperties(TableProperties other)
          Copy c'tor.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 String getCode()
          Returns a string identifier for a named repository object.
 String getDescription()
          Returns the table description.
 FieldId getDisplayFieldId()
          Returns the first display field.
 FieldId[] getDisplayFieldIds()
          Returns all fields that are marked as a display field for the table.
 TableId getId()
          Get table ID
 TableId getMaskTableId()
          Returns the mask table ID.
 MultilingualString getName()
          Returns the table name.
 String getTableTypeName()
          Returns the table type as a string.
 int getType()
          Returns the table type.
 boolean hasAttributes()
          Returns whether the table is a taxonomy table.
 int hashCode()
           
 boolean hasHierarchy()
          Returns whether the table is an hierarchy table.
 boolean hasLargeObjects()
          Returns whether the table is a large object table.
 boolean isAttributeDefinitionsKeyMappable()
          Returns whether the taxonomy table is enable for attribute definitions key mappable.
 boolean isBlobTable()
          Returns whether the table is blob table.
 boolean isEditable()
          Returns whether the table is editable.
 boolean isKeyMapable()
          Deprecated. replaced by isKeyMappable()
 boolean isKeyMappable()
          Returns whether the records are enable for key mappable.
 void setAttributeDefinitionsKeyMappable(boolean isKeyMappable)
          Sets whether the taxonomy table is enable for attribute definitions key mappable.
 void setCode(String code)
          Sets the table coding name.
 void setDescription(String description)
          Sets the table description.
 void setDisplayFieldIds(FieldId[] fieldIds)
          Sets the display fields for the table.
 void setId(String idString)
          For internal use only.
 void setId(TableId id)
          For internal use only.
 void setKeyMapable(boolean keyMappable)
          Deprecated. replaced by setKeyMappable(boolean)
 void setKeyMappable(boolean keyMappable)
          Sets whether the records are enable for key mappable.
 void setMaskTableId(TableId maskTableId)
          For internal use only.
 void setName(MultilingualString name)
          Sets the table name.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGE_TRACKING

public static final int CHANGE_TRACKING
See Also:
Constant Field Values

FAMILY

public static final int FAMILY
See Also:
Constant Field Values

FLAT

public static final int FLAT
See Also:
Constant Field Values

HIERARCHY

public static final int HIERARCHY
See Also:
Constant Field Values

MAIN

public static final int MAIN
See Also:
Constant Field Values

MASK

public static final int MASK
See Also:
Constant Field Values

OBJECT_ACROBAT

public static final int OBJECT_ACROBAT
See Also:
Constant Field Values

OBJECT_EXTERNAL

public static final int OBJECT_EXTERNAL
See Also:
Constant Field Values

OBJECT_GROUPS

public static final int OBJECT_GROUPS
See Also:
Constant Field Values

OBJECT_HTML

public static final int OBJECT_HTML
See Also:
Constant Field Values

OBJECT_IMAGE

public static final int OBJECT_IMAGE
See Also:
Constant Field Values

OBJECT_LOCATIONS

public static final int OBJECT_LOCATIONS
See Also:
Constant Field Values

OBJECT_MEDIA_TYPES

public static final int OBJECT_MEDIA_TYPES
See Also:
Constant Field Values

OBJECT_SOUND

public static final int OBJECT_SOUND
See Also:
Constant Field Values

OBJECT_TEXT

public static final int OBJECT_TEXT
See Also:
Constant Field Values

OBJECT_COPY_BLOCK

public static final int OBJECT_COPY_BLOCK
See Also:
Constant Field Values

OBJECT_VARIANT

public static final int OBJECT_VARIANT
See Also:
Constant Field Values

OBJECT_VIDEO

public static final int OBJECT_VIDEO
See Also:
Constant Field Values

QUALIFIED_FLAT

public static final int QUALIFIED_FLAT
See Also:
Constant Field Values

NAMED_SEARCHES

public static final int NAMED_SEARCHES
See Also:
Constant Field Values

QUALIFIED_HIERARCHY

public static final int QUALIFIED_HIERARCHY
Deprecated. It was never supported.

See Also:
Constant Field Values

QUALIFIED_TAXONOMY

public static final int QUALIFIED_TAXONOMY
Deprecated. it was never supported.

See Also:
Constant Field Values

RELATIONSHIP

public static final int RELATIONSHIP
See Also:
Constant Field Values

SECURITY

public static final int SECURITY
See Also:
Constant Field Values

SECURITY_LOGIN

public static final int SECURITY_LOGIN
See Also:
Constant Field Values

SECURITY_ROLE

public static final int SECURITY_ROLE
See Also:
Constant Field Values

SECURITY_USER

public static final int SECURITY_USER
See Also:
Constant Field Values

TAXONOMY

public static final int TAXONOMY
See Also:
Constant Field Values

WORKFLOW

public static final int WORKFLOW
See Also:
Constant Field Values
Constructor Detail

TableProperties

public TableProperties(int type)
Creates a new instance of TableProperties.

Parameters:
type - the table type.

TableProperties

public TableProperties(TableProperties other)
Copy c'tor. Creates deep copy of TableProperties object.

Parameters:
other - Object to copy
Since:
7.2
Method Detail

getDisplayFieldId

public FieldId getDisplayFieldId()
Returns the first display field.

Returns:
the first display field.

getDisplayFieldIds

public FieldId[] getDisplayFieldIds()
Returns all fields that are marked as a display field for the table.

Returns:
the display fields.

getId

public TableId getId()
Get table ID

Returns:
table ID

getMaskTableId

public TableId getMaskTableId()
Returns the mask table ID.

Returns:
the mask table ID.

setMaskTableId

public void setMaskTableId(TableId maskTableId)
For internal use only. Sets the mask table ID.

Parameters:
maskTableId - the mask table ID.

getName

public MultilingualString getName()
Returns the table name.

Returns:
the table name.

setName

public void setName(MultilingualString name)
Sets the table name.

Parameters:
name - the table name.

getCode

public String getCode()
Description copied from interface: NamedRepositoryItem
Returns a string identifier for a named repository object.

Specified by:
getCode in interface NamedRepositoryItem
Returns:
the code name

setCode

public void setCode(String code)
Sets the table coding name.

Parameters:
code - the table coding name.

getTableTypeName

public String getTableTypeName()
Returns the table type as a string.

Returns:
the table type.

getType

public int getType()
Returns the table type.

Returns:
the table type.

hasAttributes

public boolean hasAttributes()
Returns whether the table is a taxonomy table.

Returns:
whether the table is a taxonomy table.

hasHierarchy

public boolean hasHierarchy()
Returns whether the table is an hierarchy table.

Returns:
whether the table is an hierarchy table.

hasLargeObjects

public boolean hasLargeObjects()
Returns whether the table is a large object table.

Returns:
whether the table is a large object table.

isEditable

public boolean isEditable()
Returns whether the table is editable.

Returns:
whether the table is editable.

setDisplayFieldIds

public void setDisplayFieldIds(FieldId[] fieldIds)
Sets the display fields for the table.

Parameters:
fieldIds - the display fields.

setId

public void setId(String idString)
           throws IllegalArgumentException
For internal use only. Sets the table ID.

Parameters:
idString - the table ID in a string format.
Throws:
IllegalArgumentException

setId

public void setId(TableId id)
For internal use only. Sets the table ID.

Parameters:
id - the table ID.

toString

public String toString()

isKeyMapable

public boolean isKeyMapable()
Deprecated. replaced by isKeyMappable()

Returns whether the table is enable for key mappable.

Returns:
whether the table is enable for key mappable.

setKeyMapable

public void setKeyMapable(boolean keyMappable)
Deprecated. replaced by setKeyMappable(boolean)

Sets whether the table is enable for key mappable.

Parameters:
keyMappable - whether the table is enable for key mappable.

isKeyMappable

public boolean isKeyMappable()
Returns whether the records are enable for key mappable.

Returns:
whether the records are enable for key mappable.

setKeyMappable

public void setKeyMappable(boolean keyMappable)
Sets whether the records are enable for key mappable.

Parameters:
keyMappable - whether the records are enable for key mappable.

isAttributeDefinitionsKeyMappable

public boolean isAttributeDefinitionsKeyMappable()
Returns whether the taxonomy table is enable for attribute definitions key mappable.

Returns:
true if the attribute definitions are key mappable, otherwise false
Since:
7.1 SP9

setAttributeDefinitionsKeyMappable

public void setAttributeDefinitionsKeyMappable(boolean isKeyMappable)
Sets whether the taxonomy table is enable for attribute definitions key mappable.

Parameters:
isKeyMappable - code>true if the attribute definitions are key mappable, otherwise false
Since:
7.1 SP9

getDescription

public String getDescription()
Returns the table description.

Returns:
a table description

setDescription

public void setDescription(String description)
Sets the table description.

Parameters:
description - a table description

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

isBlobTable

public boolean isBlobTable()
Returns whether the table is blob table. For example, Images, PDFs, etc.

Returns:
true if a blob table, otherwise false

clone

public Object clone()


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.