Class IndexInfo
java.lang.Object
org.datanucleus.store.rdbms.schema.IndexInfo
- All Implemented Interfaces:
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intHashcode.Properties of the index. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, Object value) Method to add a property for the index.final booleanIndicates whether some object is "equal to" this one.getProperty(String name) Accessor for a property.final inthashCode()Returns a hash code value for this object.toString()Returns the string representation of this object.
-
Field Details
-
properties
-
hash
private int hashHashcode. Set on first use.
-
-
Constructor Details
-
IndexInfo
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 Details
-
addProperty
-
getProperty
-
equals
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. -
hashCode
-
toString
-