public class MSSQLIncludedIndexAlternativeAction extends Object implements org.ofbiz.core.entity.jdbc.alternative.IndexAlternativeAction
Constructor and Description |
---|
MSSQLIncludedIndexAlternativeAction(String tableName,
String indexName,
List<String> indexedColumnsNames,
List<String> includedColumnsNames,
int indexSizeToTrigger)
CAUTION: column names in MS SQL must be all uppercase with components separated by underscore e.g.
|
Modifier and Type | Method and Description |
---|---|
String |
run(org.ofbiz.core.entity.model.ModelEntity modelEntity,
org.ofbiz.core.entity.model.ModelIndex modelIndex,
org.ofbiz.core.entity.jdbc.DatabaseUtil dbUtil) |
boolean |
shouldRun(org.ofbiz.core.entity.model.ModelEntity modelEntity,
org.ofbiz.core.entity.model.ModelIndex modelIndex,
org.ofbiz.core.entity.jdbc.DatabaseUtil dbUtil) |
public MSSQLIncludedIndexAlternativeAction(String tableName, String indexName, List<String> indexedColumnsNames, List<String> includedColumnsNames, int indexSizeToTrigger)
tableName
- of the table this action is to be used withindexName
- of the index this action is to be used withindexedColumnsNames
- names of key columns in case of taking the alternative execution pathincludedColumnsNames
- names of nonkey columns (included ones) in case of taking the alternative execution pathindexSizeToTrigger
- size of the key of the index to be createdpublic boolean shouldRun(org.ofbiz.core.entity.model.ModelEntity modelEntity, org.ofbiz.core.entity.model.ModelIndex modelIndex, org.ofbiz.core.entity.jdbc.DatabaseUtil dbUtil) throws SQLException, org.ofbiz.core.entity.GenericEntityException
shouldRun
in interface org.ofbiz.core.entity.jdbc.alternative.IndexAlternativeAction
SQLException
org.ofbiz.core.entity.GenericEntityException
public String run(org.ofbiz.core.entity.model.ModelEntity modelEntity, org.ofbiz.core.entity.model.ModelIndex modelIndex, org.ofbiz.core.entity.jdbc.DatabaseUtil dbUtil) throws SQLException, org.ofbiz.core.entity.GenericEntityException
run
in interface org.ofbiz.core.entity.jdbc.alternative.IndexAlternativeAction
SQLException
org.ofbiz.core.entity.GenericEntityException
Copyright © 2002-2023 Atlassian. All Rights Reserved.