Enum Class RowLevelSecurity.TenantIdentifierSource
java.lang.Object
java.lang.Enum<RowLevelSecurity.TenantIdentifierSource>
org.hibernate.dialect.rowsecurity.RowLevelSecurity.TenantIdentifierSource
- All Implemented Interfaces:
Serializable, Comparable<RowLevelSecurity.TenantIdentifierSource>, Constable
- Enclosing interface:
RowLevelSecurity
public static enum RowLevelSecurity.TenantIdentifierSource
extends Enum<RowLevelSecurity.TenantIdentifierSource>
The database-side source used by row-level security policies to resolve
the current tenant identifier.
- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe tenant identifier is the database user returned by the database's current-user expression.The tenant identifier is stored in database session-local state byRowLevelSecurity.setTenantIdentifier(Connection, String, boolean). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SESSION
The tenant identifier is stored in database session-local state byRowLevelSecurity.setTenantIdentifier(Connection, String, boolean). -
DATABASE_USER
The tenant identifier is the database user returned by the database's current-user expression.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-