EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.descriptors
Class VPDMultitenantPolicy

java.lang.Object
  extended by org.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
      extended by org.eclipse.persistence.descriptors.VPDMultitenantPolicy
All Implemented Interfaces:
MultitenantPolicy

public class VPDMultitenantPolicy
extends SingleTableMultitenantPolicy

A vpd multitenant policy.

Author:
Guy Pelletier
Since:
EclipseLink 2.3.1

Field Summary
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
VPDMultitenantPolicy(ClassDescriptor descriptor)
           
 
Method Summary
 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, isSingleTableMultitenantPolicy, isTablePerMultitenantPolicy, postInitialize, setDescriptor, setIncludeTenantCriteria, setTenantDiscriminatorFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vpdIdentifier

protected java.lang.String vpdIdentifier

vpdIdentifierFieldName

protected java.lang.String vpdIdentifierFieldName
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 class SingleTableMultitenantPolicy

addToTableDefinition

public void addToTableDefinition(TableDefinition tableDefinition)
INTERNAL:

Specified by:
addToTableDefinition in interface MultitenantPolicy
Overrides:
addToTableDefinition in class SingleTableMultitenantPolicy

clone

public MultitenantPolicy clone(ClassDescriptor descriptor)
INTERNAL:

Specified by:
clone in interface MultitenantPolicy
Overrides:
clone in class SingleTableMultitenantPolicy

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 interface MultitenantPolicy
Overrides:
preInitialize in class SingleTableMultitenantPolicy
Throws:
DescriptorException

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference