Class IndexInfo
- java.lang.Object
- 
- org.datanucleus.store.rdbms.schema.IndexInfo
 
- 
- All Implemented Interfaces:
- org.datanucleus.store.schema.StoreSchemaData
 
 public class IndexInfo extends Object implements org.datanucleus.store.schema.StoreSchemaData Represents the metadata of a specific index column. Supports the following properties.- table_cat
- table_schem
- table_name
- column_name
- non_unique
- index_name
- type
- ordinal_position
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String name, Object value)Method to add a property for the index.booleanequals(Object obj)Indicates whether some object is "equal to" this one.ObjectgetProperty(String name)Accessor for a property.inthashCode()Returns a hash code value for this object.StringtoString()Returns the string representation of this object.
 
- 
- 
- 
Constructor Detail- 
IndexInfopublic IndexInfo(ResultSet rs) Constructs an index information object from the current row of the given result set. TheResultSetobject passed must have been obtained from a call to java.sql.DatabaseMetaData.getIndexInfo().- Parameters:
- rs- The result set returned from java.sql.DatabaseMetaData.getIndexInfo().
- Throws:
- org.datanucleus.exceptions.NucleusDataStoreException- if an exception occurs during retrieval
 
 
- 
 - 
Method Detail- 
addPropertypublic void addProperty(String name, Object value) Method to add a property for the index.- Specified by:
- addPropertyin interface- org.datanucleus.store.schema.StoreSchemaData
- Parameters:
- name- Name of property
- value- Its value
 
 - 
getPropertypublic Object getProperty(String name) Accessor for a property.- Specified by:
- getPropertyin interface- org.datanucleus.store.schema.StoreSchemaData
- Parameters:
- name- Name of the property
- Returns:
- Its value, or null if not defined
 
 - 
equalspublic final boolean equals(Object obj) Indicates whether some object is "equal to" this one. Two IndexInfo objects are considered equal if their catalog, schema, table, and column names AND index name are all equal.
 - 
hashCodepublic final int hashCode() Returns a hash code value for this object.
 
- 
 
-