public class MaximoIndex
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static AttributeStorageDefinition |
MSI_Store
Returned information about the found key: name, uniquerule, clusterrule, required, textsearch.
|
| Constructor and Description |
|---|
MaximoIndex(java.sql.Connection connection)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createMaximoIndex(IndexDefinition id)
Create a Maximo Index given the index definition.
|
void |
doCreateIndex(IndexDefinition id)
Try to build the index specified by the parameter.
|
void |
dropIndex(IndexDefinition id)
Drop the index named by the Index Definition.
|
void |
dropIndexMeta(IndexDefinition id)
Removes references in the Maximo framework tables to the index given.
|
void |
dropMaximoIndex(IndexDefinition dropId)
Drop the maximo index that matches the definition given.
|
static java.lang.String |
findIndexQuery(java.lang.String table,
boolean isTextSearch,
java.util.List keyList)
Create a query to find an index in the Maximo framework tables.
|
static java.lang.String |
findIndexQuery(java.lang.String table,
boolean isTextSearch,
java.lang.String[] keys)
Create a query to find an index in the Maximo framework tables.
|
static java.lang.String |
findIndexQuery(java.lang.String table,
java.lang.String conditions,
java.lang.String[] keys)
Create a query to find an index in the Maximo framework tables.
|
java.lang.String |
getDefaultIndexPartition()
Return the default index partition
|
java.lang.String |
getDefaultStoragePartition()
Get the Maximo database's default index partition.
|
void |
getStorageForIndex(IndexDefinition id) |
static java.lang.String |
suggestedIxname(java.lang.String tbname,
java.lang.String suffix) |
public static final AttributeStorageDefinition MSI_Store
public MaximoIndex(java.sql.Connection connection)
throws java.sql.SQLException
connection - java.sql.SQLExceptionpublic static java.lang.String findIndexQuery(java.lang.String table,
boolean isTextSearch,
java.util.List keyList)
table - The name of the table.isTextSearch - Is this a text search table?keyList - The ordered list of columns in the indexMaximoIndex.MSI_Storepublic static java.lang.String findIndexQuery(java.lang.String table,
boolean isTextSearch,
java.lang.String[] keys)
table - The name of the table.isTextSearch - Is this a text search table?keys - The ordered list of columns in the indexMaximoIndex.MSI_Storepublic static java.lang.String findIndexQuery(java.lang.String table,
java.lang.String conditions,
java.lang.String[] keys)
table - The name of the table.conditions - Additional where conditions, i.e. "textsearch = 1"keys - The ordered list of columns in the indexMaximoIndex.MSI_Storepublic void createMaximoIndex(IndexDefinition id) throws java.lang.Exception
id - Definition of the index.java.lang.Exceptionpublic void getStorageForIndex(IndexDefinition id) throws java.sql.SQLException
java.sql.SQLExceptionpublic void doCreateIndex(IndexDefinition id) throws java.lang.Exception
id - The index definition.java.lang.Exceptionpublic java.lang.String getDefaultIndexPartition()
throws java.sql.SQLException
java.sql.SQLExceptionpublic final java.lang.String getDefaultStoragePartition()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropIndex(IndexDefinition id) throws java.sql.SQLException
id - java.sql.SQLExceptionpublic static java.lang.String suggestedIxname(java.lang.String tbname,
java.lang.String suffix)
public void dropMaximoIndex(IndexDefinition dropId) throws java.sql.SQLException
dropId - Definition of the index to drop.java.sql.SQLExceptionpublic void dropIndexMeta(IndexDefinition id) throws java.sql.SQLException
id - java.sql.SQLException