Class VPDMultitenantPolicy
- java.lang.Object
-
- org.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
-
- org.eclipse.persistence.descriptors.VPDMultitenantPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,MultitenantPolicy
public class VPDMultitenantPolicy extends SingleTableMultitenantPolicy
A vpd multitenant policy.- See Also:
- Serialized Form
- Author:
- Guy Pelletier
- Since:
- EclipseLink 2.3.1
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
vpdIdentifier
protected java.lang.String
vpdIdentifierFieldName
-
Fields inherited from class org.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
descriptor, includeTenantCriteria, tenantDiscriminatorFields, tenantDiscriminatorFieldsKeyedOnContext
-
-
Constructor Summary
Constructors Constructor Description VPDMultitenantPolicy(ClassDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTenantDiscriminatorField(java.lang.String property, org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL: Return all the tenant id fields.void
addToTableDefinition(TableDefinition tableDefinition)
INTERNAL:MultitenantPolicy
clone(ClassDescriptor descriptor)
INTERNAL:java.lang.String
getVPDIdentifier()
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
-
-
-
-
Constructor Detail
-
VPDMultitenantPolicy
public VPDMultitenantPolicy(ClassDescriptor descriptor)
-
-
Method Detail
-
addTenantDiscriminatorField
public void addTenantDiscriminatorField(java.lang.String property, org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL: Return all the tenant id fields.- Overrides:
addTenantDiscriminatorField
in classSingleTableMultitenantPolicy
-
addToTableDefinition
public void addToTableDefinition(TableDefinition tableDefinition)
INTERNAL:- Specified by:
addToTableDefinition
in interfaceMultitenantPolicy
- Overrides:
addToTableDefinition
in classSingleTableMultitenantPolicy
-
clone
public MultitenantPolicy clone(ClassDescriptor descriptor)
INTERNAL:- Specified by:
clone
in interfaceMultitenantPolicy
- Overrides:
clone
in classSingleTableMultitenantPolicy
-
getVPDIdentifier
public java.lang.String 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
-
-