public class MSSQLIndexUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getCountFromIndexTableQuery(Connection connection,
String sql,
String tableName,
String indexName) |
static int |
getDbMajorVersion(Connection conn) |
static int |
getUnclusteredMaximumKeySizeForMajorVersion(int majorVersion) |
static boolean |
indexHasIncludedColumns(Connection connection,
String tableName,
String indexName) |
static boolean |
isMSSQLAndMajorVersion(Connection connection,
int expectedMajorVersion) |
static boolean |
isMSSQLAndMajorVersion(Connection connection,
java.util.function.Predicate<Integer> majorVersionPredicate) |
static boolean |
isSqlServer(Connection conn) |
public static int getUnclusteredMaximumKeySizeForMajorVersion(int majorVersion)
majorVersion
- of MSSQL databasepublic static boolean isSqlServer(Connection conn) throws SQLException
SQLException
public static int getDbMajorVersion(Connection conn) throws SQLException
SQLException
public static boolean isMSSQLAndMajorVersion(Connection connection, int expectedMajorVersion) throws SQLException
SQLException
public static boolean isMSSQLAndMajorVersion(Connection connection, java.util.function.Predicate<Integer> majorVersionPredicate) throws SQLException
SQLException
public static boolean indexHasIncludedColumns(Connection connection, String tableName, String indexName) throws SQLException
SQLException
public static int getCountFromIndexTableQuery(Connection connection, String sql, String tableName, String indexName) throws SQLException
SQLException
Copyright © 2002-2021 Atlassian. All Rights Reserved.