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<java.lang.String> 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.SQLException
public static java.lang.String findIndexQuery(java.lang.String table, boolean isTextSearch, java.util.List<java.lang.String> keyList)
table
- The name of the table.isTextSearch
- Is this a text search table?keyList
- The ordered list of columns in the indexMSI_Store
public 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 indexMSI_Store
public 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 indexMSI_Store
public void createMaximoIndex(IndexDefinition id) throws java.lang.Exception
id
- Definition of the index.java.lang.Exception
public void getStorageForIndex(IndexDefinition id) throws java.sql.SQLException
java.sql.SQLException
public void doCreateIndex(IndexDefinition id) throws java.lang.Exception
id
- The index definition.java.lang.Exception
public java.lang.String getDefaultIndexPartition() throws java.sql.SQLException
java.sql.SQLException
public final java.lang.String getDefaultStoragePartition() throws java.sql.SQLException
java.sql.SQLException
public void dropIndex(IndexDefinition id) throws java.sql.SQLException
id
- java.sql.SQLException
public 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.SQLException
public void dropIndexMeta(IndexDefinition id) throws java.sql.SQLException
id
- java.sql.SQLException