|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.descriptors.SingleTableMultitenantPolicy
public class SingleTableMultitenantPolicy
A single table "striped" multitenant policy.
Field Summary | |
---|---|
protected ClassDescriptor |
descriptor
|
protected boolean |
includeTenantCriteria
|
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,java.lang.String> |
tenantDiscriminatorFields
|
Constructor Summary | |
---|---|
SingleTableMultitenantPolicy(ClassDescriptor desc)
|
Method Summary | |
---|---|
void |
addFieldsToRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Add the tenant discriminator fields to the row. |
void |
addTenantDiscriminatorField(java.lang.String property,
org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL: Add a tenant discriminator field to the policy. |
void |
addToTableDefinition(TableDefinition tableDefinition)
INTERNAL: |
MultitenantPolicy |
clone(ClassDescriptor descriptor)
INTERNAL: |
ClassDescriptor |
getDescriptor()
INTERNAL: |
java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,java.lang.String> |
getTenantDiscriminatorFields()
INTERNAL: |
boolean |
hasTenantDiscriminatorFields()
INTERNAL: Return if this descriptor has specified some tenant discriminator fields. |
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Initialize the mappings as a separate step. |
void |
postInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Subclasses that need to add field to an expresison should override this method. |
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Allow the descriptor to initialize any dependencies on this session. |
void |
setDescriptor(ClassDescriptor descriptor)
INTERNAL: |
void |
setIncludeTenantCriteria(boolean includeTenantCriteria)
ADVANCED: Boolean used to indicate if the database requires the tenant criteria to be added to the SELECT, UPDATE, and DELETE queries. |
void |
setTenantDiscriminatorFields(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,java.lang.String> tenantDiscriminatorFields)
INTERNAL: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean includeTenantCriteria
protected ClassDescriptor descriptor
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,java.lang.String> tenantDiscriminatorFields
Constructor Detail |
---|
public SingleTableMultitenantPolicy(ClassDescriptor desc)
Method Detail |
---|
public void addFieldsToRow(org.eclipse.persistence.internal.sessions.AbstractRecord row, org.eclipse.persistence.internal.sessions.AbstractSession session)
addFieldsToRow
in interface MultitenantPolicy
public void addToTableDefinition(TableDefinition tableDefinition)
addToTableDefinition
in interface MultitenantPolicy
public MultitenantPolicy clone(ClassDescriptor descriptor)
clone
in interface MultitenantPolicy
public ClassDescriptor getDescriptor()
public void addTenantDiscriminatorField(java.lang.String property, org.eclipse.persistence.internal.helper.DatabaseField field)
public java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,java.lang.String> getTenantDiscriminatorFields()
public boolean hasTenantDiscriminatorFields()
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
initialize
in interface MultitenantPolicy
DescriptorException
public void postInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
postInitialize
in interface MultitenantPolicy
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
preInitialize
in interface MultitenantPolicy
DescriptorException
public void setDescriptor(ClassDescriptor descriptor)
public void setIncludeTenantCriteria(boolean includeTenantCriteria)
Multitenant
public void setTenantDiscriminatorFields(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,java.lang.String> tenantDiscriminatorFields)
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |