Module org.eclipse.persistence.core
Enum MultitenantType
- All Implemented Interfaces:
Serializable
,Comparable<MultitenantType>
,java.lang.constant.Constable
An enum that is used within the Multitenant annotation.
- Since:
- EclipseLink 2.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecifies that table(s) the entity maps to includes rows for multiple tenants.Specifies that different tables are used for each tenant and used in conjunction with the tenant table discriminator which describes how the tables are uniquely identified, that is, using a suffix/prefix or a separate schema.Specifies that the DB will handle the tenant filtering on all SELECT, UPDATE and DELETE queries. -
Method Summary
Modifier and TypeMethodDescriptionstatic MultitenantType
Returns the enum constant of this type with the specified name.static MultitenantType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SINGLE_TABLE
Specifies that table(s) the entity maps to includes rows for multiple tenants. The tenant discriminator column(s) are used with application context values to limit what a persistence context can access. -
VPD
Specifies that the DB will handle the tenant filtering on all SELECT, UPDATE and DELETE queries. Using this type assumes that the platform used with your persistence unit does indeed support VPD.- Since:
- 2.3.1
-
TABLE_PER_TENANT
Specifies that different tables are used for each tenant and used in conjunction with the tenant table discriminator which describes how the tables are uniquely identified, that is, using a suffix/prefix or a separate schema.- Since:
- 2.4
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-