
com.microsoft.sqlserver.jdbc.dataclassification.SensitivityClassification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mssql-jdbc Show documentation
Show all versions of mssql-jdbc Show documentation
Microsoft JDBC Driver for SQL Server.
/*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc.dataclassification;
import java.util.ArrayList;
import java.util.List;
import com.microsoft.sqlserver.jdbc.SQLServerException;
/**
* Provides the functionality to retrieve Sensitivity Classification data as received from SQL Server for the active
* resultSet
*/
public class SensitivityClassification {
public enum SensitivityRank {
NOT_DEFINED(-1),
NONE(0),
LOW(10),
MEDIUM(20),
HIGH(30),
CRITICAL(40);
private static final SensitivityRank[] VALUES = values();
private int rank;
private SensitivityRank(int rank) {
this.rank = rank;
}
public int getValue() {
return rank;
}
public static boolean isValid(int rank) throws SQLServerException {
for (SensitivityRank r : VALUES) {
if (r.getValue() == rank) {
return true;
}
}
return false;
}
}
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy