Class VPDMultitenantPolicy
java.lang.Object
org.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
org.eclipse.persistence.descriptors.VPDMultitenantPolicy
- All Implemented Interfaces:
Serializable
,MultitenantPolicy
A vpd multitenant policy.
- See Also:
- Author:
- Guy Pelletier
-
Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
descriptor, includeTenantCriteria, tenantDiscriminatorFields, tenantDiscriminatorFieldsKeyedOnContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTenantDiscriminatorField
(String property, org.eclipse.persistence.internal.helper.DatabaseField field) INTERNAL: Return all the tenant id fields.void
addToTableDefinition
(TableDefinition tableDefinition) INTERNAL:clone
(ClassDescriptor descriptor) INTERNAL:INTERNAL: Return the single identifier.void
preInitialize
(org.eclipse.persistence.internal.sessions.AbstractSession session) INTERNAL: Allow the descriptor to initialize any dependencies on this session.Methods inherited from class org.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
addFieldsToRow, getDescriptor, getTenantDiscriminatorFields, getTenantDiscriminatorFieldsKeyedOnContext, hasTenantDiscriminatorFields, initialize, isSchemaPerMultitenantPolicy, isSingleTableMultitenantPolicy, isTablePerMultitenantPolicy, postInitialize, setDescriptor, setIncludeTenantCriteria, setTenantDiscriminatorFields
-
Field Details
-
vpdIdentifier
-
vpdIdentifierFieldName
-
-
Constructor Details
-
VPDMultitenantPolicy
-
-
Method Details
-
addTenantDiscriminatorField
public void addTenantDiscriminatorField(String property, org.eclipse.persistence.internal.helper.DatabaseField field) INTERNAL: Return all the tenant id fields.- Overrides:
addTenantDiscriminatorField
in classSingleTableMultitenantPolicy
-
addToTableDefinition
INTERNAL:- Specified by:
addToTableDefinition
in interfaceMultitenantPolicy
- Overrides:
addToTableDefinition
in classSingleTableMultitenantPolicy
-
clone
INTERNAL:- Specified by:
clone
in interfaceMultitenantPolicy
- Overrides:
clone
in classSingleTableMultitenantPolicy
-
getVPDIdentifier
INTERNAL: Return the single identifier. -
preInitialize
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException INTERNAL: Allow the descriptor to initialize any dependencies on this session.- Specified by:
preInitialize
in interfaceMultitenantPolicy
- Overrides:
preInitialize
in classSingleTableMultitenantPolicy
- Throws:
DescriptorException
-