Package com.im.commons.db.ddl
Class DBIndexInfo
- java.lang.Object
-
- com.im.commons.db.ddl.DBIndexInfo
-
- All Implemented Interfaces:
AbstractInfo
,java.io.Serializable
public class DBIndexInfo extends java.lang.Object implements AbstractInfo, java.io.Serializable
Information about an index on a database table.- Author:
- Tim Dudgeon
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DBIndexInfo.Column
A column used in the index.static class
DBIndexInfo.IndexColumn
-
Constructor Summary
Constructors Constructor Description DBIndexInfo()
DBIndexInfo(java.lang.String indexSchema, java.lang.String indexName, java.lang.String tableSchema, java.lang.String tableName, boolean unique, DBIndexInfo.Column[] cols, java.lang.String type, java.lang.String indexTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToModel(java.lang.String parentID, DBItemsCache dbItemsCache)
boolean
equals(java.lang.Object obj)
DBIndexInfo.Column[]
getColumns()
java.lang.String
getIndexName()
java.lang.String
getIndexSchema()
java.lang.String
getIndexType()
java.lang.String
getIndexTypeName()
java.lang.String
getSchemaName()
java.lang.String
getSchemaPlusIndex()
java.lang.String
getTableName()
java.lang.String
getTableSchema()
int
hashCode()
boolean
isUnique()
void
removeFromModel(java.lang.String parentID, DBItemsCache dbItemsCache)
void
setColumns(DBIndexInfo.Column[] columns)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DBIndexInfo
public DBIndexInfo()
-
DBIndexInfo
public DBIndexInfo(java.lang.String indexSchema, java.lang.String indexName, java.lang.String tableSchema, java.lang.String tableName, boolean unique, DBIndexInfo.Column[] cols, java.lang.String type, java.lang.String indexTypeName)
-
-
Method Detail
-
getTableSchema
public java.lang.String getTableSchema()
-
getTableName
public java.lang.String getTableName()
-
getSchemaName
public java.lang.String getSchemaName()
-
getColumns
public DBIndexInfo.Column[] getColumns()
-
setColumns
public void setColumns(DBIndexInfo.Column[] columns)
-
getIndexSchema
public java.lang.String getIndexSchema()
-
getIndexName
public java.lang.String getIndexName()
-
getSchemaPlusIndex
public java.lang.String getSchemaPlusIndex()
-
isUnique
public boolean isUnique()
-
getIndexType
public java.lang.String getIndexType()
-
getIndexTypeName
public java.lang.String getIndexTypeName()
-
addToModel
public void addToModel(java.lang.String parentID, DBItemsCache dbItemsCache)
- Specified by:
addToModel
in interfaceAbstractInfo
-
removeFromModel
public void removeFromModel(java.lang.String parentID, DBItemsCache dbItemsCache)
- Specified by:
removeFromModel
in interfaceAbstractInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-