public class VPDMultitenantPolicy extends SingleTableMultitenantPolicy
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
vpdIdentifier |
protected java.lang.String |
vpdIdentifierFieldName |
descriptor, includeTenantCriteria, tenantDiscriminatorFields, tenantDiscriminatorFieldsKeyedOnContext
Constructor and Description |
---|
VPDMultitenantPolicy(ClassDescriptor descriptor) |
Modifier and Type | Method and 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.
|
addFieldsToRow, getDescriptor, getTenantDiscriminatorFields, getTenantDiscriminatorFieldsKeyedOnContext, hasTenantDiscriminatorFields, initialize, isSingleTableMultitenantPolicy, isTablePerMultitenantPolicy, postInitialize, setDescriptor, setIncludeTenantCriteria, setTenantDiscriminatorFields
protected java.lang.String vpdIdentifier
protected java.lang.String vpdIdentifierFieldName
public VPDMultitenantPolicy(ClassDescriptor descriptor)
public void addTenantDiscriminatorField(java.lang.String property, org.eclipse.persistence.internal.helper.DatabaseField field)
addTenantDiscriminatorField
in class SingleTableMultitenantPolicy
public void addToTableDefinition(TableDefinition tableDefinition)
addToTableDefinition
in interface MultitenantPolicy
addToTableDefinition
in class SingleTableMultitenantPolicy
public MultitenantPolicy clone(ClassDescriptor descriptor)
clone
in interface MultitenantPolicy
clone
in class SingleTableMultitenantPolicy
public java.lang.String getVPDIdentifier()
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
preInitialize
in interface MultitenantPolicy
preInitialize
in class SingleTableMultitenantPolicy
DescriptorException