7.0 Action Request System Java API

com.remedy.arsys.api
Class IndexInfo

java.lang.Object
  extended bycom.remedy.arsys.api.IndexInfo
All Implemented Interfaces:
java.lang.Cloneable

public class IndexInfo
extends java.lang.Object
implements java.lang.Cloneable

The IndexInfo class defines which fields are indexed on the schema.


Constructor Summary
IndexInfo(InternalID[] ids, boolean unique, NameID name)
          Constructs a new IndexInfo object.
 
Method Summary
 java.lang.Object clone()
          Makes a copy of the object.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality.
 InternalID[] getIndexFields()
          Returns fields indexed for schema.
 NameID getIndexName()
          Returns name of index.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 boolean isUnique()
          Returns list of fields with unique indexes.
 void setIndexFields(InternalID[] ids)
          Sets fields indexed for schema.
 void setIndexName(NameID name)
          Sets name of index.
 void setIsUniqueFlag(boolean flag)
          Sets unique index on fields.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexInfo

public IndexInfo(InternalID[] ids,
                 boolean unique,
                 NameID name)
Constructs a new IndexInfo object.

Parameters:
ids - The InternalID of the fields.
unique - A boolean value to indicate whether the index is unique.
name - Name of the index.
Method Detail

getIndexFields

public InternalID[] getIndexFields()
Returns fields indexed for schema.


setIndexFields

public void setIndexFields(InternalID[] ids)
Sets fields indexed for schema.


isUnique

public boolean isUnique()
Returns list of fields with unique indexes.


setIsUniqueFlag

public void setIsUniqueFlag(boolean flag)
Sets unique index on fields.


getIndexName

public NameID getIndexName()
Returns name of index.


setIndexName

public void setIndexName(NameID name)
Sets name of index.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Makes a copy of the object.

Throws:
java.lang.CloneNotSupportedException

equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality. The result is true only if the argument is not null, is of same type and represents the same content.


hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.


7.0 Action Request System Java API