|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.cmdb.api.CMDBIndex
public class CMDBIndex
The CMDBIndex
class defines the index of an CMDBClass object.
Field Summary | |
---|---|
static int |
AR_MAX_INDEX_ATTRIBUTES
|
Constructor Summary | |
---|---|
CMDBIndex(java.lang.String indexName)
Creates a class index with minimal information. |
|
CMDBIndex(java.lang.String indexName,
boolean unique,
boolean isPrimaryKey,
java.lang.String[] attributeNames)
Creates a class index with the provided information. |
Method Summary | |
---|---|
java.lang.String[] |
getAttributeNames()
Gets the names of all indexed attributes. |
java.lang.String |
getIndexName()
Gets the name of the index. |
boolean |
isPrimaryKey()
Gets if the index is a primary key. |
boolean |
isUnique()
Gets if the index is a unique index. |
void |
setAttributeNames(java.lang.String[] attributeNames)
Sets the names of all indexed attributes. |
void |
setIndexName(java.lang.String indexName)
Sets the name of the index. |
void |
setPrimaryKey(boolean primaryKey)
Sets the index as a primaryKey. |
void |
setUnique(boolean unique)
Sets the uniqueness of the index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AR_MAX_INDEX_ATTRIBUTES
Constructor Detail |
---|
public CMDBIndex(java.lang.String indexName)
indexName
- the name of the indexpublic CMDBIndex(java.lang.String indexName, boolean unique, boolean isPrimaryKey, java.lang.String[] attributeNames)
indexName
- the name of the indexunique
- specifies if this is a unique indexisPrimaryKey
- Specifies if this index is a primary key.
If the value is TRUE, attributes in this index comprise the
primary key of the object.attributeNames
- names of all indexed attributes
java.lang.IllegalArgumentException
- if the length of index name
is longer than Constants.AR_MAX_NAME_SIZE
java.lang.IllegalArgumentException
- if the number of attributes
in the index is more than
AR_MAX_INDEX_ATTRIBUTES
Method Detail |
---|
public java.lang.String getIndexName()
public boolean isUnique()
public boolean isPrimaryKey()
public java.lang.String[] getAttributeNames()
public void setIndexName(java.lang.String indexName)
indexName
- the name of the indexpublic void setUnique(boolean unique)
unique
- uniqueness of the indexpublic void setPrimaryKey(boolean primaryKey)
primaryKey
- the index is a primary Keypublic void setAttributeNames(java.lang.String[] attributeNames)
attributeNames
- the names of all indexed attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |